Can I bind multiple servers to the same TCP port?
问题 I would expect having multiple servers on the same port would cause problems. In fact I want it to throw an exception when I try to start two servers on the same port. The problem is, it seems more than happy to start multiple servers on the same port. I can have many instances of the following code running just fine with no exceptions. import BaseHTTPServer import SimpleHTTPServer import sys def main(): try: server = BaseHTTPServer.HTTPServer(('127.0.0.1',5000), SimpleHTTPServer