diff options
author | bustico | 2015-05-11 14:22:34 +0000 |
---|---|---|
committer | bustico | 2015-05-11 14:22:34 +0000 |
commit | 56d99d9c7ef788e64c80ef4d1bea90865aec86d5 (patch) | |
tree | bc46cdd049e598f5dd39a8722d24830ebb449ecc | |
parent | a8e8520945e5f03a6aee9622a6df826484b069a2 (diff) | |
download | ivy-c-56d99d9c7ef788e64c80ef4d1bea90865aec86d5.zip ivy-c-56d99d9c7ef788e64c80ef4d1bea90865aec86d5.tar.gz ivy-c-56d99d9c7ef788e64c80ef4d1bea90865aec86d5.tar.bz2 ivy-c-56d99d9c7ef788e64c80ef4d1bea90865aec86d5.tar.xz |
* behavior change : just warn without exiting if libc/kernel does not support SO_REUSEPORT
-rw-r--r-- | src/ivysocket.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ivysocket.c b/src/ivysocket.c index a717660..6cd479a 100644 --- a/src/ivysocket.c +++ b/src/ivysocket.c @@ -344,8 +344,8 @@ Server SocketServer(int ipv6, unsigned short port, if (setsockopt (fd, SOL_SOCKET, SO_REUSEPORT, (char *)&one, sizeof (one)) < 0) { - perror ("*** set socket option REUSEPORT ***"); - exit(0); + perror ("*** WARNING non existent socket option REUSEPORT, Ivy may FAIL ***"); + // exit(0); } #endif @@ -951,10 +951,10 @@ Client SocketBroadcastCreate (int ipv6, unsigned short port, #ifdef SO_REUSEPORT if (setsockopt (handle, SOL_SOCKET, SO_REUSEPORT, (char *)&on, sizeof (on)) < 0) - { - perror ("*** set socket option REUSEPORT ***"); - return NULL; - } + { + perror ("*** WARNING non existent socket option REUSEPORT, Ivy may FAIL ***"); + //return NULL; + } #endif /* wee need to broadcast */ if (setsockopt (handle, SOL_SOCKET, SO_BROADCAST, (char *)&on, sizeof (on)) < 0) |