keep tcp socket alive in ruby client