Kaynağa Gözat

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

David Rose 22 yıl önce
ebeveyn
işleme
d1940ad800
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      panda/src/net/connectionReader.cxx

+ 2 - 1
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);
   }
 }