I’ve been noticing about a 2 second pause between PUT requests when
running either webrick or mongrel. GET, LIST and DELETE all work
great. I tested this by using curl to make a lot of continuous requests.
Even if I remove everything from the controller method and just
replace it with render(:nothing => true) I still get the lag. So I
don’t think it’s database overhead.
My theory is that Webrick/Mongrel are translating the PUT body as a
POST body (I noticed that some of the put body is coming through in
params). And fastcgi is doing a quicker job of it, or something.
But that still doesn’t quite sound right cause I’m pretty sure CGI
translates the body in both cases.
Anyone have any thoughts?