#1779 closed defect (fixed)

Update mongoose HTTP server to version 2.11

Reported by: Sebastian Huber Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: score Version: 4.11
Severity: normal Keywords:
Cc: dufault@… Blocked By:
Blocking:

Description

We should update the mongoose HTTP server to version 2.11. This is the latest release. The benefit is that it has a new server start function:

Start web server.

Parameters:
callback: user defined event handling function or NULL.
options: NULL terminated list of option_name, option_value pairs that
specify Mongoose configuration parameters.

Example:
const char *options[] = {
"document_root", "/var/www",
"listening_ports", "80,443s",
NULL
};
struct mg_context *ctx = mg_start(&my_func, options);

Please refer to http://code.google.com/p/mongoose/wiki/MongooseManual
for the list of valid option and their possible values.

Return:
web server context, or NULL on error.
struct mg_context *mg_start(mg_callback_t callback, const char options);

This server start function allows you to pass options. We can then add an option to configure the parameters of the server POSIX threads (like priority etc.).

Change History (3)

comment:1 Changed on Apr 21, 2011 at 11:53:08 AM by Joel Sherrill

Cc: dufault added

comment:3 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.