You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2019/05/03 13:54:37 UTC

[qpid-proton] branch master updated: PROTON-2039: Set python listener socket reuseaddr option

This is an automated email from the ASF dual-hosted git repository.

chug pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new c90c791  PROTON-2039: Set python listener socket reuseaddr option
c90c791 is described below

commit c90c7918db33da01e046be1c0d065b26ad04643a
Author: Chug <ch...@apache.org>
AuthorDate: Fri May 3 09:51:02 2019 -0400

    PROTON-2039: Set python listener socket reuseaddr option
    
    Apply the same logic used by other clients.
---
 python/proton/_io.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/proton/_io.py b/python/proton/_io.py
index ac15b20..b4239fc 100644
--- a/python/proton/_io.py
+++ b/python/proton/_io.py
@@ -43,6 +43,7 @@ class IO(object):
     def listen(host, port):
         s = socket.socket()
         IO._setupsocket(s)
+        s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True)
         s.bind((host, port))
         s.listen(10)
         return s


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org