From: Patrick Doyle Date: 2008-11-14T08:48:14+09:00 Subject: Re: How to set socket option SO_RCVTIMEO ------=_Part_8321_13194379.1226620270516 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How about something like: s = Socket.new(...) s.setsockopt(Socket::SOL_SOCKET, Socket::SO_RCVTIMEO, ...) s.connect(...) --wpd On Thu, Nov 13, 2008 at 6:29 PM, Kem Mason wrote: > > It appears that I am supposed to call setsockopt before connecting -- > which would explain why your example (which calls setsockopt before > calling accept()) works, and mine, where it is client side, does not. I > have yet to figure out how to create a client socket that I can call > setsockopt on without connecting right away. > > I'll post any update > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_8321_13194379.1226620270516--