http_server
http_server copied to clipboard
Cancel the downloaded large file, but the server is still reading the file
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);
});
}