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

Method call_after_accept

Lib/test/test_ssl.py:5191–5195  ·  view source on GitHub ↗
(unused)

Source from the content-addressed store, hash-verified

5189 ready_for_server_wrap_socket = threading.Event()
5190
5191 def call_after_accept(unused):
5192 server_accept_called.set()
5193 if not ready_for_server_wrap_socket.wait(support.SHORT_TIMEOUT):
5194 raise RuntimeError("wrap_socket event never set, test may fail.")
5195 return False # Tell the server thread to continue.
5196
5197 server = self.SingleConnectionTestServerThread(
5198 call_after_accept=call_after_accept,

Callers 1

runMethod · 0.80

Calls 6

printFunction · 0.50
setMethod · 0.45
waitMethod · 0.45
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected