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 dlmiles
Recipients Arfrever, dlmiles, flox, giampaolo.rodola, janssen, jcea, pitrou, vstinner
Date 2010-04-17.23:18:15
SpamBayes Score 1.5848711e-11
Marked as misclassified No
Message-id <1271546297.73.0.705910010942.issue8108@psf.upfronthosting.co.za>
In-reply-to
Content
With regards to create test cases for certain situations, sure this would be possible but not with "pure python" since your APIs deny/inhibit the particular things required to force a situation for a test case.

With regards to SSL_peek() blocking, you'd need to explain yourself better on that one.  The patch has been tested with the test cases from Python SVN enough to be happy they run ok.  Maybe you have some offline not yet checked in SSL test cases you are referring to.  To clarify why this is being done, if there is unread data then SSL_shutdown() will never return 1.  Maybe you can simulate this situation by using SSL_write() with 1 byte payloads and a 10ms delay between each SSL_write() of the "QUIT response message" (you are trying to simulate network propagation delay).  Then you have a client that tries to do unwrap() right after having sent the quit command, but makes no attempt to receive the response.

I'll leave you guys too it about how you want to handle things with python (i.e. to make the design choice trade offs).  I think all the points have been covered.
History
Date User Action Args
2010-04-17 23:18:17dlmilessetrecipients: + dlmiles, jcea, janssen, pitrou, vstinner, giampaolo.rodola, Arfrever, flox
2010-04-17 23:18:17dlmilessetmessageid: <1271546297.73.0.705910010942.issue8108@psf.upfronthosting.co.za>
2010-04-17 23:18:16dlmileslinkissue8108 messages
2010-04-17 23:18:15dlmilescreate