Skip to content

Commit

Permalink
*: cockroachdb/cmux -> soheilhy/cmux
Browse files Browse the repository at this point in the history
Has fixes not in fork. Includes SetReadTimeout.
  • Loading branch information
Anthony Romano committed Aug 22, 2017
1 parent 6e02779 commit 35c5dce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions embed/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion etcdmain/grpc_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"testing"
"time"

"github.com/cockroachdb/cmux"
"github.com/soheilhy/cmux"
"golang.org/x/net/context"
"google.golang.org/grpc"

Expand Down

0 comments on commit 35c5dce

Please sign in to comment.