[New-bugs-announce] [issue44204] socket.connect ignores CTRL+C during timeout on Win

Arpad Toth report at bugs.python.org
Fri May 21 08:19:17 EDT 2021


New submission from Arpad Toth <mrx23dot at gmail.com>:

Steps to Reproduce
from http.client import HTTPConnection
conn = HTTPConnection('192.1.5.2', 80, timeout=50)
conn.request('GET', '/')
conn.getresponse()

Expected Behavior
It should give up waiting when requested and exit immediately.

Actual Behavior
What happens instead.
Keeps doing it's timeout until elapse then exits.

The issue is in socket.connect, not in urllib3.

Environment
OS Windows-10-10.0.18362-SP0
Python 3.6.5
urllib3 1.26.3
!Doesn't happen on linux.

----------
components: Library (Lib)
messages: 394111
nosy: mrx23dot
priority: normal
severity: normal
status: open
title: socket.connect ignores CTRL+C during timeout on Win
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44204>
_______________________________________


More information about the New-bugs-announce mailing list