From 3d4b602884cf4368c7226c71e6f1031e3ce8d14d Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 8 Oct 2021 23:16:56 +0200 Subject: [PATCH] fix bug on access_time is not update after long body --- http_server.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/http_server.c b/http_server.c index 1f62997..70386c2 100644 --- a/http_server.c +++ b/http_server.c @@ -1471,6 +1471,11 @@ void *decode_multi_part_request_data(void *data) } free(part_name); } + /** + * The upload procedure may take time, the task access time should be updated + * after the procedure finish + */ + task->access_time = rq->client->last_io; // check if end of request if (line && strstr(line, boundend)) {