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

Keeplive natively inferred in the C++ runtime #1630

Merged
merged 7 commits into from
Mar 11, 2023
Merged

Conversation

cmnrd
Copy link
Collaborator

@cmnrd cmnrd commented Mar 9, 2023

This PR pulls in lf-lang/reactor-cpp#42 which allows the C++ runtime to automatically infer if keepalive is needed. Consequently, the keepalive target property in LF is disabled for the C++ target. If it is used anyway, a warning will be printed stating that the property is ignored.

@cmnrd cmnrd added the enhancement Enhancement of existing feature label Mar 9, 2023
@cmnrd cmnrd added the cpp Related to C++ target label Mar 9, 2023
@cmnrd cmnrd added this to the 0.5.0 milestone Mar 9, 2023
Copy link
Member

@tanneberger tanneberger left a comment

Choose a reason for hiding this comment

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

Looks good to me

@edwardalee
Copy link
Collaborator

Why not do this for all targets?

@cmnrd
Copy link
Collaborator Author

cmnrd commented Mar 9, 2023

Why not do this for all targets?

We should probably do it for all targets. But this of course requires support by the other runtimes and code generators.

Also, I think there are still some open semantic questions. For instance, the behavior of timeout in the C target is influenced by the value of keepalive (see discussion in #1496). I am not sure if we would want to keep it this way if keepalive is inferred and not set explicitly.

Copy link
Collaborator

@petervdonovan petervdonovan left a comment

Choose a reason for hiding this comment

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

LGTM
The TS test failure looks like just a network issue. Let's ignore it.

@cmnrd cmnrd merged commit f90dd16 into master Mar 11, 2023
@cmnrd cmnrd deleted the cpp-no-keepalive branch March 11, 2023 09:45
@lhstrh lhstrh changed the title Infer keeplive natively in the C++ runtime Keeplive natively inferred in the C++ runtime Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp Related to C++ target enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants