[Twisted-Python] HTTP Agent persistent connections not closed for some HTTPS sites
Jean-Paul Calderone
exarkun at twistedmatrix.com
Fri Mar 10 05:21:29 MST 2017
On Fri, Mar 10, 2017 at 3:26 AM, Cory Benfield <cory at lukasa.co.uk> wrote:
>
> On 9 Mar 2017, at 22:01, Jean-Paul Calderone <exarkun at twistedmatrix.com>
> wrote:
>
> Run the server with TLSMemoryBIOProtocol and use the transport's
> pauseProducing method before you attempt the shutdown?
>
> Jean-Paul
>
>
> Yup, that will work. Similarly, having two TLSMemoryBIOProtocols
> communicating together and pausing one before calling loseConnection on the
> other should also work. Essentially, any situation you can conjure where
> the closing connection will manage not to see either a TLS CloseNotify or a
> TCP FIN or RST will do the job.
>
Indeed. For that matter, you can have them interact in-memory (maybe
StringTransport is good enough as-is, maybe not, I'm not sure) and then
just stop shuttling the bytes in one direction. (I/O-free tests for the
win)
Jean-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170310/aba1629d/attachment-0002.html>
More information about the Twisted-Python
mailing list