Darryl Miles <darryl.mi...@darrylmiles.org> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8108>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to