-
Notifications
You must be signed in to change notification settings - Fork 755
Open
Description
Environment
NetMQ Version: 4.0.1.8
Operating System: Windows
.NET Version: dotnet 6
Expected behaviour
Not killing the process :D
Actual behaviour
When this occurs, the process crashes badly
Steps to reproduce the behaviour
We frequently start and stop endpoints with a backend and frontend, with a poller for async api execution, it happens more frequently if this code is used
_poller.Remove(_frontend);
_poller.Remove(_backend);
_poller.Stop();
instead of
_poller.Stop();
_poller.Remove(_frontend);
_poller.Remove(_backend);
It only happens if I enable timeouts on the frontend socket
_frontend.Options.HeartbeatInterval = TimeSpan.FromSeconds(5);
_frontend.Options.HeartbeatTimeout = TimeSpan.FromSeconds(1);
Is it possible that the code than handle timers is not really robust to this kind of connect/disconnect events ?
For example what i think is happening is that the timer collection is modified when this method runs :
Thank you
Valerio
Metadata
Metadata
Assignees
Labels
No labels