mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-04 12:42:09 +03:00
Merge branch 'master' of ssh://github.com/valenok/mongoose
This commit is contained in:
@@ -4744,6 +4744,9 @@ static void process_new_connection(struct mg_connection *conn) {
|
|||||||
|
|
||||||
keep_alive_enabled = !strcmp(conn->ctx->config[ENABLE_KEEP_ALIVE], "yes");
|
keep_alive_enabled = !strcmp(conn->ctx->config[ENABLE_KEEP_ALIVE], "yes");
|
||||||
|
|
||||||
|
// Important: on new connection, reset the receiving buffer. Credit goes
|
||||||
|
// to crule42.
|
||||||
|
conn->data_len = 0;
|
||||||
do {
|
do {
|
||||||
reset_per_request_attributes(conn);
|
reset_per_request_attributes(conn);
|
||||||
conn->request_len = read_request(NULL, conn, conn->buf, conn->buf_size,
|
conn->request_len = read_request(NULL, conn, conn->buf, conn->buf_size,
|
||||||
|
Reference in New Issue
Block a user