TimeoutConnection

Yun Fu <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <LISTSERV%[email protected]>
Hi All,

I wrote a TimeoutConnection.py to support timeout on a SSL
connection. I decided to wrap it up as a package with demo
to share with everybody. You can download it from

http://www.cs.duke.edu/~fu/m2crypto/timeoutm2crypto-0.01.tar.gz

Basically, I borrowed lots of ideas from Timothy O'Malley
timeoutsocket.py. However, nonblocking SSL is more complicated
and weird. The code was built for my own research purpose.
I notice there were quite a lot of questions on this list for
nonblocking sockets and select() usage for SSL connections.
So I decide to release my implementation to listen for opinions.
Hopefully, it can be added into M2Crypto in the future.

To use it, you need to apply _ssl.diff patch, which is basically
dave.patch, and copy TimeoutConnection.py to your own code.
I have a README in the package.

Thanks!

Yun Fu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.