1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-07-29 21:01:13 +03:00

Test separated timeout for websocket and other requests

This commit is contained in:
bel
2015-05-30 01:25:39 +02:00
parent eb8ece00f7
commit f2a9354b18

View File

@ -235,7 +235,12 @@ void InformWebsockets(struct mg_context *ctx)
int main(int argc, char *argv[])
{
const char * options[] = { "document_root", DOCUMENT_ROOT,
"listening_ports", PORT, 0
"listening_ports", PORT,
"request_timeout_ms", "10000",
#ifdef USE_WEBSOCKET
"websocket_timeout_ms", "3600000",
#endif
0
};
struct mg_callbacks callbacks;
struct mg_context *ctx;