Ver Fonte

net/acceptor: Do not quit acceptor on unhandled OS error

parazyd há 1 ano atrás
pai
commit
2b1e04dace
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      src/net/acceptor.rs

+ 8 - 0
src/net/acceptor.rs

@@ -202,6 +202,13 @@ impl Acceptor {
                         continue
                     }
                     x => {
+                        warn!(
+                            target: "net::acceptor::run_accept_loop()",
+                            "[P2P] Unhandled OS Error: {} {}", e, x,
+                        );
+                        continue
+
+                        /*
                         error!(
                             target: "net::acceptor::run_accept_loop()",
                             "[P2P] Acceptor failed listening: {} ({})", e, x,
@@ -211,6 +218,7 @@ impl Acceptor {
                             "[P2P] Closing listener loop"
                         );
                         return Err(e.into())
+                        */
                     }
                 },