Blame SOURCES/net-snmp-5.8-proxy-time-out.patch
|
|
872173 |
From 6fd7499ccaafdf244a74306972562b2091cb91b1 Mon Sep 17 00:00:00 2001
|
|
|
872173 |
From: fisabelle <fisabelle@broadsoft.com>
|
|
|
872173 |
Date: Thu, 9 Jul 2020 15:49:35 -0400
|
|
|
872173 |
Subject: [PATCH] Issue#147: Net-SNMP not responding when proxy requests times
|
|
|
872173 |
out
|
|
|
872173 |
|
|
|
872173 |
---
|
|
|
872173 |
agent/mibgroup/ucd-snmp/proxy.c | 11 +++++++++++
|
|
|
872173 |
1 file changed, 11 insertions(+)
|
|
|
872173 |
|
|
|
872173 |
diff --git a/agent/mibgroup/ucd-snmp/proxy.c b/agent/mibgroup/ucd-snmp/proxy.c
|
|
|
872173 |
index 24ae9322bd..e0ee96b29a 100644
|
|
|
872173 |
--- a/agent/mibgroup/ucd-snmp/proxy.c
|
|
|
872173 |
+++ b/agent/mibgroup/ucd-snmp/proxy.c
|
|
|
872173 |
@@ -572,6 +572,17 @@ proxy_got_response(int operation, netsnmp_session * sess, int reqid,
|
|
|
872173 |
}
|
|
|
872173 |
|
|
|
872173 |
switch (operation) {
|
|
|
872173 |
+ case NETSNMP_CALLBACK_OP_RESEND:
|
|
|
872173 |
+ /*
|
|
|
872173 |
+ * Issue#147: Net-SNMP not responding when proxy requests times out
|
|
|
872173 |
+ *
|
|
|
872173 |
+ * When snmp_api issue a resend, the default case was hit and the
|
|
|
872173 |
+ * delagated cache was freed.
|
|
|
872173 |
+ * As a result, the NETSNMP_CALLBACK_OP_TIMED_OUT never came in.
|
|
|
872173 |
+ */
|
|
|
872173 |
+ DEBUGMSGTL(("proxy", "pdu has been resent for request = %8p\n", requests));
|
|
|
872173 |
+ return SNMP_ERR_NOERROR;
|
|
|
872173 |
+
|
|
|
872173 |
case NETSNMP_CALLBACK_OP_TIMED_OUT:
|
|
|
872173 |
/*
|
|
|
872173 |
* WWWXXX: don't leave requests delayed if operation is
|
|
|
872173 |
|