MCPcopy Index your code
hub / github.com/python/cpython / get_request

Method get_request

Lib/test/test_logging.py:1028–1037  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1026 self.sslctx = sslctx
1027
1028 def get_request(self):
1029 try:
1030 sock, addr = self.socket.accept()
1031 if self.sslctx:
1032 sock = self.sslctx.wrap_socket(sock, server_side=True)
1033 except OSError as e:
1034 # socket errors are silenced by the caller, print them here
1035 sys.stderr.write("Got an error:\n%s\n" % e)
1036 raise
1037 return sock, addr
1038
1039class TestTCPServer(ControlMixin, ThreadingTCPServer):
1040 """

Callers

nothing calls this directly

Calls 3

wrap_socketMethod · 0.80
acceptMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected