Fix for hanging TCPSocket connection on server create (tested on ruby 2.0.0).