Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 418 Bytes

CancellableDeferredUseCases.mediawiki

File metadata and controls

1 lines (1 loc) · 418 Bytes

  * `twisted.web._newclient.Request.writeTo` returns a `Deferred` which fires when the request has been completely written to the transport.  If the connection is lost and a request is in the process of writing itself out, it should be told to stop.  This could be done by canceling the `Deferred` returned by `writeTo`.  It is currently done by having a separate method on `Request` (requiring extra state tracking).