mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-27 07:59:41 +08:00
better EINTR handling
This commit is contained in:
1 parent
7bae6c4525
commit
8975b00cce
2 files changed
+9
-5
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ int socksendto(SOCKET sock, struct sockaddr * sin, unsigned char * buf, int bufs
|
||||
if(res < 1) break;
|
||||
res = so._sendto(sock, buf + sent, bufsize - sent, 0, sin, SASIZE(sin));
|
||||
if(res < 0) {
|
||||
if(errno != EAGAIN) break;
|
||||
if(errno != EAGAIN && errno != EINTR) break;
|
||||
continue;
|
||||
}
|
||||
sent += res;
|
||||
|
||||
Reference in new issue
Block a user