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

Prevent hanging on waiting for timeout time #477

Merged
merged 5 commits into from
Aug 29, 2024
Merged

Conversation

edwardalee
Copy link
Contributor

@edwardalee edwardalee commented Aug 9, 2024

This PR fixes a corner case where a federate with decentralized coordination that had no events at the timeout tag and has a large STA would hang even when its upstream federates exit and close the socket connection. The fix is to set the last known tag for input federates to FOREVER_TAG when a socket connection is closed.

It has a companion PR in lingua-franca

@edwardalee edwardalee added enhancement Enhancement of existing feature federated labels Aug 9, 2024
@lhstrh
Copy link
Member

lhstrh commented Aug 10, 2024

Is this still meant to be a draft?

@edwardalee edwardalee marked this pull request as ready for review August 10, 2024 10:35
@edwardalee edwardalee requested a review from lhstrh August 10, 2024 11:20
core/federated/federate.c Outdated Show resolved Hide resolved
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

I left a question, but aside from that question, this looks good.

Co-authored-by: Marten Lohstroh <[email protected]>
@edwardalee edwardalee enabled auto-merge August 28, 2024 13:58
@edwardalee edwardalee added this pull request to the merge queue Aug 29, 2024
Merged via the queue into main with commit e1550a2 Aug 29, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature federated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants