Change TCPServer to HTTPServer, enable SO_REUSEADDR.