[New-bugs-announce] [issue45328] http.client.HTTPConnection doesn't work without TCP_NODELAY
R
report at bugs.python.org
Thu Sep 30 04:06:56 EDT 2021
New submission from R <rtobarc at gmail.com>:
I'm working on trying to run python under SerenityOS.
At the moment, SerenityOS doesn't implement the TCP_NODELAY socket option. This makes the HTTPConnection.connect() method raise an OSError for an operation that is otherwise optional. Additionally, the connection object can be left in an intermediate state: the underlying socket is always created, but depending on what method was invoked (either connect() directly or a higher-level one such as putrequest()) the connection object can be in IDLE or REQ_STARTED state.
I have a patch that works (attached), and I'll be working on submitting a PR now.
Usage of TCP_NODELAY was introduced in 3.5 (#23302), so even though I've been testing against 3.10rc2 for the time being I'm sure it will affect all versions in between.
----------
components: Library (Lib)
files: http-client.patch
keywords: patch
messages: 402937
nosy: rtobar2
priority: normal
severity: normal
status: open
title: http.client.HTTPConnection doesn't work without TCP_NODELAY
type: behavior
versions: Python 3.10
Added file: https://bugs.python.org/file50316/http-client.patch
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45328>
_______________________________________
More information about the New-bugs-announce
mailing list