Commit 6ab5f83a authored by Anael Beutot's avatar Anael Beutot Committed by Antoine Millet
Browse files

Catch socket errors when doing SSL handshake

parent 23e341a9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -241,6 +241,11 @@ class RPCStartHandler(object):
                logger.exception('SSL error:')
                self._goto(self.handle_error)
                return
        except socket.error as exc:
            logger.error('Socket error while doing handshake, (errno %s: %s)',
                         exc.errno, exc.strerror)
            self._goto(self.handle_error)
            return
        else:
            # create rpc_connection object
            self.rpc_con = RpcConnection(