MCPcopy Index your code
hub / github.com/kubernetes-client/python / run

Method run

kubernetes/base/stream/ws_client_test.py:78–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 self._server_sock.listen(1)
77
78 def run(self):
79 conn, _ = self._server_sock.accept()
80 try:
81 data = conn.recv(1024).decode('utf-8', errors='ignore')
82 if data.startswith('CONNECT '):
83 self.received_connect = True
84 conn.sendall(b"HTTP/1.1 200 Connection established\r\n\r\n")
85 finally:
86 conn.close()
87
88class WSClientTest(unittest.TestCase):
89

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected