[Python-Dev] TLSAbruptCloseError

Jon Ribbens jon+python-dev at unequivocal.co.uk
Wed Jun 13 11:53:26 CEST 2007


On Tue, Jun 05, 2007 at 12:55:07PM -0400, Todd Hopfinger wrote:
>    I am using TLS Lite and J2ME SecureConnection for the purposes of
>    encrypting traffic to/from a Java Midlet client and a multithreaded Python
>    server. However, I encounter a TLSAbruptCloseError. I have tried to
>    determine the cause of the exception to no avail. I understand that it has
>    to do with close_notify alerts. My abbreviated code follows.

It may or may not be your specific problem, but Microsoft SSL servers
tend to just drop the TCP connection when they're done, rather than
do a proper SSL shutdown. This tends to make errors such as the above,
which you must then ignore.


More information about the Python-Dev mailing list