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

Fix recover from panic handler #4031

Merged
merged 1 commit into from
Oct 12, 2018

Conversation

mmatur
Copy link
Member

@mmatur mmatur commented Oct 12, 2018

What does this PR do?

Since go 1.11, http/reverseproxy.go can generate some panic

https://github.com/golang/go/blob/c33153f7b416c03983324b3e8f869ce1116d84bc/src/net/http/httputil/reverseproxy.go#L274-L285

Its can be justify by his piece of code:

https://github.com/golang/go/blob/a0d6420d8be2ae7164797051ec74fa2a2df466a1/src/net/http/server.go#L1761-L1775

Motivation

Avoid to have this error message

Recovered from panic in http handler: net/http: abort Handler

@ldez ldez force-pushed the fix/recover-from-panic-handler branch from febd689 to a86ef70 Compare October 12, 2018 10:42
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

@nmengin nmengin 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

@jbdoumenjou jbdoumenjou 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 2c7b7cd into traefik:v1.7 Oct 12, 2018
@mmatur mmatur deleted the fix/recover-from-panic-handler branch October 16, 2018 08:28
@yxwu

This comment has been minimized.

@ldez

This comment has been minimized.

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.

None yet

6 participants