[Twisted-Python] Streaming HTTP

Cory Benfield cory at lukasa.co.uk
Wed Nov 18 03:28:44 MST 2015


> On 18 Nov 2015, at 05:55, Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:
> 
> Does HTTP2 have choke/unchoke notifications on individual streams?  Ultimately this does resolve to TCP backpressure, though…

Not in such a binary form, no. The connection as a whole and each stream maintain independent flow control windows. This allows for pressure to be exerted on the sender to slow down, by allowing the flow control window to drop to zero. This means that there is some Twisted-level buffering, because we do have to get that data out of the socket and to queue at the application, but the amount of data to buffer is strictly bounded. Thus, if our application moves slowly, the remote side should be passively notified to slow down by the lack of window updates: we should only send those window updates once the application has actually taken some data from us.

Cory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: </pipermail/twisted-python/attachments/20151118/19b3bbef/attachment.sig>


More information about the Twisted-Python mailing list