tcp-client (rubygems): This gem implements a customizable TCP client class that gives you control over time limits. You can set time limits for individual read or write calls or set a deadline for entire call sequences. It has a very small footprint, no dependencies and is easily useable. 
Keywords: ruby|ruby-gem|socket|tcp|tcp-client|tcp-socket|timeout