MCPcopy Index your code
hub / github.com/docker/docker-py / connect

Method connect

docker/transport/unixconn.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 self.timeout = timeout
22
23 def connect(self):
24 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
25 sock.settimeout(self.timeout)
26 sock.connect(self.unix_socket)
27 self.sock = sock
28
29
30class UnixHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):

Callers

nothing calls this directly

Calls 1

settimeoutMethod · 0.45

Tested by

no test coverage detected