1

Is there any default timeout for the gets function of the TCPSocket class? How can I check it out?

Thanks in advance.

FrozenHeart
  • 19,844
  • 33
  • 126
  • 242
  • The [`IO.select`](http://www.ruby-doc.org/core-2.1.2/IO.html#method-c-select) method allows you to set timeouts. See "[Set socket timeout in Ruby via SO_RCVTIMEO socket option](http://stackoverflow.com/questions/9853516/set-socket-timeout-in-ruby-via-so-rcvtimeo-socket-option/12111120#12111120)." – the Tin Man Aug 18 '14 at 20:24
  • @the Tin Man I don't need to set it, I just need to check it out – FrozenHeart Aug 18 '14 at 20:27

0 Answers0