mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 18:56:24 +00:00
Make UDP read loop eventually move on.
This commit is contained in:
parent
7a22f01dd8
commit
cb8e7b4d5e
@ -965,7 +965,7 @@ public:
|
||||
|
||||
case ZT_PHY_SOCKET_UDP:
|
||||
if (FD_ISSET(s->sock,&rfds)) {
|
||||
for(;;) {
|
||||
for(int k=0;k<1024;++k) {
|
||||
memset(&ss,0,sizeof(ss));
|
||||
socklen_t slen = sizeof(ss);
|
||||
long n = (long)::recvfrom(s->sock,buf,sizeof(buf),0,(struct sockaddr *)&ss,&slen);
|
||||
|
Loading…
Reference in New Issue
Block a user