This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: RESET_ERROR is not defined(logging module)
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: quiver, rhettinger
Priority: normal Keywords:

Created on 2003-08-21 17:45 by quiver, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (3)
msg17870 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2003-08-21 17:45
ConfigStreamHandler class(logging/config.py) has the 
following code in its handle method:

    except socket.error, e:
        if type(e.args) != types.TupleType:
            raise
        else:
            errcode = e.args[0]
            if errcode != RESET_ERROR:
                raise

However, RESET_ERROR is not defined.
So if the handle method catches socket.error, this will 
raise NameError.
msg17871 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-09-09 01:59
Logged In: YES 
user_id=80475

Guido, do you know what Vinay intended here?

I'm guessing it is errno.ECONNRESET but am not sure which 
of the many reset error numbers he intended to catch and 
ignore.

I emailed him but have not gotten a reply.
msg17872 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-09-10 03:35
Logged In: YES 
user_id=80475

Fixed.
See:
    Lib/logging/config.py 1.17.10.1
History
Date User Action Args
2022-04-10 16:10:45adminsetgithub: 39101
2003-08-21 17:45:03quivercreate