Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit d47030a

Browse files
committed
Make socket Windows-proof
1 parent 09dbbe5 commit d47030a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stream/ws_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def __init__(self, ix, port_number):
280280
# between the python application and the kubernetes websocket. The self.python
281281
# half of the socket pair is used by the _proxy method to receive and send data
282282
# to the running python application.
283-
s, self.python = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM)
283+
s, self.python = socket.socketpair()
284284
# The self.socket half of the pair is used by the python application to send
285285
# and receive data to the eventual pod port. It is wrapped in the _Socket class
286286
# because a socket pair is an AF_UNIX socket, not a AF_INET socket. This allows

0 commit comments

Comments
 (0)