MCPcopy
hub / github.com/cherrypy/cherrypy / connect

Method connect

cherrypy/test/test_wsgi_unix_socket.py:37–44  ·  view source on GitHub ↗

Override the connect method and assign a unix socket as a transport.

(self)

Source from the content-addressed store, hash-verified

35 return self
36
37 def connect(self):
38 """
39 Override the connect method and assign a unix socket as a transport.
40 """
41 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
42 sock.connect(self.path)
43 self.sock = sock
44 atexit.register(lambda: os.remove(self.path))
45
46
47@pytest.mark.skipif("sys.platform == 'win32'")

Callers 5

setup_serverMethod · 0.45
test_HTTP11_TimeoutMethod · 0.45
test_100_ContinueMethod · 0.45
test_queue_fullMethod · 0.45
test_No_CRLFMethod · 0.45

Calls 1

registerMethod · 0.80

Tested by

no test coverage detected