MCPcopy Index your code
hub / github.com/RustPython/RustPython / MyServer

Class MyServer

Lib/test/test_socketserver.py:472–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470 # verify_request is False
471
472 class MyServer(socketserver.TCPServer):
473 def verify_request(self, request, client_address):
474 return False
475
476 shutdown_called = 0
477 def shutdown_request(self, request):
478 self.shutdown_called += 1
479 socketserver.TCPServer.shutdown_request(self, request)
480
481 server = MyServer((HOST, 0), socketserver.StreamRequestHandler)
482 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