select + ssl

2005-02-23 Thread Ktm
Hello, I don't have the same behaviour with two codes who are quite the same, one using SSL, the other not. I tested the programs with stunnel and telnet , respectively. Here are the first code : ---

pb ssl + select

2005-02-14 Thread Ktm
Hi, the following code (just taken on the example) blocks on recv unless I uncomment the 'send' function. I tested it with stunnel. Select seems to tell that there is something to read whereas there is nothing. Moreover why does it block since I am in non blocking mode ? - from OpenSSL impo

m2crypto + asynchronous + stunnel

2005-01-12 Thread Ktm
34593 at 0xb7c5560c> (M2Crypto.SSL.SSLError:unexpected record [/usr/lib/python2.3/asyncore.py|write|77] [/usr/lib/python2.3/asyncore.py|handle_write_event|397] [echod-async.py|handle_write|33] [/usr/lib/python2.3/site-packages/M2Crypto/SSL/Connection.py|accept_ssl|84]) Thanks for your help,