Lines Matching defs:socket
77 import socket
243 # The bytes from the socket object are iso-8859-1 strings.
838 def __init__(self, host, port=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
858 self._create_connection = socket.create_connection
949 self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
1067 # can be passed directly into socket methods
1112 # if point (2) is true, then we will have passed the socket to the
1345 connection is closed, the underlying socket is closed.
1357 # socket and response were made independent of this HTTPConnection
1362 # 1) will_close: this connection was reset and the prior socket and
1410 timeout=socket._GLOBAL_DEFAULT_TIMEOUT,