Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESET_ERROR is not defined(logging module) #39101

Closed
quiver mannequin opened this issue Aug 21, 2003 · 3 comments
Closed

RESET_ERROR is not defined(logging module) #39101

quiver mannequin opened this issue Aug 21, 2003 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@quiver
Copy link
Mannequin

quiver mannequin commented Aug 21, 2003

BPO 792649
Nosy @rhettinger

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/rhettinger'
closed_at = <Date 2003-09-10.03:35:26.000>
created_at = <Date 2003-08-21.17:45:03.000>
labels = ['library']
title = 'RESET_ERROR is not defined(logging module)'
updated_at = <Date 2003-09-10.03:35:26.000>
user = 'https://bugs.python.org/quiver'

bugs.python.org fields:

activity = <Date 2003-09-10.03:35:26.000>
actor = 'rhettinger'
assignee = 'rhettinger'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2003-08-21.17:45:03.000>
creator = 'quiver'
dependencies = []
files = []
hgrepos = []
issue_num = 792649
keywords = []
message_count = 3.0
messages = ['17870', '17871', '17872']
nosy_count = 2.0
nosy_names = ['rhettinger', 'quiver']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue792649'
versions = ['Python 2.3']

@quiver
Copy link
Mannequin Author

quiver mannequin commented Aug 21, 2003

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.

@quiver quiver mannequin closed this as completed Aug 21, 2003
@quiver quiver mannequin assigned rhettinger Aug 21, 2003
@quiver quiver mannequin added the stdlib Python modules in the Lib dir label Aug 21, 2003
@quiver quiver mannequin closed this as completed Aug 21, 2003
@quiver quiver mannequin assigned rhettinger Aug 21, 2003
@quiver quiver mannequin added the stdlib Python modules in the Lib dir label Aug 21, 2003
@rhettinger
Copy link
Contributor

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.

@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

Fixed.
See:
Lib/logging/config.py 1.17.10.1

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant