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

fix crash on rebind #574

Merged
merged 1 commit into from
Nov 16, 2023
Merged

fix crash on rebind #574

merged 1 commit into from
Nov 16, 2023

Conversation

ekoby
Copy link
Member

@ekoby ekoby commented Nov 15, 2023

- keep binding objects around until server close
@ekoby ekoby requested a review from a team as a code owner November 15, 2023 17:29
struct binding_s *b = model_map_it_value(it);
if (!b->bound && b->waiter == NULL) {
it = model_map_it_remove(it);
free(b);
Copy link
Member

@dovholuknf dovholuknf Nov 15, 2023

Choose a reason for hiding this comment

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

don't need to free b->bound or b->waiter, right? i assume not but always better to ask i suppose :) (i see bound is a boolean now)

Copy link
Member Author

Choose a reason for hiding this comment

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

waiters are owned by the channel

Copy link
Member

@dovholuknf dovholuknf left a comment

Choose a reason for hiding this comment

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

other than the small question, which i'm sure is fine.. lgtm

@ekoby ekoby merged commit 7783c08 into main Nov 16, 2023
15 checks passed
@ekoby ekoby deleted the more-resilient-rebinding branch November 16, 2023 13:46
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.

services are not bound, and assertion fails when edge router flaps
2 participants