MCPcopy Create free account
hub / github.com/ModelEngine-Group/flexai / main

Function main

GPU-Virtual-Service/gpu-remoting/proxy_msg.py:323–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321 logging.info(f"Client#{clientID} released all thread resources")
322
323
324def main():
325 config = load_runtime_config()
326
327 listenIp = config['ClientConfig']['proxyIp_']
328 listenPort = config['ClientConfig']['proxyPort_']
329
330
331
332 listen_proxy = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
333 listen_proxy.bind((listenIp, listenPort))
334 listen_proxy.listen()
335 logging.info(f"Listening on {listenIp}:{listenPort}")
336
337 try:
338 while True:
339 conn, addr = listen_proxy.accept()
340 logging.debug(f"Accepted connection from {addr}")
341 threading.Thread(target=handle_client_worker, args=(conn, addr)).start()
342 except KeyboardInterrupt:
343 logging.info("Shutting down...")
344 listen_proxy.close()
345
346
347if __name__ == "__main__":
348 main()

Callers 1

proxy_msg.pyFile · 0.70

Calls 4

startMethod · 0.80
loadMethod · 0.45
listenMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected