Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle leaks are reported intermingled on app exit #224

Open
tchaloupka opened this issue Aug 23, 2020 · 1 comment
Open

Handle leaks are reported intermingled on app exit #224

tchaloupka opened this issue Aug 23, 2020 · 1 comment

Comments

@tchaloupka
Copy link
Contributor

Sample output for 4 threads:

[vibe-1(RfiZ) INF] Listening for requests on http://0.0.0.0:8080/
[vibe-3(MsfE) INF] Listening for requests on http://0.0.0.0:8080/
[vibe-2(kqJG) INF] Listening for requests on http://0.0.0.0:8080/
[vibe-0(q6Kw) INF] Listening for requests on http://0.0.0.0:8080/
^C[main(----) INF] Received signal 2. Shutting down.
WWarning (thread: vibe-2): lWarnieaking eventcore narWganin rdg (ri(nthread: ver becausthrvibe-0e e)itn: leakiaghndge (thread: vibe-1): vibe-3): leaki er:nve ge l naeeventcore raking eventctde sticroloirlrve e driver because therree activeb   eadhriver bceacanuadre stillse tlh eusere are sa there tceare stilitslli
 l acv   FateDctive handlei  s4
vh7ae  n  (dh streamListenlaF)es
n D
   FD 49 (streamListen)
22 (streamListen)
dles
   FD 25 (streamListen)
Warning (thread: vibe-2): leaking eventcore driver because theWarniWare are still acWarning (threang (thretadrive handle: vibe-3): leakidsnng i:
en  vgvibe-0 en) FD 47  t:(streamListen)
core (thread: vibe-1): leaking eventcore driver because there are still active handles
   FD 22 (streamListen)
 leaking eventcore driver driver because there are still active handles
   FD 25 (streamListen)
because there are still active handles
   FD 49 (streamListen)
  • eventcore: 0.9.8
  • vibe-core: 1.9.4
  • vibe-d: 0.9.1

Test code:

void main() {
    setupWorkerThreads(4);
    runWorkerTaskDist(&runServer);
    runApplication();
}

void runServer() {
    auto settings = new HTTPServerSettings;
    settings.options |= HTTPServerOption.reusePort;
    settings.bindAddresses = ["0.0.0.0"];
    settings.port = 8080;
    listenHTTP(settings, &handleRequest);
}

void handleRequest(scope HTTPServerRequest req, scope HTTPServerResponse res) {
        res.writeBody("Hello, World!", "text/plain");
}
@ljmf00
Copy link
Contributor

ljmf00 commented Aug 13, 2021

This is affecting https://github.com/TechEmpower/FrameworkBenchmarks and VibeHighEventPrioritytrick doesn't work with runWorkerTaskDist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants