summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-09-20 10:44:11 +0200
committerIlya Etingof <etingof@gmail.com>2018-09-20 10:44:11 +0200
commit250deca6ed1866699ae980238592c00a423e5a67 (patch)
tree1accfe671b5b6a93342f4746b265859cb5d669ce
parent2d91fa167e07aba77ab3206addcd009b7d2c81d3 (diff)
downloadpysnmp-git-250deca6ed1866699ae980238592c00a423e5a67.tar.gz
Ensure distinct transports if timeout/retries differ
Fix hlapi/v3arch transport target caching to ensure transport targets are different even if just timeout/retries options differ.
-rw-r--r--CHANGES.txt3
-rw-r--r--pysnmp/hlapi/lcd.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index fc1e9991..b815edb3 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,7 +2,8 @@
Revision 4.4.7, released 2018-09-XX
-----------------------------------
-No changes so far
+- Fixed hlapi/v3arch transport target caching to ensure transport targets
+ are different even if just timeout/retries options differ
Revision 4.4.6, released 2018-09-13
-----------------------------------
diff --git a/pysnmp/hlapi/lcd.py b/pysnmp/hlapi/lcd.py
index e5d18ec1..1d61c491 100644
--- a/pysnmp/hlapi/lcd.py
+++ b/pysnmp/hlapi/lcd.py
@@ -94,7 +94,10 @@ class CommandGeneratorLcdConfigurator(AbstractLcdConfigurator):
transportKey = (paramsName, transportTarget.transportDomain,
transportTarget.transportAddr,
- transportTarget.tagList)
+ transportTarget.timeout,
+ transportTarget.retries,
+ transportTarget.tagList,
+ transportTarget.iface)
if transportKey in cache['addr']:
addrName, useCount = cache['addr'][transportKey]