Dave I'm sorry, I've forgotten to add the last part. The problem is when I return put_index_data, he keeps in a infinite loop. When I return NULL everything is "normal" and he is unable to return the rest of the data.
[]'s Jordan Janeiro Telemídia - PUC-Rio ---------- Original Message ----------- From: "Jordan Janeiro Lopes da Silva" <[EMAIL PROTECTED]> To: Dave Shield <[EMAIL PROTECTED]> Cc: [email protected] Sent: Mon, 25 Jul 2005 11:04:06 -0300 Subject: Re: table generated by mib2c.iterate with timeout > > On Sun, 2005-07-24 at 09:57 -0300, Jordan Janeiro Lopes da Silva wrote: > > > I´ve generated a table using the script > > > mib2c.iterate.conf to generate my table..... > > > when I query this agent, my response is "Timeout: no response > > > from localhost:<port>" and the other terminal that executes the agent > > > stops and doesn´t answer any commands anymore neither Ctrl+C. > > > > That sounds suspiciously like an infinite loop. > > > > Does this problem affect the *whole* of the agent, or just your > > new table? Obviously, once the agent has gone runaway, this > > will affect everything - but if you re-start the agent afresh, > > can you query an individual object in the system group? > > > > Have you got any debugging statements in your code? > > That would be useful to indicate how much (if any) of your > > code is being called, and how often. I'd be particularly > > suspicious of the 'get_first'/'get_next' hooks. If this > > isn't moving properly from one row to the next, or isn't > > returning NULL at the end of the table, then you might > > well end up in an infinite loop. > > > > Dave > > Dave, you were right. I was debugging and saw that the problem is > the get_next hook. Some code keeps calling the get_next in a > infinite loop. I've tried to solve the problem, but I couldn't find > the problem. Do you have any suggestion? > > best regards, Jordan Janeiro > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies from IBM. Find simple to follow Roadmaps, straightforward > articles, informative Webcasts and more! Get everything you need to > get up to speed, fast. > http://ads.osdn.com/?ad_idt77&alloc_id492&opÌk _______________________________________________ > Net-snmp-coders mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders ------- End of Original Message ------- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
