Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Fix params parser thread conflict on monkey patch

#38

we identified a problem with the monkey patch on ActionController::ParamsParser class. When running an served web app, after executing a request with Restfulie server, the following app requests will return this error:

!! Unexpected error while processing request: thread 0x1371a8 tried to join itself

This error occurs inside EventMachine and is caused by this monkey patch, we still don't know why. After commenting the monkey patch everything goes well.

I need to study better the ways to solve this, so, to avoid complains from the users I will deactivate this monkey patch on master branch during this solving time. The features that will be unavailable will be 400 and 415 status code handling.

Reported by Cipriani · April 13th, 2010 @ 03:30 PM

State: resolved
Milestone: v0.7.1
Assigned to: Cipriani Cipriani

Activity

  1. Cipriani
    Cipriani

    I managed to reproduce this problem, it happens only on Thin server. I tested with Webrick everything works fine.

    I sent an email to Thin forum asking about this error, meanwhile, I think that we need to find a solution without monkey patching.

    Another problem with this is that Restfulie users doesn't need that all controllers have this behaviour, thus forcing this is not a good practice.

    I will try another proposal using the env rack variable.

    April 13th, 2010 @ 05:58 PM

  2. Cipriani
    Cipriani
    • State changed from open to resolved

    This problem was solved. Now, the 400 and 415 status codes are only handled if the controller being accessed includes Restfulie and the cause of the Thread problem was a mistake in a Rack response being generated by restfulie.

    April 16th, 2010 @ 01:36 PM

  3. Guilherme Silveira
    Guilherme Silveira
    • State changed from resolved to open

    April 28th, 2010 @ 01:05 PM

  4. Guilherme Silveira
    Guilherme Silveira
    • State changed from open to resolved

    April 28th, 2010 @ 01:06 PM

  5. MarkCockerham
    MarkCockerham

    When applying for a job the main thing on which you have to focus is your profile. If you make a good best linkedin profile writing service portfolio and attract the attention of the company by telling them what you can serve to them then there is a chance of getting a job. Because there is a very tough competition in the market.

    August 13th, 2020 @ 04:49 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.