Author giampaolo.rodola
Recipients giampaolo.rodola, gregory.p.smith, iElectric, janssen, jeffo, josiah.carlson, josiahcarlson, lgedgar, lszyba1, pitrou, qwavel, roberte, twhitema
Date 2009-11-17.20:01:19
SpamBayes Score 6.06695e-05
Marked as misclassified No
Message-id <1258488082.89.0.884738382915.issue2054@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-11-17 20:01:23giampaolo.rodolasetrecipients: + giampaolo.rodola, gregory.p.smith, josiahcarlson, janssen, pitrou, josiah.carlson, roberte, iElectric, lszyba1, twhitema, jeffo, qwavel, lgedgar
2009-11-17 20:01:22giampaolo.rodolasetmessageid: <1258488082.89.0.884738382915.issue2054@psf.upfronthosting.co.za>
2009-11-17 20:01:20giampaolo.rodolalinkissue2054 messages
2009-11-17 20:01:20giampaolo.rodolacreate