8000 reverseproxy: fix random hangs on http/2-requests with Server Pushes by dtelyukh · Pull Request #3910 · caddyserver/caddy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

reverseproxy: fix random hangs on http/2-requests with Server Pushes #3910

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

Closed
wants to merge 2 commits into from
Closed

Conversation

dtelyukh
Copy link
Contributor
@dtelyukh dtelyukh commented Dec 9, 2020

The solution is to use explicitly recent x/net/http2 instead of bundled version, which updates only with releases of Go language.
Fix: #3896
Details: golang/go#42534

@francislavoie francislavoie added the bug 🐞 Something isn't working label Dec 9, 2020
@francislavoie francislavoie added this to the v2.3.0 milestone Dec 9, 2020
Copy link
Member
@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks for the PR; I'm fine with updating the net dependency but I don't think we can accept the http2.ConfigureServer() call for this.

Go tags releases fairly often -- about once per month -- so the upstream fix should be landing soon enough. I think that will be better for the stability of the project than using HEAD.

@@ -306,6 +306,10 @@ func (app *App) Start() error {
Handler: srv,
ErrorLog: serverLogger,
}
err = http2.ConfigureServer(s, nil)
Copy link
Member

Choose a reason for hiding this comment

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

This PR is doing more than just updating the x/net module; I'm concerned that this could cause problems as it takes the stability out of our HTTP/2 stack by using the bleeding edge instead of tagged releases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mholt, what about conditional usage? It could be something like that

if srv.AllowH2ExternalVersion {
    ...
}

Copy link
Member

Choose a reason for hiding this comment

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

I definitely don't want to expose such an internal implementation detail to the end user to configure. This is something that really should be decided at compile-time. Our project should compile for stability, and if a user wants bleeding edge, they can compile it that way.

This is a permanent complication for a temporary problem...

I think we just need to wait until Go does a new release (just like with every other upstream Go issue), which will probably be soon. (The whole h2 vendoring thing is a weird decision anyway. Either HTTP/2 should have been in the std lib or it should stay outside, not... both... IMO.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I agree with you.

8000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frequent hangs when using http/2 push
3 participants
0