serve.py: use ThreadingTCPServer Hunter Monday, April 27th, 2026 at 2:57 PM
| serve.py | +2 | -1 |
186 self.end_headers() 187 188 try: - with socketserver.TCPServer(("", port), QuietHandler) as httpd: 189 + with socketserver.ThreadingTCPServer(("", port), QuietHandler) as httpd: 190 + httpd.daemon_threads = True 191 local_url = f"http://localhost:{port}" 192 network_url = f"http://{local_ip}:{port}" 193