This project is archived and is in readonly mode.
First request will always have an empty body due to delayed load of action_controller/cgi_process
-
Michael Koziarski
- Assigned user set to Michael Koziarski
- Milestone set to 2.3.4
We should take care of this in time for 2.3.4.
Would you care to submit a patch to preload those files?
-
Adam Milligan
Here you go. I worked from the 2-3-stable branch since all of the CGI stuff is gone in master.
-
Fjan
Thanks a million Adam! This bug had me scratching my head for quite a while. I think it's quite unacceptable that there is a small chance of a failing POST after a restart: the user might have been in the middle of a checkout process or might lose a long blog entry he had just been typing.
Too bad a fix didn't make it into 2.3.4, but it is easy enough to monkey patch by doing the require in the environment.rb. By the way: somehow the problem only exhibits itself when the Mongrels are proxied behind Apache, it doesn't happen in my development environment which made it hard to find.
-
Adam Milligan
Fjan, I'm pleased that this helped you out. My goal with things like this is to create a Google result for people who run into the same problem. If you're interested in more of the details I wrote a bit about it here: http://pivotallabs.com/users/amilligan/blog/articles/979-rails-requ...
