Ticket #4330 enhancement closed fixed
Allow the Deferred returned by Agent.request to be cancelled
|Reported by:||exarkun||Owned by:||exarkun|
|Cc:||forsberg@…, dangra@…, christian@…||Branch:||
(diff, github, buildbot, log)
|Author:||itamarst, exarkun, habnabit||Launchpad Bug:|
Description (last modified by itamar) (diff)
Cancelling the Deferred returned by Agent.request should fail the Deferred with a CancelledError and either:
- Cancel the connection setup attempt, if it is still in progress.
- Disconnect abort the in-progress request, if the connection has been set up and a request has been initiated.
This used to depend on #4329 to handle the former case; these days it depends on endpoints supporting cancellation.
Note: See TracTickets for help on using tickets.