On Thu, Jul 3, 2008 at 5:01 PM, Roger Pack <roger.pack at
leadmediapartners.com>
wrote:
> Is that the case if you''ve defined on_write_complete in the child
class?
>
Nope. This would have the rather confusing behavior of you actually calling
your own on_write_complete method.
Generally I would assume if you''ve defined your own on_write_complete
behavior you can handle closing the connection inside of it yourself.
I generally store the current connection state as an instance variable and
use that to make decisions about what behaviors to execute in the callbacks.
Have a look at the Rev HTTP client for an example (although it doesn''t
use
on_write_complete).
--
Tony Arcieri
medioh.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rev-talk/attachments/20080703/e1b3158a/attachment.html>