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

Class MyServer

Lib/test/test_socketserver.py:484–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482 # verify_request is False
483
484 class MyServer(socketserver.TCPServer):
485 def verify_request(self, request, client_address):
486 return False
487
488 shutdown_called = 0
489 def shutdown_request(self, request):
490 self.shutdown_called += 1
491 socketserver.TCPServer.shutdown_request(self, request)
492
493 server = MyServer((HOST, 0), socketserver.StreamRequestHandler)
494 s = socket.socket(server.address_family, socket.SOCK_STREAM)

Callers 5

make_serverMethod · 0.70
test_shutdownMethod · 0.70
test_threads_reapedMethod · 0.70

Calls

no outgoing calls

Tested by 5

make_serverMethod · 0.56
test_shutdownMethod · 0.56
test_threads_reapedMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…