Skip to content

Commit

Permalink
Add support for AIX.
Browse files Browse the repository at this point in the history
Fixes #273
  • Loading branch information
thedrow committed Apr 4, 2019
1 parent 82a409f commit cef90ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions amqp/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def _versionatom(s):
if platform.release().endswith("Microsoft"):
KNOWN_TCP_OPTS = {'TCP_NODELAY', 'TCP_KEEPIDLE', 'TCP_KEEPINTVL',
'TCP_KEEPCNT'}

elif sys.platform.startswith('darwin'):
KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT')

Expand All @@ -67,6 +68,12 @@ def _versionatom(s):
elif sys.platform.startswith('sunos'):
KNOWN_TCP_OPTS.remove('TCP_MAXSEG')

# aix does not allow to set the TCP_MAXSEG
# or the TCP_USER_TIMEOUT socket options.
elif sys.platform.startswith('aix'):
KNOWN_TCP_OPTS.remove('TCP_MAXSEG')
KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT')

if sys.version_info < (2, 7, 7): # pragma: no cover
import functools

Expand Down

0 comments on commit cef90ee

Please sign in to comment.