Bryan Duxbury has requested that Thrift::Socket be given an optional Timeout argument, which will make it block on select() instead of read() and raise an error if it hits the timeout. The alternative is to make a Thrift::TimeoutTransport which wraps a Thrift::Socket and uses select itself (as Thrift::Socket implements #to_io, so it can be used in select()).

Does anybody have any opinions as to which approach is better?

-Kevin Ballard

--
Kevin Ballard
[EMAIL PROTECTED]



Reply via email to