Re: [Twisted-Python] half-closing SSL connection, unexpected connectionLost() error

2009-02-13 Thread glyph
On 02:35 pm, denis.bile...@gmail.com wrote: What's the correct way to call loseWriteConnection on SSL connection? It is illegal, according to the specification. http://tools.ietf.org/html/rfc4346#section-7.2.1 [upon receiving a close_notify] ... The other party MUST respond with a clos

[Twisted-Python] half-closing SSL connection, unexpected connectionLost() error

2009-02-13 Thread Denis Bilenko
Hi, What's the correct way to call loseWriteConnection on SSL connection? I keep getting "Connection was closed in a non-clean fashion" errors when I do that. Here's a minimal server and a client that trigger the error. Note that the server does not implement IHalfCloseableProtocol and I'd like t