This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author melicertes
Recipients
Date 2004-06-22.18:13:40
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
If you do socket.setdefaulttimeout(X) before trying to
instantiate imaplib.IMAP4_SSL(), the connection hangs
partway through the SSL negotiation.

The cause is that socket.ssl() is actually incompatible
with timeouts (not sure why) and IMAP4_SSL() doesn't do
anything to guard against it.  It should do
.setblocking(1) on the socket.socket object before
passing it to socket.ssl().

The documentation should also clarify timeouts not
working with socket.ssl.
History
Date User Action Args
2007-08-23 14:22:47adminlinkissue977680 messages
2007-08-23 14:22:47admincreate