On 2012-10-04 19:33, Carlo Pires wrote: > Hi, > > Mongrel2 is great in receiving large uploads. It just stream them to > disk and notify the handler. > > But the inverse seems to be problematic. How can I stream a big file > (>4G) to be served by mongrel2 without compromising the memory?
In a way or another you will to kind of evaluate what size is the pipe between mongrel2 and the client (the control port can help you), then you send your file in many parts, each part in a single message. For example, you could send ~4000 messages, each being 1MB in size. This way, you never allocate a lot of memory. loïc
