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

#412 tcp accept filter null pointer exception fix #413

Merged
merged 1 commit into from Mar 30, 2017

Conversation

tjamesturner
Copy link
Contributor

@tjamesturner tjamesturner commented Mar 30, 2017

simple fix for #412 . i am only changing 1 private method (TcpListener::accept). that method is only used in one place. i am changing the method to throw an IOException instead of returning null. returning null is guaranteed to cause a NullPoinerException which is guaranteed to stop the Poller::run loop. an IOException will instead be caught by an existing catch block in TcpListener::acceptEvent and handled gracefully (sent to the monitor socket or ignored).

@c-rack c-rack merged commit 73ab654 into zeromq:master Mar 30, 2017
tjamesturner added a commit to tjamesturner/jeromq that referenced this pull request Mar 31, 2017
trevorbernard added a commit that referenced this pull request Apr 1, 2017
#413 ZMQ.ZMQ_TCP_ACCEPT_FILTER NullPointerException fix changelog update
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.

None yet

2 participants