#38 ✓resolved
Cipriani

Fix params parser thread conflict on monkey patch

Reported by Cipriani | April 13th, 2010 @ 03:30 PM | in v0.7.1

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.

Comments and changes to this ticket

  • Cipriani

    Cipriani April 13th, 2010 @ 05:58 PM

    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.

  • Cipriani

    Cipriani April 16th, 2010 @ 01:36 PM

    • 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.

  • Guilherme Silveira

    Guilherme Silveira April 28th, 2010 @ 01:05 PM

    • State changed from “resolved” to “open”
  • Guilherme Silveira

    Guilherme Silveira April 28th, 2010 @ 01:06 PM

    • State changed from “open” to “resolved”
  • MarkCockerham

    MarkCockerham August 13th, 2020 @ 04:49 AM

    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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages