try cmux.HTTP1Fast()

This commit is contained in:
Maxim Merzhanov authored and Maxim committed 2019-11-18 19:08:29 +03:00
1 parent cc3aab1e7b
commit 00c1936683
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -139,6 +139,7 @@ func TestClusterElection(t *testing.T) {
testClusterReady(a, -1)
var ready bool
for i := 0; i < configsNumber; i++ {
fmt.Println()
log.Printf("stopping %d container\n", i)
@@ -147,7 +148,7 @@ func TestClusterElection(t *testing.T) {
time.Sleep(9 * time.Second)
fmt.Println()
log.Printf("checking cluster except %d\n", i)
ready := testClusterReady(a, i)
ready = testClusterReady(a, i)
if !ready {
return
}
+1 -1
View File
@@ -100,7 +100,7 @@ func initMultiplexer(addressConfiguration structure.AddressConfiguration) (net.L
}
m := cmux.New(tcpListener)
httpListener := m.Match(cmux.HTTP1())
httpListener := m.Match(cmux.HTTP1Fast())
raftListener := m.Match(cmux.Any())
go func() {