diff --git a/stream/ws_client.py b/stream/ws_client.py index 688405938..4e164e860 100644 --- a/stream/ws_client.py +++ b/stream/ws_client.py @@ -280,7 +280,7 @@ class PortForward: # between the python application and the kubernetes websocket. The self.python # half of the socket pair is used by the _proxy method to receive and send data # to the running python application. - s, self.python = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM) + s, self.python = socket.socketpair() # The self.socket half of the pair is used by the python application to send # and receive data to the eventual pod port. It is wrapped in the _Socket class # because a socket pair is an AF_UNIX socket, not a AF_INET socket. This allows