MCPcopy Index your code
hub / github.com/PromtEngineer/localGPT / ReusableTCPServer

Class ReusableTCPServer

rag_system/api_server.py:746–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744 """Starts the API server."""
745 # Use a reusable TCP server to avoid "address in use" errors on restart
746 class ReusableTCPServer(socketserver.TCPServer):
747 allow_reuse_address = True
748
749 with ReusableTCPServer(("", port), AdvancedRagApiHandler) as httpd:
750 print(f"🚀 Starting Advanced RAG API server on port {port}")

Callers 1

start_serverFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected