Socket handle leak and active handle warning with Vibe-D

bomat Tempest_spam at gmx.de
Mon Jan 15 18:40:00 UTC 2024


On Monday, 15 January 2024 at 17:45:16 UTC, Steven Schveighoffer 
wrote:
> Which driver are you using? In the posix driver, it should 
> mention (and use) the debug flag `EventCoreLeakTrace`.
>
> https://github.com/vibe-d/eventcore/blob/7fa0a15fa541c3fcf65640ee332fd3a09c34730c/source/eventcore/drivers/posix/driver.d#L130
>
> I didn't realize this wasn't across the board...
> -Steve

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.


More information about the Digitalmars-d-learn mailing list