Fixed: [SNMP: snmpwalk is slow and can timeout](https://github.com/clicon/clixon/issues/404)

This commit is contained in:
Olof hagsand 2024-10-31 15:41:13 +01:00
parent 0586e94856
commit 739d052383
5 changed files with 117 additions and 13 deletions

View file

@ -69,6 +69,7 @@
#include "snmp_lib.h"
#include "snmp_register.h"
#include "snmp_stream.h"
#include "snmp_handler.h"
/* Command line options to be passed to getopt(3) */
#define SNMP_OPTS "hVD:f:l:C:o:z"
@ -120,6 +121,7 @@ snmp_terminate(clixon_handle h)
xml_free(x);
x = NULL;
}
clixon_snmp_table_exit(h);
clicon_rpc_close_session(h);
yang_exit(h);
if ((nsctx = clicon_nsctx_global_get(h)) != NULL)