From 7739945bacb16235d5d932d0876121bf8876345f Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 17 Sep 2016 13:19:24 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 74d6d4534..69194829e 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -438,10 +438,10 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) } timeout.tv_sec = 0; timeout.tv_usec = 30000; - setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout)); + //setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout)); timeout.tv_sec = 0; timeout.tv_usec = 10000; - setsockopt(sock,SOL_SOCKET,SO_SNDTIMEO,(void *)&timeout,sizeof(timeout)); + //setsockopt(sock,SOL_SOCKET,SO_SNDTIMEO,(void *)&timeout,sizeof(timeout)); if ( listen(sock,64) != 0 ) { printf("listen(%s) port.%d failed: %s sock.%d. errno.%d\n",hostname,port,strerror(errno),sock,errno);