From a9f9b8f58c35908c6c09cbc514bb8338aec1d69e Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 20:04:20 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_peers.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 5cd03dc0c..18e888ee7 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -396,7 +396,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) for (i=0; ipeers.active[i].pending = 0; } - dispflag = (rand() % 100) == 0; + dispflag = (rand() % 1000) == 0; numbundles = numdone = numrecv = numhashes = numcached = totalsaved = numemit = numactive = 0; firstbundle = -1; issued = 0; diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index a63c3ebe6..62a776c61 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -318,7 +318,7 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) //timeout.tv_sec = 0; //timeout.tv_usec = 1000; //setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(char *)&timeout,sizeof(timeout)); - printf("set keepalive.%d\n",setsockopt(sock,SOL_SOCKET,SO_KEEPALIVE,(void *)&opt,slen)); + //printf("set keepalive.%d\n",setsockopt(sock,SOL_SOCKET,SO_KEEPALIVE,(void *)&opt,slen)); opt = 0; getsockopt(sock,SOL_SOCKET,SO_KEEPALIVE,(void *)&opt,&slen); printf("keepalive.%d\n",opt);