Perhaps your server is only set up to handle a single connection at once, and the juggernaut request is getting queued behind the main HTTP request? That would explain why you're only seeing it in development -- a production server is pretty certainly configured to handle multiple requests at once.
--- On Tue, 1/19/10, MacBoy <mac4...@gmail.com> wrote:
> --
> You received this message because you are subscribed to the
> Google Groups "Juggernaut for Rails" group.
> To post to this group, send email to juggernaut...@googlegroups.com.
> To unsubscribe from this group, send email to
> juggernaut-for-r...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/juggernaut-for-rails?hl=en.
>
>
>
http = EventMachine::Protocols::HttpClient.request(
:host => uri.host,
:port => uri.port,
:request => uri.path,
:content => params,
:contenttype => "application/x-www-form-urlencoded",
:verb => "POST"
)
You also have to define a http.callback and errback to play nice with
subscribe action.
Hope this helps.
Best regards
Marek Kowalski
On 19 Sty, 16:29, Noah Gibbs <noah_gi...@yahoo.com> wrote:
> I'm pretty sure that juggernaut is single-threaded, with very simple flow of control.
>
> Perhaps your server is only set up to handle a single connection at once, and the juggernaut request is getting queued behind the main HTTP request? That would explain why you're only seeing it in development -- a production server is pretty certainly configured to handle multiple requests at once.
>
> --- On Tue, 1/19/10, MacBoy <mac4w...@gmail.com> wrote: