Lennon Day-Reynolds <lennon / day-reynolds.com> schrieb in im Newsbeitrag:
3E6FB480.1080003 / day-reynolds.com...
> require 'timeout'
> require 'socket'
>
> timeout(20) {
>     s = Socket::TCPSocket.new('google.com', 80)
>     [...]
> }

it's nice!