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:
Sean Reifschneider
2021-03-19 10:44:29 -06:00
parent 14e70ec876
commit 2ca8e01864
2 changed files with 7 additions and 7 deletions

View File

@@ -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)"""