From: Peter Fitzgibbons Date: 2011-07-29T12:39:53+09:00 Subject: How to overcome network IO block (lost network) ? --20cf3074d6a4af021b04a92d0841 Content-Type: text/plain; charset=ISO-8859-1 Hi Rubyists. I would like to know of any suggestions you have on working around lost network connection on an ActiveRecord object. The AR Connection is open, then network is lost, and the desired effect is short (5sec) timeout on the subsequent request. I have not found a secret sauce on MRI (1.8.7 or 1.9.2) that will perform an timeout when the thread (main thread) is blocked on network IO. Example code is here : https://gist.github.com/gists/1111340 Any advice is greatly appreciated. Peter Fitzgibbons (847) 859-9550 Email: peter.fitzgibbons@gmail.com IM GTalk: peter.fitzgibbons IM AOL: peter.fitzgibbons@gmail.com --20cf3074d6a4af021b04a92d0841--