socket.TCP_KEEPCNT and socket.TCP_KEEPINTVL not implemented on all platforms

Bug #1493818 reported by Laszlo (Laca) Peter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
New
Undecided
Unassigned

Bug Description

keystoneclient 1.7.0 fails on Solaris with the following error:

AttributeError: 'module' object has no attribute 'TCP_KEEPCNT'

This is because the Python socket module only defines socket options that are defined in the system headers.
For example, Solaris does not implement TCP_KEEPCNT and TCP_KEEPINTVL.

The attached patch adds these options conditional to them being defined in the socket module.
A similar condition is already in place for the TCP_KEEPIDLE option.

Revision history for this message
Laszlo (Laca) Peter (laszlo-peter) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.