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 endless loop in graceful shutdown of config server #43

Merged
merged 5 commits into from
May 7, 2022

Conversation

Hexilee
Copy link
Member

@Hexilee Hexilee commented May 7, 2022

Signed-off-by: xixi i@hexilee.me

fix #34

Signed-off-by: xixi <i@hexilee.me>
select! {
_ = &mut *rx_mut => {
tracing::trace!("catch signal in config server.");
Connection::graceful_shutdown(Pin::new(conn_mut));
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems the connection cannot completely gracefully shut down in the stdio. This problem can be resolved by chaos-mesh/rfcs#34 (close the connection after each request). @Andrewmatilde @RandyLambert @YangKeao

Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: xixi <i@hexilee.me>
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.

chaos-tproxy-controller cannot graceful shut down
2 participants