|
|
@ -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 ) |
|
|
|
{ |
|
|
|