[Python-Dev] the new 2.3a1 settimeout() with httplib and SSL
Geoffrey Talvola
gtalvola@nameconnector.com
Mon, 27 Jan 2003 11:59:56 -0500
Guido van Rossum [mailto:guido@python.org] wrote:
> Hm, when I added the timeout feature, I didn't think of SSL at all. I
> imagine that SSL gets an error and keeps retrying immediately, rather
> than using select() to block until more data is available.
>
> Part of this is that this simply doesn't work for SSL -- you shouldn't
> do that. (Sorry if you want it -- it's beyond my capabilities to hack
> this into the SSL code.)
>
> Part of this is that the SSL code should refuse a socket that's in
> nonblocking mode, *or* perhaps should restore blocking mode; I'm not
> sure.
>
> Anyway, please do enter a bug report. (A patch would be even cooler!)
I entered a bug report. I'll look at the source and see if I can come up
with a patch.
- Geoff