From: alex Date: Sun, 27 Mar 2022 17:48:33 +0000 (-0700) Subject: ... X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=9cbeb8fc59a31fd9c2324e046f34aaf72c02bc77;p=seeder ... --- diff --git a/src/net/send.c b/src/net/send.c index f73c23c..e206987 100644 --- a/src/net/send.c +++ b/src/net/send.c @@ -4,6 +4,13 @@ int net_send(int sock, struct peer *info, void *p, size_t size) { ssize_t i; i = send(sock,p,size,0); + if(-1==i) { + if(!((errno==EAGAIN)||(errno==EWOULDBLOCK))) { + perror("send"); + return -1; + } + } + if(i