From 47380afe9ac6ea67003fea2af5589b1a232f1755 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 13:55:27 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 874cd8096..01c1e6ff1 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -311,10 +311,10 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) printf("socket() failed: %s errno.%d", strerror(errno),errno); return(-1); } - if ( 0 && bindflag != 0 ) + if ( 1 && bindflag != 0 ) { timeout.tv_sec = 0; - timeout.tv_usec = 100000; + timeout.tv_usec = 1000; setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(char *)&timeout,sizeof(timeout)); } opt = 1; @@ -734,8 +734,6 @@ int32_t iguana_pollsendQ(struct iguana_info *coin,struct iguana_peer *addr) } else { - if ( strcmp(packet->serialized+4,"SuperNET") == 0 ) - printf("deque -> (%s) -> %s\n",packet->serialized+12,addr->ipaddr); iguana_send(coin,addr,packet->serialized,packet->datalen); myfree(packet,sizeof(*packet) + packet->datalen); return(1);