Skip to content
Branch: master
Find file History
otherwiseguy and blp Shutdown SSL connection before closing socket
Without shutting down the SSL connection, log messages like:

stream_ssl|WARN|SSL_read: unexpected SSL connection close
jsonrpc|WARN|ssl:127.0.0.1:47052: receive error: Protocol error
reconnect|WARN|ssl:127.0.0.1:47052: connection dropped (Protocol error)

would occur whenever the socket is closed. This just adds an
SSLStream.close() that calls shutdown() and ignores SSL errors, the
same way that lib/stream-ssl.c does in ssl_close().

Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Latest commit 5fe1799 Jul 11, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
compat Add multi-column index support for the Python IDL Apr 17, 2018
db python: Monitor Database table to manage lifecycle of IDL client. Mar 22, 2019
unixctl python: Fix invalid escape sequences. Jan 11, 2019
.gitignore python: New method to retrieve OVS version at runtime. Mar 2, 2012
__init__.py Implement initial Python bindings for Open vSwitch database. Aug 25, 2010
_json.c python-c-ext: Fix memory leak in Parser_finish Oct 31, 2018
daemon.py Python tests: Daemon ported to Windows Jan 3, 2017
dirs.py python: Add missing Apache License headers. Jan 5, 2016
dirs.py.template python: Add missing Apache License headers. Jan 5, 2016
fatal_signal.py tests: Use environment variable for default timeout. Aug 15, 2018
fcntl_win.py Adapt to flake8-import-order Mar 9, 2017
json.py Un-revert Work around Python/C JSON unicode differences Jan 15, 2019
jsonrpc.py Un-revert Work around Python/C JSON unicode differences Jan 15, 2019
ovsuuid.py Adapt to flake8-import-order Mar 9, 2017
poller.py python: Fix E117 over-indented. Feb 12, 2019
process.py
reconnect.py python: Monitor Database table to manage lifecycle of IDL client. Mar 22, 2019
socket_util.py python: Avoid flake8 warning for unused variables. Jan 11, 2019
stream.py Shutdown SSL connection before closing socket Jul 12, 2019
timeval.py python: Resolve pep8 blank line errors. Jan 5, 2016
util.py python: Fix invalid escape sequences. Jan 11, 2019
vlog.py vlog: Better handle syslog handler exceptions. Feb 25, 2019
winutils.py windows,python: Add restrictions to named pipes Sep 12, 2017
You can’t perform that action at this time.