Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd): Ensure agent disconnect happens after timeout#6600

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 2 commits intomainfrommafredri/fix-agent-disconnect-too-early
Mar 14, 2023

Conversation

mafredri
Copy link
Member

Fixes#6598

@mafredrimafredri self-assigned thisMar 14, 2023
@mtojekmtojek changed the titlefix(coderd): Ensure agent disconnet happens after timeoutfix(coderd): Ensure agent disconnect happens after timeoutMar 14, 2023
@@ -175,6 +175,10 @@ func New(options *Options) *API {
if options.AgentInactiveDisconnectTimeout == 0 {
// Multiply the update by two to allow for some lag-time.
options.AgentInactiveDisconnectTimeout = options.AgentConnectionUpdateFrequency * 2
// Set a minimum timeout to avoid disconnecting too soon.
if options.AgentInactiveDisconnectTimeout < 2*time.Second {
Copy link
Member

Choose a reason for hiding this comment

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

2*time.Second

Interesting, doesn'tmake fmt complain about it?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This is actually fmt's handiwork. It groups operands when there are multiple operators.

Copy link
Member

Choose a reason for hiding this comment

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

TIL!

@mafredrimafredrienabled auto-merge (squash)March 14, 2023 13:13
@mafredrimafredri merged commit3485300 intomainMar 14, 2023
@mafredrimafredri deleted the mafredri/fix-agent-disconnect-too-early branchMarch 14, 2023 13:14
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 14, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mtojekmtojekmtojek approved these changes

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

skip tests: scaletest/reconnectingpty Test_Runner
3 participants
@mafredri@kylecarbs@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp