Przeglądaj źródła

net/acceptor: Gracefully handle ETIMEDOUT

parazyd 2 lat temu
rodzic
commit
29eee31e20
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      src/net/acceptor.rs

+ 7 - 0
src/net/acceptor.rs

@@ -157,6 +157,13 @@ impl Acceptor {
                         );
                         continue
                     }
+                    libc::ETIMEDOUT => {
+                        warn!(
+                            target: "net::acceptor::run_accept_loop()",
+                            "[P2P] Connection timed out in accept_loop"
+                        );
+                        continue
+                    }
                     x => {
                         error!(
                             target: "net::acceptor::run_accept_loop()",