March 6, 2008
Ruby Timeout::Error
I wanted to post this before, but got busy and now I can’t find the original post about this, but anyway…
When doing network stuff in Ruby - using any Net:: libs - there’s a little trick to trap for timeouts. You can’t simply use “rescue” do handle it. The timeout error is not a subclass of the standard error, so you have to explicitly trap for it:

you are such a nerd
what I mean is, why does anyone care about this????????????????????????????????
Well, I care!
It save me a lot of testing!
Thank you.
i care too. solved me some headaches. thanks!