Skip to content

Conversation

@nmengin
Copy link
Contributor

@nmengin nmengin commented Sep 17, 2018

What does this PR do?

This PR tests if HttpServer and hijackConnectionTracker are nil before to stop them.

Motivation

Avoid nil panic during the server shtudown.
Have a better code.

@nmengin nmengin force-pushed the hotifx/avoid-panic-during-stop branch from 96ac270 to 458d760 Compare September 17, 2018 13:22
Copy link
Member

@juliens juliens 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
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit f3aefe2 into traefik:v1.7 Sep 17, 2018
@nmengin nmengin deleted the hotifx/avoid-panic-during-stop branch September 17, 2018 16:32
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