On Tue, 16 Aug 2005 13:46:25 -0400 shuki wrote:
SS> Hi all, I am evaluating porting the Net-SNMP (5.2.1) to a thread
SS> environment platform.
SS> Only one thread of SNMP agent will run at the time.
SS> However stopping and starting the SNMP agent is a requirement.
Then I suggest you either
1) add code to simply stop/start processing requests (instead of actaully
shutting down the agent)
2) let the thread die and start a new one.
SS> A few questions:
SS> Is it safe to use the code under SHUTDOWN_AGENT_CLEANLY to shutdown the
SS> agent?
No. Some progress has been made, but I still think there is work left to do.
SS> Will it successfully clean all the memory and resources allocated? (like
SS> the open sockets for instance...)
No, not even close.
SS> If the code is really broken as the comments states what will it take to
SS> fix it?
It is not a goal to allow the agent to start and stop, releasing all resouces.
The code you mention should release as many resources as possible, but it
would take a serious effort (probably on the level of a complete rewrite) to
release all resources.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders