-
Notifications
You must be signed in to change notification settings - Fork 539
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
optimize: Fix error reporting during server shutdown process #1065 #1086
base: develop
Are you sure you want to change the base?
Conversation
…er shutdown Signed-off-by: YarBor <[email protected]>
@welkeyever Hey, is there anything to improve on this PR? |
pkg/network/standard/transport.go
Outdated
"time" | ||
|
||
"github.com/cloudwego/hertz/pkg/common/config" | ||
"github.com/cloudwego/hertz/pkg/common/hlog" | ||
"github.com/cloudwego/hertz/pkg/network" | ||
) | ||
|
||
const ( | ||
transportAlive int32 = 0 |
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.
Is this constant useless?
Sorry for the late, I'll take look |
pkg/network/standard/transport.go
Outdated
@@ -100,7 +110,12 @@ func (t *transport) Close() error { | |||
return t.Shutdown(ctx) | |||
} | |||
|
|||
func (t *transport) IsCallShutdown() bool { |
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.
Only for internal use, maybe no need to public it?
Signed-off-by: YarBor <[email protected]>
@YarBor Plz rebase develop and fix the CI |
What type of PR is this?
optimize
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
修复服务器shutdown过程中的报错问题
(Optional) Which issue(s) this PR fixes:
#1065
(Optional) The PR that updates user documentation: