Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Don't raise an Exception on failure to connect via SSL.
With other socket types, trying to connect and failing will return an error code, but if an SSL Stream is used, then when check_connection_completion(sock) is called, SSL will raise an exception that doesn't derive from socket.error which is handled. This adds handling for SSL.SysCallError which has the same arguments as socket.error (errno, string). A future enhancement could be to go through SSLStream class and implement error checking for all of the possible exceptions similar to how lib/stream-ssl.c's interpret_ssl_error() works across the various methods that are implemented. Fixes: d90ed7d ("python: Add SSL support to the python ovs client library") Signed-off-by: Terry Wilson <[email protected]> Acked-by: Thomas Neuman <[email protected]> Acked-by: Mark Michelson <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information