On lör, 2006-11-04 at 15:09 +0100, Thomas Anders wrote: > -Coders, > > "make test TESTOPTS='-P tcp'" currently fails for CVS MAIN in the proxy tests: > > 45:testing Proxy GET support...FAIL > 46:testing Proxy SET support...FAIL > > Further investigation reveals that this is a real problem (rather than a test > script bug): if the destination for the proxy is down at the time the agent > starts, then a configuration such as > > proxy -t 2 -r 1 -v 2c -c testcommunity tcp:localhost:7765 system > > (i.e. proxy over TCP) will fail. UDP works fine, as well as starting the proxy > destination agent before the agent itself.
Hmm. To me it looks like the problem is that we aren't considering connection oriented protocols in the proxy code, it only tries to establish the connection in the reconfigure handler but to work it would need to keep track of connection state so that it could reconnect on transport failure. Thus I claim that the fact that snmp_open fails isn't an error but the inability of the proxy code to cope with it is an error. The it might well be that snmp_open would need to somehow return a more elaborate error state to make it possible for the code using it to understand the difference between a temporary failure (maybe 'No such service') and a permanent failure (maybe 'Host lookup failed'). I think that restarting a TCP proxy destination after the agent is started will give similar effect to starting it after the agent. /MF ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
