Giampaolo Rodola' <billiej...@users.sourceforge.net> added the comment:
Ok, I took a look and it seems ok to me but I still get some occasional failures on Windows from time to time. Because of the threading nature of our server I suspect that moving del_channel() before ssl.wrap_socket() call, like this: - socket = ssl.wrap_socket([ ##etc. ]) - self.del_channel() - self.set_socket(socket) + self.del_channel() + self.socket = ssl.wrap_socket(...) + self.set_socket(self.socket) ...makes more sense (ps: pay attention, it's "self.socket", not "socket"). After I did that I stopped seeing the occasional failures (I'm not 100% sure it's actually related, but...). This is quite strange, anyway. I suspect it has something to do with this: http://entitycrisis.blogspot.com/2009/11/python-3-is-it-doomed.html ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2054> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com