Socket do not get any data


I have one client that read data from one server.

Ruby code is like this

require ‘socket’

s = ‘localhost’, 2000

while line = s.gets # Read lines from socket
puts line # and print them

s.close # close socket when done

On most client it works.
but on one client I do not get any data from “s.gets”

Is there any way I can check why ?