Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
all HTTP POSTs fail on ARM Processor #1151
From ageorgios on January 25, 2014 00:13:28
What steps will reproduce the problem? 1. Use a rails app on an ARM processor like raspberry pi
Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=1052
From andreas.stahlhofen on February 11, 2014 01:31:48
I also receives the same error on a raspberry pi. This problem was already discussed on Stackoverflow, but without a good solution. http://stackoverflow.com/questions/16443705/redmine-2-3-ruby-2-0-0-nginx-1-4-1-with-passenger-4-0-2-all-http-posts-fail Seems as if it would work with an older version of passenger (=3.0.19).
Just ran into the same issue with Passenger 4.0.45 and both Nginx 1.4.6 and 1.6.0.
Passenger ContentHandler.c writes CONTENT_LENGTH SCGI header via
However, "r->headers_in.content_length_n" is of "off_t" type for some reason, which is 64 bit long on recent ARM platforms, and also signed.
With the last line above changed to
POST requests started to work for me on ARM-HF.
thereby letting the nginx code take care of the "off_t" sign and size.