Revision bcb1a39e

b/lib/http/server.py
522 522
    if pid == 0:
523 523
      # Child process
524 524
      try:
525
        # The client shouldn't keep the listening socket open. If the parent
526
        # process is restarted, it would fail when there's already something
527
        # listening (in this case its own child from a previous run) on the
528
        # same port.
529
        try:
530
          self.socket.close()
531
        except socket.error:
532
          pass
533
        self.socket = None
534

  
525 535
        self.request_executor(self, connection, client_addr)
526 536
      except Exception:
527 537
        logging.exception("Error while handling request from %s:%s",

Also available in: Unified diff