id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,branch,branch_author,launchpad_bug
6104,Make it possible to cancel getPage and downloadPage,luks,luks,"Currently there is no way to cancel the deferreds returned by `getPage` or `downloadPage`. The attached patch adds a canceller to these deferreds, so calling `d.cancel()` will actually close the connection and fail with `CancelledError`. The implementation is similar to `twisted.web.xmlrpc.Proxy.callRemote`, with a different way of calling the errback.

I had to change `HTTPClientFactory.clientConnectionFailed`, because even though the docstring suggests it should be possible to send a result to the deferred before this method is called, it wouldn't fire `_disconnectedDeferred` in that case and the user-specified callback/errback would never be actually called.",enhancement,new,normal,,web,,,jknight,branches/get-page-cancel-6104,glyph,
