[Twisted-Python] HTTP Agent persistent connections not closed for some HTTPS sites

Cory Benfield cory at lukasa.co.uk
Tue Mar 7 02:31:11 MST 2017


> On 6 Mar 2017, at 09:05, Adi Roiban <adi at roiban.ro> wrote:
> 
> I am not sure about which code are we talking here.
> The specific HTTP11ClientProtocol which will fix only the HTTP client
> part or the generic TLSMemoryBIOProtocol code which might fix any TLS
> connection?

I’m talking about the fact that calling TLSMemoryBIOProtocol.loseConnection may not ever actually drop the underlying FD is the surprising part of the code. We had to work around it in the server side by adding a timeout after loseConnection is called to end up calling abortConnection.

Cory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170307/0bb3b0a8/attachment-0002.html>


More information about the Twisted-Python mailing list