From: Dave Thomas Date: 2001-08-16T02:31:47+09:00 Subject: [ruby-talk:19807] Re: Exception handling bug? Dave Thomas writes: > ale@crimson.propagation.net writes: > > > Didn't post this to the bug database, as I'm not completely sure this is a > > bug. But let's see what you think about it. > > I'm betting you don't have a post listening on echo (7). > > Try a netstat -at | grep LISTEN > > You program isn't hanging - it's looping because the TCPSocket.new > call is throwing an exception. In the 'working' case, this exception > is being passed to to the top level program, where you're ignoring it > an exiting. In the 'hanging' case, it's being ignored in the low level > routine, and you're looping calling it. ... and to followup my own post, the unqualified rescue clause is also swallowing the timeout. Dave