Ruby on Rails Monday, January 3, 2011

I have both ruby-1.8.7-p330 and ruby-1.9.2-p136 installed on my CentOS
server. I'm using Passenger (3.0.2) and Apache 2.2.3.

When using ruby-1.8.7, my app seems to be working fine.

When I change to ruby-1.9.2, GET requests seem to be fine, but POSTs
produce the following Apache error:

(104)Connection reset by peer: ap_content_length_filter:
apr_bucket_read() failed

And the following is in my production log:

Started POST "/login/verify_login" for etc...

TypeError (can't convert nil into Integer):

From Googling, it looks like Apache is expecting Rails to handle the
request differently. I've seen this quote: "This works as designed. It
is the task of the cgi script to swallow the whole request body prior
to sending a response, whether it uses it for some purpose or not."

Ok, so what do I change in Rails to make that happen?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment