Changes between and of Version 2Version 5Ticket #6751


Ignore:
Timestamp:
09/19/13 21:21:52 (8 years ago)
Author:
Glyph
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6751

    • Property Status changed from new to reopened
  • Ticket #6751 – Description

    v2 v5  
    11If an HTTP response has a small response-body, and a Twisted application does not immediately call `deliverBody` when said response is received, `Response` can leave its transport paused.
     2
     3When I say "immediately", I mean, ''synchronously within the response callback's invocation''.  If you call `deliverBody` at any point later, you go through the `_deliverBody_DEFERRED_CLOSE` callback which doesn't work.
    24
    35Among other things, this means that when `HTTP11ClientProtocol.quiescentCallback` is invoked, the 'quiescent' connection might be reading (if it happened to go through `_deliverBody_INITIAL`) or it might be paused (if it happened to go through `_deliverBody_DEFERRED_CLOSE`).