From 882b7cb6536493205fa3d29a9912355d6eb9e217 Mon Sep 17 00:00:00 2001 From: lxsang Date: Mon, 15 Oct 2018 12:34:49 +0200 Subject: [PATCH] use heavy task by default --- http_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server.c b/http_server.c index 94fcdc2..a3253ae 100644 --- a/http_server.c +++ b/http_server.c @@ -219,7 +219,6 @@ void *accept_request(void *data) return task; } } - client->attempt = 0; client->status = 1; task->handle = accept_request; return task; @@ -233,6 +232,7 @@ void *accept_request(void *data) } } #endif + client->attempt = 0; server_config.connection++; read_buf(rq->client, buf, sizeof(buf)); line = buf;