Giampaolo Rodola' <billiej...@users.sourceforge.net> added the comment:

Ok, I've finally been able to reproduce the issue by installing OpenSSL 0.9.8m 
on my Ubuntu box.
By doing some debugging I'm starting to think that maybe there's something 
wrong with the shutdown() method implementation itself because no matter what, 
sooner or later it always ends up raising "error: [Errno 0] Error".

I've cheated by trapping shutdown() in a while loop waiting for it to succeed, 
I've tried to manually call handle_read() and handle_write(), I've also tried 
to set the socket back to blocking mode just to see if shutdown() would return 
but I've always ended up encountering "error: [Errno 0] Error".

IMHO, before going any further I'd investigate on why this call can just fail 
without providing any information about what happened.
>From the upper application's point of view there's nothing it can do in case 
>of such an error.
Assuming that "the remote side closed the connection abruptly" and close the 
socket is just wrong.

----------

_______________________________________
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