socket.TCP_KEEPCNT and socket.TCP_KEEPINTVL not implemented on all platforms
Bug #1493818 reported by
Laszlo (Laca) Peter
This bug report is a duplicate of:
Bug #1483696: socket.TCP_KEEPCNT and socket.KEEPINTVL do not exist in windows.
Edit
Remove
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.
To post a comment you must log in.