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

SocketServer timeout, zombies #38542

Closed
pilcrow mannequin opened this issue May 23, 2003 · 2 comments
Closed

SocketServer timeout, zombies #38542

pilcrow mannequin opened this issue May 23, 2003 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@pilcrow
Copy link
Mannequin

pilcrow mannequin commented May 23, 2003

BPO 742598
Nosy @akuchling
Files
  • sockserv-timeout.diff: sockserv-timeout.diff
  • 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/akuchling'
    closed_at = <Date 2008-01-19.16:35:27.572>
    created_at = <Date 2003-05-23.21:11:34.000>
    labels = ['library']
    title = 'SocketServer timeout, zombies'
    updated_at = <Date 2008-01-19.16:35:27.571>
    user = 'https://bugs.python.org/pilcrow'

    bugs.python.org fields:

    activity = <Date 2008-01-19.16:35:27.571>
    actor = 'akuchling'
    assignee = 'akuchling'
    closed = True
    closed_date = <Date 2008-01-19.16:35:27.572>
    closer = 'akuchling'
    components = ['Library (Lib)']
    creation = <Date 2003-05-23.21:11:34.000>
    creator = 'pilcrow'
    dependencies = []
    files = ['5320']
    hgrepos = []
    issue_num = 742598
    keywords = ['patch']
    message_count = 2.0
    messages = ['43828', '60191']
    nosy_count = 2.0
    nosy_names = ['akuchling', 'pilcrow']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue742598'
    versions = ['Python 2.6']

    @pilcrow
    Copy link
    Mannequin Author

    pilcrow mannequin commented May 23, 2003

    Patch adds class variable 'timeout' to BaseServer, and
    methods await_request and handle_timeout. Backwards
    compatible API -- timeout is None by default, meaning
    await_request jumps directly to get_request and never
    calls handle_timeout.

    Facilitates periodic server bookkeeping (check config
    files, intervalic logging, etc.), if you supply your
    own serve loop.

    Additionally, ForkingMixin sets timeout to 300 seconds,
    and overrides handle_timeout to call collect_children.
    Upshot: n zombies linger in process table until 5
    minutes pass or new request arrives, whichever comes first.

    docstring updates, too
    (s/reuse_address/allow_reuse_address, etc.)

    -Mike

    @pilcrow pilcrow mannequin assigned akuchling May 23, 2003
    @pilcrow pilcrow mannequin added the stdlib Python modules in the Lib dir label May 23, 2003
    @pilcrow pilcrow mannequin assigned akuchling May 23, 2003
    @pilcrow pilcrow mannequin added the stdlib Python modules in the Lib dir label May 23, 2003
    @akuchling
    Copy link
    Member

    Committed to Python 2.6 in rev. 60080. Thanks for your contribution!

    Whenever you find time, it would be nice if you could sign and submit a
    Python contributor agreement; please see
    http://www.python.org/psf/contrib/ for the forms.

    @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