Commit 7ae1d6eb authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with HUP event.

parent c3e988ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ class SimpleRpcClient(ConnectionManager):
                self.shutdown()

        if event & select.EPOLLHUP:
            logging.error('Socket HUP fd/%s: %s' % (fd, err))
            logging.error('Socket HUP fd/%s' % fd)
            self.shutdown()                                                      #TODO

    def all_connections(self):
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ class SimpleRpcServer(ConnectionManager):
                    self.shutdown_client(fd)

            if event & select.EPOLLHUP:
                logging.error('Socket HUP fd/%s: %s' % (fd, err))
                logging.error('Socket HUP fd/%s' % fd)
                self.shutdown_client(fd)