ソースを参照

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

David Rose 22 年 前
コミット
d1940ad800
1 ファイル変更2 行追加1 行削除
  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);
   }
 }