Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
4f5562c0a5
  1. 5
      iguana/iguana_peers.c

5
iguana/iguana_peers.c

@ -500,6 +500,11 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s
if ( (numsent= (int32_t)send(usock,serialized,remains,MSG_NOSIGNAL)) < 0 )
#endif
{
if ( errno == EAGAIN )
{
sleep(1);
continue;
}
printf("send errno.%d %s\n",errno,strerror(errno));
if ( errno != EAGAIN && errno != EWOULDBLOCK )
{

Loading…
Cancel
Save