Make UDP read loop eventually move on.

This commit is contained in:
Adam Ierymenko 2017-12-15 10:15:13 -08:00
parent 7a22f01dd8
commit cb8e7b4d5e

View File

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