I’ve got a rails app that acts as a backend to a Flex frontend. Mostly
serves xml back to the frontend. The app performs well, until I run a
performance test on it. Even using a 1 client request, I start getting
random errors, but they all stem from the same piece of code.
In the controller, it’s this line:
I’ve narrowed it down to one line of code in the xml_serialization.rb
at line 278 in the compute type function:
type = @record.class.columns_hash[name].type
If I comment this line out and return a hardcoded type of :string, the
errors go away. If I uncomment this line and return a hardcoded type of
:string, the errors come back.
In my error logs, it says the error EINVAL (invalid argument) occurs in
‘write’, but I don’t see a write there.
I’m not sure where to look to next. Any help would be appreciated.
“Tradin’ my time for the pay I get,
Livin’ on money that I ain’t made yet,
Gotta keep going, gotta find my way,
But I’ll live for the end of the day.”