Compare commits

...

2 Commits

Author SHA1 Message Date
Eric Eastwood
92e6391487 Add changelog 2025-08-21 15:41:57 -05:00
Eric Eastwood
9e55b4c5ed Link upstream Twisted bug 2025-08-21 15:39:25 -05:00
2 changed files with 3 additions and 1 deletions

1
changelog.d/18855.misc Normal file
View File

@@ -0,0 +1 @@
Link [upstream Twisted bug](https://github.com/twisted/twisted/issues/12498) tracking the problem that explains why we have to use a `Producer` to write bytes to the request.

View File

@@ -913,8 +913,9 @@ def _write_bytes_to_request(request: Request, bytes_to_write: bytes) -> None:
# once (via `Request.write`) is that doing so starts the timeout for the
# next request to be received: so if it takes longer than 60s to stream back
# the response to the client, the client never gets it.
# c.f https://github.com/twisted/twisted/issues/12498
#
# The correct solution is to use a Producer; then the timeout is only
# One workaround is to use a `Producer`; then the timeout is only
# started once all of the content is sent over the TCP connection.
# To make sure we don't write all of the bytes at once we split it up into