summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2021-10-25 15:45:42 +0200
committerIlya Maximets <i.maximets@ovn.org>2021-11-03 15:24:44 +0100
commit3f550fa53824be9ba65e8095d3e97d713be388c9 (patch)
treeb6a9d592fea821f05b0035f0ce38b95aa2f80f3f /.travis.yml
parent56c3de3c61e6a421fab4dbcdab775de6be8992e5 (diff)
downloadopenvswitch-3f550fa53824be9ba65e8095d3e97d713be388c9.tar.gz
python: socket-util: Split inet_open_active function and use connect_ex.
In an upcoming patch, PyOpenSSL will be replaced with Python ssl module, but in order to do an async connection with Python ssl module the ssl socket must be created when the socket is created, but before the socket is connected. So, inet_open_active function is splitted in 3 parts: - inet_create_socket_active: creates the socket and returns the family and the socket, or (error, None) if some error needs to be returned. - inet_connect_active: connect the socket and returns the errno (it returns 0 if errno is EINPROGRESS or EWOULDBLOCK). connect is replaced by connect_ex, since Python suggest to use it for asynchronous connects and it's also cleaner since inet_connect_active returns errno that connect_ex already returns, moreover due to a Python limitation connect cannot not be used with ssl module. inet_open_active function is changed in order to use the new functions inet_create_socket_active and inet_connect_active. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Terry Wilson <twilson@redhat.com> Tested-by: Terry Wilson <twilson@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions