Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#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 04/21/11 at 11:53:08 by Joel Sherrill

Cc: dufault added

comment:2 Changed on 07/12/12 at 06:55:25 by Sebastian Huber

Resolution: fixed
Status: newclosed

comment:3 Changed on 11/24/14 at 18:58:28 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.