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

Avoid machinarium call with router lock #606

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

x4m
Copy link
Collaborator

@x4m x4m commented Apr 10, 2024

Similar to #599

@reshke
Copy link
Contributor

reshke commented Apr 10, 2024

 	saddr = (struct sockaddr *)&sa;
-	if (client->type == OD_POOL_CLIENT_EXTERNAL)
-	{
+	if (client->type == OD_POOL_CLIENT_EXTERNAL) {
 		rc = machine_getpeername(client->io.io, saddr, &salen);
 		if (rc == -1) {
 			return OD_ROUTER_ERROR;
 			
 		

Copy link
Contributor

@reshke reshke left a comment

Choose a reason for hiding this comment

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

do fmt

@reshke reshke merged commit 738fd08 into yandex:master Apr 10, 2024
1 check passed
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