diff options
author | elie <elie> | 2013-09-02 06:08:28 +0000 |
---|---|---|
committer | elie <elie> | 2013-09-02 06:08:28 +0000 |
commit | 7c88869118305527be9a6aa52ce8f40e9216ee3b (patch) | |
tree | 064b4e133e123c93aaf128a058ee56ae9c59bb30 /pysnmp/carrier/asyncore | |
parent | f685bd3e8862bfee0e88f539470537f2940447ec (diff) | |
download | pysnmp-git-7c88869118305527be9a6aa52ce8f40e9216ee3b.tar.gz |
sockets now configured with SO_REUSEADDR option to fix possible
Windows error 10048.
Diffstat (limited to 'pysnmp/carrier/asyncore')
-rw-r--r-- | pysnmp/carrier/asyncore/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pysnmp/carrier/asyncore/base.py b/pysnmp/carrier/asyncore/base.py index 4316f352..6e9d0db2 100644 --- a/pysnmp/carrier/asyncore/base.py +++ b/pysnmp/carrier/asyncore/base.py @@ -41,6 +41,7 @@ class AbstractSocketTransport(asyncore.dispatcher, AbstractTransport): # socket and postpone transport registration at dispatcher # till AsynsockDispatcher invokes registerSocket() + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.setblocking(0) self.set_socket(sock) |