diff --git a/src/node/net/p2p_io_scheduler.ml b/src/node/net/p2p_io_scheduler.ml index c816204a7..ee4d89c12 100644 --- a/src/node/net/p2p_io_scheduler.ml +++ b/src/node/net/p2p_io_scheduler.ml @@ -117,7 +117,8 @@ module Scheduler(IO : IO) = struct worker_loop st | Error ([Connection_closed | Exn ( Lwt_pipe.Closed | - Unix.Unix_error (EBADF, _, _) )] as err) -> + Unix.Unix_error ((EBADF | ETIMEDOUT), _, _) )] + as err) -> lwt_debug "Connection closed (pop: %d, %s)" conn.id IO.name >>= fun () -> cancel conn err >>= fun () ->