From 5488af6cb8ff5102ce4da257297fb2c424da43cc Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 17 Sep 2016 16:07:50 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 70b0a3740..c23576f1f 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -448,10 +448,10 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) } } timeout.tv_sec = 0; - timeout.tv_usec = 300000; + timeout.tv_usec = 30000; setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout)); timeout.tv_sec = 0; - timeout.tv_usec = 100000; + timeout.tv_usec = 10000; setsockopt(sock,SOL_SOCKET,SO_SNDTIMEO,(void *)&timeout,sizeof(timeout)); return(sock); } @@ -505,9 +505,9 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s { if ( errno == EAGAIN ) { - addr->persistent_peer = 1; - //sleep(1); - //continue; + //addr->persistent_peer = 1; + sleep(1); + continue; } //if ( errno != EAGAIN && errno != EWOULDBLOCK ) {