466
478
errtxt = "Connection closed unexpectedly"
468
480
if errnum in (ERR_DISCONN, errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN):
469
log.error("Connection to %s lost: %s [%d]", self.getName(), errtxt, errnum)
481
log.info("Connection to %s lost: %s [%d]", self.getName(), errtxt, errnum)
470
482
self.printed_error = True
472
484
self.pollend(retry=(errnum in (ERR_DISCONN, errno.ECONNRESET)))