From: "Shea Martin" <null / void.0>
>
> I want to listen for connections for 2 seconds, then timeout.  Do I have 
> to use the Timeout module?

You could use select:

  timeout_sec = 2.0
  ios = select([@server], nil, nil, timeout_sec)
  if ios
    client = @server.accept
  end

Note that you'll probably want to put the socket into 
nonblocking mode.  It's possible for select to return
"ready to read" and have accept still block, if the
client happens to disconnect in the small window 
between the select and the accept.


Regards,

Bill