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

Method run_server

Lib/test/test_xmlrpc.py:350–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348 pass
349
350 def run_server():
351 server.socket.settimeout(float(1)) # Don't hang if client fails
352 server.handle_request() # First request and attempt at second
353 server.handle_request() # Retried second request
354
355 server = http.server.HTTPServer((socket_helper.HOST, 0), RequestHandler)
356 self.addCleanup(server.server_close)

Callers

nothing calls this directly

Calls 2

settimeoutMethod · 0.45
handle_requestMethod · 0.45

Tested by

no test coverage detected