*: cockroachdb/cmux -> soheilhy/cmux

Has fixes not in fork. Includes SetReadTimeout.
This commit is contained in:
Anthony Romano 2017-08-19 18:22:58 -07:00
parent 6e02779c4f
commit 35c5dcefc2
4 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ import (
"github.com/coreos/etcd/rafthttp"
"github.com/coreos/pkg/capnslog"
"github.com/cockroachdb/cmux"
"github.com/soheilhy/cmux"
"google.golang.org/grpc"
)

View File

@ -34,8 +34,8 @@ import (
"github.com/coreos/etcd/pkg/debugutil"
"github.com/coreos/etcd/pkg/transport"
"github.com/cockroachdb/cmux"
gw "github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/soheilhy/cmux"
"golang.org/x/net/context"
"golang.org/x/net/trace"
"google.golang.org/grpc"
@ -152,7 +152,7 @@ func (sctx *serveCtx) serve(s *etcdserver.EtcdServer, tlsinfo *transport.TLSInfo
}
// grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC
// connections or otherHandler otherwise. Copied from cockroachdb.
// connections or otherHandler otherwise. Given in gRPC docs.
func grpcHandlerFunc(grpcServer *grpc.Server, otherHandler http.Handler) http.Handler {
if otherHandler == nil {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

View File

@ -37,8 +37,8 @@ import (
"github.com/coreos/etcd/pkg/transport"
"github.com/coreos/etcd/proxy/grpcproxy"
"github.com/cockroachdb/cmux"
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
"github.com/soheilhy/cmux"
"github.com/spf13/cobra"
"google.golang.org/grpc"
)

View File

@ -31,7 +31,7 @@ import (
"testing"
"time"
"github.com/cockroachdb/cmux"
"github.com/soheilhy/cmux"
"golang.org/x/net/context"
"google.golang.org/grpc"