TUN-4153: Revert best-effort HTTP2 usage when talking to origins

This commit reverts part of 1cf6ae37eb.
This commit is contained in:
Nuno Diegues 2021-03-31 08:20:03 +01:00
parent 5afa3251dd
commit 36787d9cf7
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,12 @@
**Experimental**: This is a new format for release notes. The format and availability is subject to change. **Experimental**: This is a new format for release notes. The format and availability is subject to change.
## 2021.3.6
### Bug Fixes
- Reverted 2021.3.5 improvement to use HTTP/2 in a best-effort manner between cloudflared and origin services because
it was found to break in some cases.
## 2021.3.5 ## 2021.3.5
### Improvements ### Improvements

View File

@ -15,8 +15,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"golang.org/x/net/http2"
"github.com/cloudflare/cloudflared/hello" "github.com/cloudflare/cloudflared/hello"
"github.com/cloudflare/cloudflared/ipaccess" "github.com/cloudflare/cloudflared/ipaccess"
"github.com/cloudflare/cloudflared/socks" "github.com/cloudflare/cloudflared/socks"
@ -289,7 +287,6 @@ func newHTTPTransport(service originService, cfg OriginRequestConfig, log *zerol
httpTransport.DialContext = dialContext httpTransport.DialContext = dialContext
} }
http2.ConfigureTransport(&httpTransport)
return &httpTransport, nil return &httpTransport, nil
} }