Add support for the --max-clients option

This commit is contained in:
Shuanglei Tao
2017-04-06 21:24:19 +08:00
parent 9cc5e4a03b
commit 3580e80783
7 changed files with 22 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, voi
}
lws_get_peer_addresses(wsi, lws_get_socket_fd(wsi), name, sizeof(name), rip, sizeof(rip));
lwsl_notice("HTTP %s - %s (%s)\n", in, rip, name);
lwsl_notice("HTTP %s - %s (%s)\n", (char *) in, rip, name);
switch (check_auth(wsi)) {
case 0: