Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

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

Open
zengkid opened this issue Jun 6, 2020 · 0 comments

Comments

@zengkid
Copy link

zengkid commented Jun 6, 2020

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);
    });
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant