diff options
author | George Tantiras <raratiru@users.noreply.github.com> | 2018-10-13 17:13:35 +0300 |
---|---|---|
committer | Asif Saif Uddin <auvipy@gmail.com> | 2018-10-13 20:13:35 +0600 |
commit | f812b5695950c713f3f455b8df92336124aa8683 (patch) | |
tree | 47ff8848b1871c5f68df2e6cf20662974af526ed | |
parent | 2e6d6e945dae5088b480428580821ad20f491e9b (diff) | |
download | py-amqp-f812b5695950c713f3f455b8df92336124aa8683.tar.gz |
Fix Protocol not available for BSD (#200) (#211)
TCP_USER_TIMEOUT has to be excluded from KNOWN_TCP_OPTS in bsd platforms
-rw-r--r-- | amqp/platform.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/amqp/platform.py b/amqp/platform.py index d7151a5..9fd6a40 100644 --- a/amqp/platform.py +++ b/amqp/platform.py @@ -51,6 +51,9 @@ if sys.platform.startswith('linux'): elif sys.platform.startswith('darwin'): KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') +elif 'bsd' in sys.platform: + KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') + # According to MSDN Windows platforms support getsockopt(TCP_MAXSSEG) but not # setsockopt(TCP_MAXSEG) on IPPROTO_TCP sockets. elif sys.platform.startswith('win'): |