The handle_request
method handles only one request, so the parent process answers only one request.
You can put the calls to handle_request
in a loop.
Otherwise, if you mean the fact that you get an "in use" error when you fire up a new copy of the server, that's because you have to wait for the TCP 2MSL timer to time out. To work around that, set SO_REUSEADDR
on the listening socket. (Set self.allow_reuse_address
, although I'm not quite sure where to set it, having not done that.)