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 janssen
Recipients chris.stawarz, gvanrossum, janssen
Date 2007-10-10.12:27:15
SpamBayes Score 0.42414355
Marked as misclassified No
Message-id <1192019236.92.0.583332636267.issue1251@psf.upfronthosting.co.za>
In-reply-to
Content
The larger problem here is that straightforward select() just doesn't 
work with SSL-wrapped sockets.  If you depend on it for liveness, your 
program will eventually hang up.

When packets in SSL arrive at a destination, they are pulled off the 
socket in chunks of sizes controlled by the encryption protocol being 
used, decrypted, and placed in SSL-internal buffers.  The buffer content 
is then transferred to the application program through SSL_read().  If 
you've read only part of the decrypted data, there will still be pending 
input data on the SSL connection, but it won't show up on the underlying 
file descriptor via select().  Your code needs to call SSL_pending() 
explicitly to see if there is any pending data to be read.
History
Date User Action Args
2007-10-10 12:27:17janssensetspambayes_score: 0.424144 -> 0.42414355
recipients: + janssen, gvanrossum, chris.stawarz
2007-10-10 12:27:17janssensetspambayes_score: 0.424144 -> 0.424144
messageid: <1192019236.92.0.583332636267.issue1251@psf.upfronthosting.co.za>
2007-10-10 12:27:16janssenlinkissue1251 messages
2007-10-10 12:27:15janssencreate