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

feat: support graceful shutdown (#2469) #2475

Merged
merged 4 commits into from
Mar 13, 2023
Merged

feat: support graceful shutdown (#2469) #2475

merged 4 commits into from
Mar 13, 2023

Conversation

windvalley
Copy link
Contributor

@windvalley windvalley commented Feb 25, 2023

Optimize the code to support graceful shutdown, and add configuration server.gracefulShutdownTimeout to allow users to customize the timeout, the default value is 5(seconds).

net/ghttp/ghttp_server.go Outdated Show resolved Hide resolved
net/ghttp/ghttp.go Show resolved Hide resolved
net/ghttp/ghttp_server_config.go Show resolved Hide resolved
Optimize the code to support graceful shutdown,
and add configuration `server.gracefulShutdownTimeout` to allow
users to customize the timeout, the default value is `5`(seconds).
net/ghttp/ghttp_server.go Outdated Show resolved Hide resolved
net/ghttp/ghttp_server.go Outdated Show resolved Hide resolved
@gqcn gqcn added awesome It's awesome! We keep watching. wip labels Mar 2, 2023
net/ghttp/ghttp_server.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2023

Codecov Report

Patch coverage: 91.48% and no project coverage change

Comparison is base (cbbfd85) 79.98% compared to head (1ab3b95) 79.98%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2475   +/-   ##
=======================================
  Coverage   79.98%   79.98%           
=======================================
  Files         599      599           
  Lines       49785    49793    +8     
=======================================
+ Hits        39821    39829    +8     
- Misses       8007     8010    +3     
+ Partials     1957     1954    -3     
Flag Coverage Δ
go-1.15-386 80.01% <91.48%> (-0.04%) ⬇️
go-1.15-amd64 80.01% <91.48%> (-0.01%) ⬇️
go-1.16-386 80.02% <91.48%> (-0.01%) ⬇️
go-1.16-amd64 80.02% <91.48%> (+0.02%) ⬆️
go-1.17-386 80.01% <91.48%> (+<0.01%) ⬆️
go-1.17-amd64 80.03% <91.48%> (+0.01%) ⬆️
go-1.18-386 79.92% <91.48%> (+<0.01%) ⬆️
go-1.18-amd64 79.93% <91.48%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
net/ghttp/ghttp.go 100.00% <ø> (ø)
net/ghttp/ghttp_server_graceful.go 59.55% <0.00%> (-1.03%) ⬇️
net/ghttp/ghttp_server.go 61.94% <100.00%> (ø)
net/ghttp/ghttp_server_config.go 61.70% <100.00%> (+0.20%) ⬆️
contrib/drivers/pgsql/pgsql.go 62.66% <0.00%> (-0.64%) ⬇️
contrib/nosql/redis/redis.go 88.88% <0.00%> (+0.13%) ⬆️
os/gfsnotify/gfsnotify_watcher_loop.go 88.23% <0.00%> (+5.04%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gqcn gqcn merged commit 8c07f1a into gogf:master Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awesome It's awesome! We keep watching. wip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants