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

Try catch for blocking recieve which can throw #1087

Merged
merged 1 commit into from
May 12, 2024

Conversation

tmatthey
Copy link

@tmatthey tmatthey commented May 6, 2024

Fixes #1086

If DNS is not accessible we get the poller throwing:

Unhandled exception. System.Net.Sockets.SocketException (11): Resource temporarily unavailable
   at System.Net.Sockets.Socket.Receive(Byte[] buffer)
   at NetMQ.Core.Utils.Signaler.Recv()
   at NetMQ.Core.Mailbox.TryRecv(Int32 timeout, Command& command)
   at NetMQ.Core.SocketBase.ProcessCommands(Int32 timeout, Boolean throttle, CancellationToken cancellationToken)
   at NetMQ.Core.SocketBase.GetSocketOption(ZmqSocketOption option)
   at NetMQ.NetMQSelector.Select(Item[] items, Int32 itemsCount, Int64 timeout)
   at NetMQ.NetMQPoller.RunPoller()
   at NetMQ.NetMQPoller.Run(SynchronizationContext syncContext)
   at NetMQ.NetMQPoller.Run()
   at System.Threading.Thread.StartCallback()

@tmatthey
Copy link
Author

Hi,
Since I have not write access to complete the pull request, is there any how could help me out and merge this PR? Thanks in advance.

@drewnoakes drewnoakes merged commit 915223d into zeromq:master May 12, 2024
2 checks passed
@tmatthey tmatthey deleted the pr/signal-tryrec branch May 12, 2024 22:22
@tmatthey
Copy link
Author

@drewnoakes thanks a lot! Do you know when a new package will be published on nuget.org with this fix?

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

Successfully merging this pull request may close these issues.

Poller thorws exception when signal fails on Recv() when resource temporarily unavailable
2 participants