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

close server connection when hosted service becomes unavailable #1096

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

scareything
Copy link
Member

No description provided.

@scareything scareything requested a review from a team as a code owner February 5, 2025 11:31
@scareything scareything changed the title Improve.udp.tests close server connections Feb 5, 2025
@@ -574,6 +574,10 @@ static void on_hosted_client_connect(ziti_connection serv, ziti_connection clt,
if (status != ZITI_OK) {
ZITI_LOG(ERROR, "hosted_service[%s] incoming connection failed: %s", service_ctx->service_name, ziti_errorstr(status));
ziti_close(clt, NULL);
Copy link
Member

Choose a reason for hiding this comment

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

when status != ZITI_OK - clt should be NULL. you can remove this line

@scareything scareything changed the title close server connections close server connections when hosted service becomes unavailable Feb 5, 2025
@scareything scareything changed the title close server connections when hosted service becomes unavailable close server connection when hosted service becomes unavailable Feb 5, 2025
@scareything scareything merged commit 3805db4 into main Feb 5, 2025
13 checks passed
@scareything scareything deleted the improve.udp.tests branch February 5, 2025 11:35
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