-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Handle shutdown of Hijacked connections #3636
Conversation
3338cde
to
83027ef
Compare
83027ef
to
a7d9e2b
Compare
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
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
server/server.go
Outdated
@@ -140,7 +222,7 @@ func NewServer(globalConfiguration configuration.GlobalConfiguration, provider p | |||
return server | |||
} | |||
|
|||
// Start starts the server. | |||
//Start starts the server. |
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.
Could you please add a space after //
server/server.go
Outdated
if state == http.StateHijacked { | ||
serverEntryPoint.hijackConnectionTracker.AddHijackedConnection(conn) | ||
} | ||
if state == http.StateClosed { |
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.
Why not using a else if
?
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.
Or maybe a switch case. Like you prefer
a7d9e2b
to
554a25f
Compare
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
What does this PR do?
Handle the shutdown of Hijacked connections (like websocket connection for example)
Motivation
Fixes #3630