Currently, pyOpenSSL is half-deprecated upstream and so it's removed on some distributions (for example on CentOS Stream 9, https://issues.redhat.com/browse/CS-336), but since OVS only supports Python 3 it's possible to replace pyOpenSSL with "import ssl" included in base Python 3.
v2 -> v3: As suggested by Ilya, split up inet_open_active and use connect_ex. connect_ex is suggested upstream to be used for asynchronous connects and so it should be used also for "standard" TCP sockets. Removed raises in connect_ex, since from Python 3.3 (and OVS supports 3.4+) any errors returned by connect are a subclass of socket.error, or better OSError, so the errno can be used directly. Added a comment in "python: replace pyOpenSSL with ssl" patch that explains why TCPStream._open cannot be used. Timothy Redaelli (2): socket-util: split inet_open_active function and use connect_ex python: replace pyOpenSSL with ssl .ci/linux-prepare.sh | 2 +- .cirrus.yml | 2 +- .travis.yml | 1 - python/ovs/poller.py | 6 +-- python/ovs/socket_util.py | 36 ++++++++++------ python/ovs/stream.py | 91 +++++++++++++++++++++++---------------- tests/ovsdb-idl.at | 2 +- 7 files changed, 82 insertions(+), 58 deletions(-) -- 2.31.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev