Skip to content

Commit 0a5c88b

Browse files
ducnguyen-sbDuc Nguyen
authored and
Sandwich Team
committed
Use False instead of 0 in setblocking
* Add runtime check for IO Helper * Remove repeated call to `sandwich()` in Listener * Add typehint for Listener in Sandwich TCP test * Use `False` instead of `0` in `setblocking` --------- Co-authored-by: Duc Nguyen <[email protected]> GitOrigin-RevId: e2ea7752735e1f810c98cf0736d870c9a1efa621
1 parent c70dc95 commit 0a5c88b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pysandwich/tunnel_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def create_expired_client_conf(sw: Sandwich) -> tunnel.Context:
142142

143143
def create_ios() -> tuple[SandwichIO.IO, SandwichIO.IO]:
144144
s1, s2 = socket.socketpair(family=socket.AF_UNIX, type=socket.SOCK_STREAM)
145-
s1.setblocking(0)
146-
s2.setblocking(0)
145+
s1.setblocking(False)
146+
s2.setblocking(False)
147147
return io_socket_wrap(s1), io_socket_wrap(s2)
148148

149149

0 commit comments

Comments
 (0)