[Eventmachine-talk] DistribuStream released

Francis Cianfrocca
Fri, 19 Oct 2007 12:06:41 -0000

On 10/19/07, Tony Arcieri <tony at clickcaster.com>
wrote:
>
> We observed it while running LineAndTextProtocol and HttpClient in the
> same Reactor.  I can see if I can revert the codebase to when we were
> experiencing the problem (months and months ago), but I think the better
> approach is to start removing some of the threaded components in our
current
> codebase and if the problem comes up again we can have a look then.
>
> We were also trying to use Kirk''s evented Mongrel at one point,
however it
> looks like due to the way the Mongrel API works we can''t use it
properly for
> what we want to do.  Mongrel has a method you call to synchronously consume
> the request body (for example, in a POST or PUT request), but in the
evented
> Mongrel this is stubbed out and the whole request has been consumed
> (including the body) before we even get access to the header information.
> We''re using the header information to authenticate file transfers,
so it''s
> somewhat pointless and wasteful if we can''t get access to that
information
> before the entire transfer has occurred.
>
> Francis, does your HTTP server let you check the header of a POST or PUT
> request before the body is consumed?

 No, but it wouldn''t be a stretch to add it.

Was the stalling easily repeatable? Could you reproduce it now if you had
to?
-------------- next part --------------
An HTML attachment was scrubbed...