MCPcopy
hub / github.com/tornadoweb/tornado / start_connect

Method start_connect

tornado/test/tcpclient_test.py:244–248  ·  view source on GitHub ↗
(self, addrinfo)

Source from the content-addressed store, hash-verified

242 self.assertTrue(stream.closed)
243
244 def start_connect(self, addrinfo):
245 conn = _Connector(addrinfo, self.create_stream)
246 # Give it a huge timeout; we'll trigger timeouts manually.
247 future = conn.start(3600, connect_timeout=self.io_loop.time() + 3600)
248 return conn, future
249
250 def test_immediate_success(self):
251 conn, future = self.start_connect(self.addrinfo)

Calls 3

_ConnectorClass · 0.90
timeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected