Skip to content

Commit 5d528e5

Browse files
committed
Minor documentation fix to unix domain sockets class
1 parent 5519b0e commit 5d528e5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

fleet/http/unix_socket.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,19 @@ def has_timeout(timeout): # pragma: no cover
2727

2828
class UnixConnectionWithTimeout(httplib.HTTPConnection):
2929
"""
30-
HTTPConnection subclass that supports timeouts
31-
32-
All timeouts are in seconds. If None is passed for timeout then
33-
Python's default timeout for sockets will be used. See for example
34-
the docs of socket.setdefaulttimeout():
35-
http://docs.python.org/library/socket.html#socket.setdefaulttimeout
30+
HTTP over UNIX Domain Sockets
3631
"""
3732

3833
def __init__(self, host, port=None, strict=None, timeout=None, proxy_info=None):
3934
httplib.HTTPConnection.__init__(self, host, port)
4035
self.timeout = timeout
4136

4237
def connect(self):
43-
"""Setup the unix domain socket.
38+
"""Connect to the unix domain socket, which is passed to us as self.host
39+
40+
This is in host because the format we use for the unix domain socket is:
4441
45-
We don't actually connect until ``request`` because httplib2 doesn't given us the path in this method :(
42+
http+unix://%2Fpath%2Fto%2Fsocket.sock
4643
4744
"""
4845
try:

0 commit comments

Comments
 (0)