On Fri, Mar 10, 2017 at 3:26 AM, Cory Benfield <[email protected]> wrote:
> > On 9 Mar 2017, at 22:01, Jean-Paul Calderone <[email protected]> > 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
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
