The old server could handle this becasue every request was a thread. I wonder if a combination approach would be possible. We add back the ability to specify a list of URLS and then specify per URL if it is to be handled in the main event loop or spawn a thread.
That way we get good speed on large numbers of small calls but can also better handle chuncked responses, multi-part mime streaming upload and download etc. On Tue, Aug 19, 2014 at 5:33 PM, Sergey Lyubka <[email protected]> wrote: > Mongoose does this: spools file to memory, and when the whole file is > buffered, it invokes a callback. > I think mongoose blocks during big file write IO operation, and the > callbacks blocks for a long time. > > Could you try using upload.c example please? > > I think I might refactor the example to save the file in the separate > thread. > > > On Tue, Aug 19, 2014 at 9:48 PM, <[email protected]> wrote: > >> Hi, >> >> When uploading a large file (100+ megabytes), Mongoose seems to block >> until the entire file is uploaded. New requests are not accepted and the >> user callback function is not invoked. It can take many minutes before >> unblocking. I'm patterning my code off of the "big_upload.c" example. >> >> Is it expected that Mongoose will block while reading the data and only >> once that is done, invoke the callback and accept new connections? Does >> Mongoose hold the entire data set in memory or could there be some sort of >> streaming going on? >> >> Thanks, >> Doug >> >> -- >> You received this message because you are subscribed to the Google Groups >> "mongoose-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/mongoose-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "mongoose-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mongoose-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/d/optout.
