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.
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.
Hey Mat, if you’ve got the curl commands you use I’ll investigate it.
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.
Hey Mat, if you’ve got the curl commands you use I’ll investigate it.
I have a route that maps ‘data/:file’ to my DataController’s index
method. If you just do the PUTs in a for loop you should see the
slowness. If you can’t see it with test code, let me know and maybe
I can just send you the server I have.
Thanks for the help,
Mat
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.