[Python-Dev] the new 2.3a1 settimeout() with httplib and SSL

Guido van Rossum guido@python.org
Mon, 27 Jan 2003 15:49:30 -0500


> It doesn't look terribly hard to make the SSL wrapper obey the timeout, by
> calling select() on the "raw" socket before calling SSL_write or SSL_read.
> I'm willing to try to get this to work.

That's cool.  I don't know much about the SSL_read() API -- does it
promise to read exactly the requested number of byte (unless the
socket is closed)?  Then a single select() before it is called may not
be sufficient.

--Guido van Rossum (home page: http://www.python.org/~guido/)