Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

[DRAFT ]PMM-7000 Reconnect gRPC stream.#282

Draft
askomorokhov wants to merge 2 commits intomainfrom
PMM-7000-do-not-stop-agent-on-conn-fail-2
Draft

[DRAFT ]PMM-7000 Reconnect gRPC stream.#282
askomorokhov wants to merge 2 commits intomainfrom
PMM-7000-do-not-stop-agent-on-conn-fail-2

Conversation

@askomorokhov
Copy link
Copy Markdown
Contributor

@askomorokhov askomorokhov requested a review from BupycHuk as a code owner July 5, 2021 09:29
if !s.waitUntilReady(conn, l) {
l.Errorf("Failed to establish two-way communication channel.")
}
streamCtx, streamCancel := context.WithCancel(context.Background())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

conn.Close()
return
}
s.s = stream
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this replacement should be done more safety, it can cause race condition.

@askomorokhov askomorokhov changed the title PMM-7000 Reconnect gRPC stream. [DRAFT ]PMM-7000 Reconnect gRPC stream. Jul 20, 2021
@askomorokhov askomorokhov marked this pull request as draft July 20, 2021 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants