Displaying 4 results from an estimated 4 matches for "max_body".
Did you mean:
a_body
2006 Nov 26
2
Writing a mod_put HttpHandler
...e (GB) files; it also supports resumable upload.
Before I get too involved, I''d like to ask if my reading of the
mongrel source code is correct, i.e. what I want to do isn''t
currently possible.
Looking at the class HttpRequest I see that request bodies larger
than Mongrel::MAX_BODY get streamed to a tempfile before they are
handed off to any handlers registered in the chain. Things were
looking up for me when I saw the HttpHandler#request_progress call,
but it doesn''t hand the body off to the handler (only the params). In
other words, mongrel would need to st...
2006 May 30
2
Mongrel Bug
Mongrel''s tempfile generation on
win32 is broken meaning large files can''t be uploaded.
On line 198 of mongrel.rb
(0.13.3) HttpRequest#initialize the tempfile function is called:
if clen > Const::MAX_BODY
@body =
Tempfile.new(self.class.name)
@body.binmode
else
Unfortunately this also
includes the module name as the example shows:
Mongrel::HttpRequest2496.9
Win32 doesn''t allow the '':'' character in file names so this fails.
I just solved the pro...
2006 Apr 11
0
Large file support (up and down) for Mongrel 0.13.3
...bout storing large request
bodies in a Tempfile. I''ve fleshed out that code so @body now has
either a StringIO object or an open/rewound Tempfile object. It works,
you can upload gigs of files just fine. I''m honoring CHUNK_SIZE.
There''s a threshold in a constant called MAX_BODY. If a file is larger,
it''ll get canned in a Tempfile. Currently, it''s set to the same size as
MAX_HEADER.
I''ve added to the test_response.rb appropriately. I''ve tested the
DirHander and CampingHandler. I''m going to test out the Rails handler now.
_...
2006 Dec 07
17
compress and max upload size?
I am using mongrel_cluster with mod_proxy_balancer and would like to
enable compression (assuming it improves throughtput) and limit file
size upload. I configured mod_deflate and LimitRequestSize in Apache,
but in my trials looks like the proxied calls bypass those directives
(the conf goes below).
Is there a way to get this?
-- fxn
# Adapt this .example locally, as usual.
#
# To be