Skip to content

Seems to block the controller with recent rails #1

@til

Description

@til

When I put something like this in a controller action:

 run_later do
    logger.info "before run_later sleep"
    sleep 10
    logger.info "finished run_later"
  end

then the request takes 10s until it returns anything. The output in the log all appears at once at the end of the request.

I would have expected the controller to render immediately and see the message "finished" after approx. 10 seconds appear in the log.

I'm on ruby 1.8.7 on linux, tried both rails 2.3.3 and a blank project with rails 2.3.4, tried it both in development and production mode and with webrick and mongrel, the request was always blocked. Hm, not sure if I really tried all 8 possible combinations, but at least in 2.3.3 on production with both webservers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions