[Twisted-Python] HTTP Agent persistent connections not closed for some HTTPS sites
Jean-Paul Calderone
exarkun at twistedmatrix.com
Thu Mar 9 15:01:31 MST 2017
On Thu, Mar 9, 2017 at 3:40 PM, Adi Roiban <adi at roiban.ro> wrote:
> On 7 March 2017 at 09:31, Cory Benfield <cory at lukasa.co.uk> wrote:
> >
> > 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
>
> In order to submit a patch, I am trying to write an automated tests for
> this.
> Were you able to reproduce this issue in a controlled environment.
>
> I am still not fully understanding why I get this behaviour with
> sharepoint.com sites.
>
> I am thinking at having a rigged TLS server which will keep the socket
> open but will not
> respond to the shutdown request.... but I still don't know how :)
>
>
Run the server with TLSMemoryBIOProtocol and use the transport's
pauseProducing method before you attempt the shutdown?
Jean-Paul
> --
> Adi Roiban
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170309/79de8b8f/attachment-0002.html>
More information about the Twisted-Python
mailing list