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.

Author rtobar2
Recipients rtobar2
Date 2021-09-30.08:06:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632989216.99.0.864211743878.issue45328@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-09-30 08:06:57rtobar2setrecipients: + rtobar2
2021-09-30 08:06:56rtobar2setmessageid: <1632989216.99.0.864211743878.issue45328@roundup.psfhosted.org>
2021-09-30 08:06:56rtobar2linkissue45328 messages
2021-09-30 08:06:56rtobar2create