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

[ADDED] Default value for FlusherTimeout #1398

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Conversation

piotrpio
Copy link
Collaborator

This adds a default value for flusher timeout, preventing deadlock in certain circumstances

@piotrpio piotrpio requested review from Jarema and wallyqs September 12, 2023 06:24
nats.go Outdated
@@ -61,6 +61,7 @@ const (
DefaultReconnectBufSize = 8 * 1024 * 1024 // 8MB
RequestChanLen = 8
DefaultDrainTimeout = 30 * time.Second
DefaultFlusherTimeout = 30 * 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.

maybe set to time.Minute that should be enough I think, and just before the default ping interval 2*time.Minute

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

@piotrpio piotrpio merged commit 22c0f27 into main Sep 12, 2023
2 checks passed
@piotrpio piotrpio deleted the default-flusher-timeout branch September 12, 2023 16:34
@piotrpio piotrpio mentioned this pull request Sep 13, 2023
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.

2 participants