[PYTHON-CRYPTO] Some issues with M2Crypto 0.18 and timeouts
Jesus Cea
jcea at ARGO.ES
Tue Oct 16 18:52:23 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Juan M. Bello Rivas wrote:
> Hi,
>
> On Wed, Oct 03, 2007 at 08:14:32PM +0200, Jesus Cea wrote:
>> Seems "accept_ssl()" can be called several times if the socket is
>> notblocking. Nice. But return codes is not consistent with openssl docs.
>> In fact, I can't make sense of it :-?. Any example out there?. I can't
>> differenciate between "waiting for read" and "waiting for writing", so I
>> can't use a "select" there. Any idea?.
>
> I think this:
>
> http://www.opensslbook.com/res/nonblock_support.txt
>
> and pages 159 to 166 from the same book are what you're looking for.
I was unable to make any significant progress in this issue. Too bad.
Today I found this link in my inbox: it is a backport of the future
"ssl" module from future python 2.6 to previous python revisions:
http://pypi.python.org/pypi/ssl
http://docs.python.org/dev/library/ssl.html
The module will be included in python 2.6 (and Python 3000, of course)
and it is *VERY* easy to use. It seems to support timeouts just fine.
I will integrate it in my POP3 server this week. Hope this SSL try be
the last one!.
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
_/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRxTsR5lgi5GaxT1NAQLrGQQAjO/H8s3vy3JT7CKshO6RbS5wNPVgVXzD
wjUDL6gp++64ln8lopbJW5Q7N5s6qeuMkt33Xesn5cbrV7x+yioy5U7wJffdDLH4
kjEUILCG3YI6ZnrlMC9IY35NK3DeHLKQ2Ve4CzLpH2jxjoi7iIuVuRjXil6ARKWa
jZAe3ofEvBM=
=3jZu
-----END PGP SIGNATURE-----
More information about the python-crypto
mailing list