I'd go with the optional argument. On Thu, Jul 10, 2008 at 1:26 PM, Kevin Ballard <[EMAIL PROTECTED]> wrote: > 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] > > > >
-- Kevin Clark http://glu.ttono.us
