Fixes missing socket attribute error during init_poolmanager
On Windows, the 'socket' python module does not contain the
attributes TCP_KEEPCNT or TCP_KEEPINTVL, causing services
consuming the library to malfunction.
Adds conditionals for adding the mentioned socket attributes
to the socket options.
socket.SIO_KEEPALIVE_VALS cannot be added as a socket option
for Windows, as there is another way entirely to enable that
option.
Reviewed: https:/ /review. openstack. org/211686 /git.openstack. org/cgit/ openstack/ python- keystoneclient/ commit/ ?id=33b24a6984c 8de2f26af790020 2bb85b6b5db125
Committed: https:/
Submitter: Jenkins
Branch: master
commit 33b24a6984c8de2 f26af7900202bb8 5b6b5db125
Author: Claudiu Belu <email address hidden>
Date: Tue Aug 11 10:34:40 2015 -0700
Fixes missing socket attribute error during init_poolmanager
On Windows, the 'socket' python module does not contain the
attributes TCP_KEEPCNT or TCP_KEEPINTVL, causing services
consuming the library to malfunction.
Adds conditionals for adding the mentioned socket attributes
to the socket options.
socket. SIO_KEEPALIVE_ VALS cannot be added as a socket option
for Windows, as there is another way entirely to enable that
option.
Change-Id: I2e9746ae65400b bd23c3b48dfc316 7de9eb66494
Partial-Bug: #1483696