ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Migration from shttp_d puzzling #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have been using SHTTPD as an API in a Windows Visual C++ Project. I would
like to migrate to mongoose.Is this always possible? Are notes available
for guiding would-be migrants such as myself?

With SHTTPD callbacks are called repeatedly until the request and response
are finished. This was controlled by shttpd_arg.flags. It is not clear to
me how this is handled by mongoose. Is the callback called only once? Must
MAX_REQUEST_SIZE be large enough to hold the largest possible transmission? 

Thanks.

Original issue reported on code.google.com by frank.me...@gmail.com on 12 Feb 2009 at 8:09

GoogleCodeExporter commented 9 years ago
In Mongoose, each connection is handled by its own thread. So, the callback may
output as many data as it wants, and even block. Callback is called only once 
per
request.

Original comment by valenok on 12 Feb 2009 at 9:17

GoogleCodeExporter commented 9 years ago
Please see http://code.google.com/p/mongoose/wiki/ArchitectureNotes

Original comment by valenok on 11 Mar 2009 at 9:41