From d1940ad800fc85aee02228d5e994bbcf0124e8db Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 8 Jan 2004 18:14:49 +0000 Subject: [PATCH] poll() should read more than one datagram at a time --- panda/src/net/connectionReader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/net/connectionReader.cxx b/panda/src/net/connectionReader.cxx index f289feb6fc..058e9041a3 100644 --- a/panda/src/net/connectionReader.cxx +++ b/panda/src/net/connectionReader.cxx @@ -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); } }