Skip to content

Commit

Permalink
Explicitly use HTTP2 transport in communication between
Browse files Browse the repository at this point in the history
orchestrator and transcoder.
Mitigates issue in the golang's implementation of HTTP2
golang/go#32441
  • Loading branch information
darkdarkdragon committed Feb 12, 2020
1 parent 70691f5 commit a44af71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/ot_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/cenkalti/backoff"
"github.com/golang/glog"
"github.com/livepeer/lpms/ffmpeg"
"golang.org/x/net/http2"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
Expand Down Expand Up @@ -112,7 +113,7 @@ func runTranscoder(n *core.LivepeerNode, orchAddr string, capacity int) error {
}
}()

httpc := &http.Client{Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}}
httpc := &http.Client{Transport: &http2.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}}
var wg sync.WaitGroup
for {
notify, err := r.Recv()
Expand Down

0 comments on commit a44af71

Please sign in to comment.