summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2010-07-12 15:28:18 +0000
committerelie <elie>2010-07-12 15:28:18 +0000
commit34fce826580eac67fc3d384adba2e07675a2e492 (patch)
treeb8927c6253e139719a4f7849eb842ef78f76116e
parentade4babfaa6bca1d0d24f20492b397a686dfa025 (diff)
downloadpysnmp-34fce826580eac67fc3d384adba2e07675a2e492.tar.gz
retryCount semantic changed to include solely retries and do not include
original request
-rw-r--r--pysnmp/entity/rfc3413/cmdgen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py
index c4c58c9..adb905a 100644
--- a/pysnmp/entity/rfc3413/cmdgen.py
+++ b/pysnmp/entity/rfc3413/cmdgen.py
@@ -77,7 +77,7 @@ class CommandGeneratorBase:
origPdu,
origTimeout,
origRetryCount,
- origRetries,
+ origRetries + 1,
origSendRequestHandle,
(self.processResponsePdu, (cbFun, cbCtx))
)
@@ -175,7 +175,7 @@ class CommandGeneratorBase:
snmpEngine.transportDispatcher.jobStarted(id(self))
- debug.logger & debug.flagApp and debug.logger('_sendPdu: sendPduHandle %s, timeout %d, retry %d of %d' % (sendPduHandle, timeout, retryCount, retries))
+ debug.logger & debug.flagApp and debug.logger('_sendPdu: sendPduHandle %s, timeout %d, retry %d of %d' % (sendPduHandle, timeout, retries, retryCount))
self.__pendingReqs[sendPduHandle] = (
transportDomain,
@@ -190,7 +190,7 @@ class CommandGeneratorBase:
reqPDU,
timeout,
retryCount,
- retries + 1,
+ retries,
sendRequestHandle,
)