Fixing some bugs in socket blocking.
There were some bugs in my blocking code that are fixed in this. I had the setblocking() flag reversed, and wasn't passing the flag along to the underlying code properly.
This commit is contained in:
@@ -435,7 +435,7 @@ class socket:
|
||||
"""setblocking(flag)
|
||||
|
||||
Sets the socket to blocking mode if flag=True, non-blocking if flag=False."""
|
||||
libzt.zts_py_setblocking(self._fd, block)
|
||||
libzt.zts_py_setblocking(self._fd, flag)
|
||||
|
||||
def settimeout(self, value):
|
||||
"""libzt does not support this (yet)"""
|
||||
|
||||
Reference in New Issue
Block a user