Socket handle leak and active handle warning with Vibe-D

Steven Schveighoffer schveiguy at gmail.com
Mon Jan 4 17:19:10 UTC 2021


On 1/3/21 6:53 PM, aberba wrote:
> On Friday, 1 January 2021 at 22:07:28 UTC, Selim Ozel wrote:
>> I created the simplest possible example as explained by the Vibe-D 
>> community in [1]. The exact source code of what I run is in [2].
>>
>> On Windows I get a socket handle leak warning on shutdown with crtl+c 
>> from terminal after running the executable.
>>
>>> [...]
>>
>> On Ubuntu 20.04 I get leaking drivers warning with the same process.
>>>    [...]
>>
>> I really don't know what this is all about but it is at the core of my 
>> Vibe-D development. So any pointers you might have would be very 
>> helpful to me.
>>
>> Thanks in advance.
>>
>> S
>>
>> [1] https://vibed.org/blog/posts/a-scalable-chat-room-service-in-d
>> [2] https://github.com/SelimOzel/vibe_noLeaks
> 
> Add this to your dub.json file to fix it
> 
> "versions": [ "VibeHighEventPriority" ]
> 
> 
> This issue should be fixed in next vibe.d release

No, this is a different issue. That issue is when the server doesn't 
shut down so you can't re-bind to the port without killing it with a 
SIGKILL signal.

And thankfully it should be fixed in the latest release (not vibe.d, but 
eventcore I think).

-Steve


More information about the Digitalmars-d-learn mailing list