-
Notifications
You must be signed in to change notification settings - Fork 67
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 the bug with SIGTERM non-graceful handling #247
Fix the bug with SIGTERM non-graceful handling #247
Conversation
Signed-off-by: Alex Demin <a.demin@thebeat.co>
Signed-off-by: Alex Demin <a.demin@thebeat.co>
component/http/component.go
Outdated
cb.errors = append(cb.errors, errors.New("negative or zero shutdown grace period provided")) | ||
} else { | ||
log.Infof("setting shutdown grace period") | ||
cb.httpWriteTimeout = gp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong assignment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, was a typo, fixed in 49ebea3
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
==========================================
+ Coverage 73.16% 73.22% +0.05%
==========================================
Files 61 61
Lines 3667 3675 +8
==========================================
+ Hits 2683 2691 +8
Misses 907 907
Partials 77 77
Continue to review full report at Codecov.
|
Signed-off-by: Alex Demin <a.demin@thebeat.co>
There was a problem hiding this 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: Alex Demin <a.demin@thebeat.co> Co-authored-by: Sotirios Mantziaris <s.mantziaris@thebeat.co>
Signed-off-by: Alex Demin a.demin@thebeat.co
Which problem is this PR solving?
This PR closes #246
Short description of the changes
Shutdown
with configurable timed context (default shutdown grace period is 5 seconds)BaseContext
from http service.