summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-05-21 14:27:13 (GMT)
committerGitHub <noreply@github.com>2025-05-21 14:27:13 (GMT)
commitf1a9d891071bd264237211ec5251dfc82bc29fb3 (patch)
tree39a1061b4cc5fcaf77fae7fa8be8e5148fbf2a41 /Lib/asyncio/selector_events.py
parent9be568eda44a0888cd03b248e5d18f5a88fec04b (diff)
downloadcpython-f1a9d891071bd264237211ec5251dfc82bc29fb3.zip
cpython-f1a9d891071bd264237211ec5251dfc82bc29fb3.tar.gz
cpython-f1a9d891071bd264237211ec5251dfc82bc29fb3.tar.bz2
[3.14] gh-90871: fix connection backlog offset in asyncio (gh-134392) (gh-134421)
(cherry picked from commit 109f7597d29f0b504e9b42cb398b44177157abaa) Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r--Lib/asyncio/selector_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index 2214745..6ad8404 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -173,7 +173,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
# listening socket has triggered an EVENT_READ. There may be multiple
# connections waiting for an .accept() so it is called in a loop.
# See https://bugs.python.org/issue27906 for more details.
- for _ in range(backlog):
+ for _ in range(backlog + 1):
try:
conn, addr = sock.accept()
if self._debug: