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

Method serve_until_stopped

Lib/logging/config.py:1020–1031  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1018 self.verify = verify
1019
1020 def serve_until_stopped(self):
1021 import select
1022 abort = 0
1023 while not abort:
1024 rd, wr, ex = select.select([self.socket.fileno()],
1025 [], [],
1026 self.timeout)
1027 if rd:
1028 self.handle_request()
1029 with logging._lock:
1030 abort = self.abort
1031 self.server_close()
1032
1033 class Server(threading.Thread):
1034

Callers 1

runMethod · 0.80

Calls 4

selectMethod · 0.45
filenoMethod · 0.45
handle_requestMethod · 0.45
server_closeMethod · 0.45

Tested by

no test coverage detected