M2Crypto: select() behaves weird on SSL sockets
Ng Pheng Siong
ngps at vista.netmemetic.com
Tue Jun 11 22:29:31 EDT 2002
According to Irmen de Jong <irmen at NOSPAMREMOVETHISxs4all.nl>:
> I looked around a bit and oh boy, M2Crypto supplies a "pending"
> method on SSL sockets, that apparently returns the remaining data.
> I now have a workaround; if my socket is an SSL socket, and
> there are still bytes pending (socket.pending()>0), I don't
> call select. In all other cases it is 'safe' to call select.
> My code (Pyro with SSL and timeouts) now works, I'm happy :-)
Coming late into this thread, good to hear your code now works. ;-)
Just wondering: Does your code look contrived structured the way you have?
IOW, will any (simple) change(s) to M2Crypto's interfaces make it more
natural to express what you wish in this case?
(I'm working hard on my start-up. Very little time for M2Crypto, alas.
Don't even have time to read mail and Usenet...)
Ng Pheng Siong <ngps at netmemetic.com> * http://www.netmemetic.com
More information about the Python-list