'Forcefully revive all dead connections'

def force_revive(self):

    with self._lock:
        for (conn, _) in self.dead_connections:
            self.connections.append(conn)
        self.dead_connections = []
