http_server icon indicating copy to clipboard operation
http_server copied to clipboard

Cancel the downloaded large file, but the server is still reading the file

Open zengkid opened this issue 5 years ago • 0 comments

The user suddenly stopped downloading the large file while downloading the large file, but the server is still reading the large file and did not cancel the request. The CUP, memory is high, and disk still reading data.

the large file more than 4G.

my code as below:

await for (HttpRequest request in server) {
    runZoned(() {
      virDir.serveRequest(request);
    });
  }

zengkid avatar Jun 06 '20 12:06 zengkid