[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

Vinay Sajip report at bugs.python.org
Sat Feb 8 11:18:43 CET 2014


Vinay Sajip added the comment:

There's a small possibility that someone could be relying on logging.config.RESET_ERROR being present, so I think it makes more sense to:

1. Leave RESET_ERROR as a module attribute, but set it unconditionally to
   errno.ECONNRESET.

2. Use e.errno rather than e.args[0], and compare it against RESET_ERROR
   since that's available, in the exception suite.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20558>
_______________________________________


More information about the Python-bugs-list mailing list