Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Reconnect SSL connections when ovsdb-server restarts.
The do_handshake() function throws the exception OpenSSL.SSL.SysCallError when the peer's SSL connection is closed, And the recv() function also throws the exception OpenSSL.SSL.SysCallError when the peer's SSL connection is abnormally closed, This commit catches the exception and return error's errno. Similarly, the recv() function also throws the exception OpenSSL.SSL.ZeroReturnError when the peer's SSL connection is closed. This exception refers to TCP connection normal closed, return (0, "") Signed-off-by: Guoshuai Li <[email protected]> Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Numan Siddique <[email protected]>
- Loading branch information