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: Fixing epoll timeout logics
Type: behavior Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: YoSTEALTH
Priority: normal Keywords: patch

Created on 2018-02-14 02:06 by YoSTEALTH, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5670 closed YoSTEALTH, 2018-02-14 02:10
PR 5675 closed YoSTEALTH, 2018-02-14 02:29
Messages (2)
msg312150 - (view) Author: (YoSTEALTH) * Date: 2018-02-14 02:06
# current
if timeout is None:
    timeout = -1
elif timeout <= 0:
    timeout = 0

# changed
if timeout is None:
    timeout = -1
elif timeout < -1:
    timeout = 0

what if "timeout=-1" ?
- currently it would result in being timeout=0
msg312154 - (view) Author: (YoSTEALTH) * Date: 2018-02-14 03:06
my confusion comes from epoll.poll(timeout=-1, maxevents=-1) has nothing to do with selectors.BaseSelector.select(timeout=None)
History
Date User Action Args
2022-04-11 14:58:57adminsetgithub: 77023
2018-02-14 03:06:13YoSTEALTHsetstatus: open -> closed
resolution: not a bug
messages: + msg312154

stage: patch review -> resolved
2018-02-14 02:29:26YoSTEALTHsetpull_requests: + pull_request5474
2018-02-14 02:10:13YoSTEALTHsetkeywords: + patch
stage: patch review
pull_requests: + pull_request5472
2018-02-14 02:06:41YoSTEALTHcreate