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

Problem: missing tests and inconsistent behaviour for ZAP corner cases #2752

Merged
merged 5 commits into from
Sep 18, 2017

Conversation

sigiesec
Copy link
Member

Solution: added tests & aligned behaviour

Fixes #2711

Solution: added test case for NULL/PLAIN/CURVE
Solution: emit events as expected by tests, and refuse connections when
ZAP is required but no handler started

Addresses zeromq#2711 partially
Solution: added test & some improvements of test utils
mechanisms

Solution: uniformly require a ZAP domain to be set to activate ZAP
handling, clarify comment on Stonehouse pattern
@@ -183,6 +202,8 @@ void zap_handler_generic (void *ctx,
char *version = s_recv (handler);
if (!version)
break; // Terminating - peer's socket closed
if (zap_protocol == zap_disconnect)
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this leaks the version string

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed this in 77f76a4

@bluca bluca merged commit e2f2193 into zeromq:master Sep 18, 2017
@sigiesec sigiesec deleted the test-no-zap-handler branch September 19, 2017 07:38
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.

2 participants