Nathaniel Smith added the comment:

My reading of the man page is that if SSL_shutdown returns 0, this means that 
it succeeded at doing the first phase of shutdown. If there are errors then 
they should be ignored, because it actually succeeded.

If you want to then complete the second phase of shutdown, of course, you have 
to call it again, but that's no different than any other use of SSL_shutdown.

If two calls to SSL_shutdown both return zero, then that's definitely a bug in 
OpenSSL. A return value of zero means that previously the SSL_SENT_SHUTDOWN 
flag was not set, and now it is set, so that can only happen once per 
connection. But that's orthogonal to the SSL_ERROR_SYSCALL issue.

----------

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

Reply via email to