poll() should read more than one datagram at a time

This commit is contained in:
David Rose 2004-01-08 18:14:49 +00:00
parent 4038da84e5
commit d1940ad800
1 changed files with 2 additions and 1 deletions

View File

@ -284,8 +284,9 @@ poll() {
}
SocketInfo *sinfo = get_next_available_socket(PR_INTERVAL_NO_WAIT, -2);
if (sinfo != (SocketInfo *)NULL) {
while (sinfo != (SocketInfo *)NULL) {
process_incoming_data(sinfo);
sinfo = get_next_available_socket(PR_INTERVAL_NO_WAIT, -2);
}
}