Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Beatnik (493)

Beatnik
  (email not shown publicly)
http://www.ldl48.org/

A 29 year old belgian who likes Mountain Dew, Girl Scout Cookies, Tim Hortons French Vanilla Flavoured Cappucinno, Belgian beer, Belgian chocolate, Belgian women, Magners Cider, chocolate chipped cookies and Perl. Likes snowboarding, snorkling, sailing and silence. Bach can really cheer him up! He still misses his dog.

Project Daddy of Spine [sf.net], a mod_perl based CMS.

In his superhero time (8.30 AM to 5.30 PM), he works on world peace.

Journal of Beatnik (493)

Monday December 19, 2005
10:15 AM

Booboo of the month: Time-outs

[ #28056 ]
One of my more recent booboos involved an perl script hooked to an SNMP OID, the Net-SNMP server and an unnamed SNMP Get client.
It's one of those "this only happens once every so often" booboos. It appeared as the SNMP client was generating double as much events as there were data collections on that specific OID. For a minute I thought it was caused by the SNMP client. After lots of swearing ([1] because I couldn't find the reason why this was happening ; [2] because I occasionally forgot to clear the generated events for a few days and I spent lots of time clearing them), I figured it out. It turned out the timeout value is usually set to 0,7 seconds. The script itself sometimes took more than 0,7 seconds to generate the required result and retry count was set to 2. By the time the second GET request was sent, the first response was returned and the second response was dropped automagically.

It took some sniffing and pondering before I found this out.. /me happy!
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.