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

Method serve

Lib/test/test_ssl.py:3769–3780  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3767 finish = False
3768
3769 def serve():
3770 server.listen()
3771 started.set()
3772 conns = []
3773 while not finish:
3774 r, w, e = select.select([server], [], [], 0.1)
3775 if server in r:
3776 # Let the socket hang around rather than having
3777 # it closed by garbage collection.
3778 conns.append(server.accept()[0])
3779 for sock in conns:
3780 sock.close()
3781
3782 t = threading.Thread(target=serve)
3783 t.start()

Callers

nothing calls this directly

Calls 8

listenMethod · 0.45
setMethod · 0.45
selectMethod · 0.45
appendMethod · 0.45
acceptMethod · 0.45
closeMethod · 0.45
sendMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected