thin eats all memory when requesting a large static file
-
macournoyer
- State changed from new to open
- Tag set to memory
hey Rolando,
This all depends on how you send the file in the code. Are you using Rails? Can you paste the code that sends the file.
Also tell me which version of Thin you are using (thin -v).
Thx for reporting!
-
macournoyer
I know this is how it's done in the adapter, but that is just for development. Serving static file should be done by a "real" web server like apache or nginx.
Or if you really want to do it in Ruby you should use streaming.
-
macournoyer
You can use the X-Sendfile header to process the request in Ruby but send the file using lighty:
-
macournoyer
- State changed from open to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.