Title: Session - PDU list - Free()

Hi,

We have written a server program which uses the asynchronous interface (direct access to sockets) to talk to agents.

Problem:
1> The session contains a Request-PDU list which does not get freed till the session is closed. Hence the memory footprint keeps increasing.

To reduce overhead, we have avoided the session close call till there is an error in the socket.
2> We tried setting the flag "UCD_MSG_FLAG_EXPECT_RESPONSE", but it gets overridden in the net-snmp code.

Info Required:
1> Why is the session Request-PDU list not cleaned up when the matching response arrives? Are there any flags to be set?

2> If not, is there a way through the APIs to clean up the session Request-PDU list on demand?
3> Are there sample apps using the async interface?

Appreciate a quick response!

Thanks,
Ram

Reply via email to