greenio: fix bug in GreenSocket.set_blocking, it used to put the underlying socket in blocking mode (fix by Marcin Bachry)

This commit is contained in:
Denis Bilenko
2009-06-11 15:53:39 +07:00
parent 3d54bd0cf9
commit 259e646c96

View File

@@ -352,7 +352,6 @@ class GreenSocket(object):
return self.fd.sendto(*args)
def setblocking(self, flag):
self.fd.setblocking(flag)
if flag:
self.act_non_blocking = False
self.timeout = None