Socket handle leak and active handle warning with Vibe-D

Steven Schveighoffer schveiguy at gmail.com
Mon Jan 15 22:19:56 UTC 2024


On Monday, 15 January 2024 at 18:40:00 UTC, bomat wrote:

> Sorry, I probably should have mentioned I was on Windows.
> For testing it under Linux I commented out the call to 
> `connectMongoDB`, since I don't have it installed there - and 
> the warning went away.
> Interesting, I did not suspect that as the source of the 
> problem at all. :P
>
> I'm now looking into how to clean up MongoDB connections 
> properly, but don't see anything besides `cleanupConnections()` 
> (which I'm already calling without any effect).
> Maybe I need to initialize it differently... I'll experiment a 
> bit.

You may have to do the same thing I did with redis:

https://github.com/vibe-d/vibe.d/pull/2372

Good luck! I would also say, I don't know why Windows doesn't do 
the same trace info debug thing, except that probably whomever 
added it didn't care about windows.

-Steve


More information about the Digitalmars-d-learn mailing list