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

Handle shutdown of Hijacked connections #3636

Merged
merged 2 commits into from
Jul 19, 2018

Conversation

juliens
Copy link
Member

@juliens juliens commented Jul 18, 2018

What does this PR do?

Handle the shutdown of Hijacked connections (like websocket connection for example)

Motivation

Fixes #3630

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dtomcej dtomcej left a comment

Choose a reason for hiding this comment

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

LGTM
:shipit:

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.
Copy link
Member

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 {
Copy link
Member

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?

Copy link
Member

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

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants