Skip to content

Commit

Permalink
Optimize QUIC paramaters
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir committed Mar 2, 2019
1 parent 88990cd commit 9a158d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 3 additions & 4 deletions proxy/quic/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ type client struct {
func NewClient() *client {
return &client{
conf: &quic.Config{
HandshakeTimeout: 5 * time.Second,
MaxIncomingStreams: 1024,
KeepAlive: true,
IdleTimeout: 5 * time.Minute,
HandshakeTimeout: time.Second,
KeepAlive: true,
IdleTimeout: time.Minute,
},
}
}
Expand Down
4 changes: 0 additions & 4 deletions proxy/quic/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package quic

import (
"net"
"time"

"github.com/golang/glog"
quic "github.com/lucas-clemente/quic-go"
Expand All @@ -16,10 +15,7 @@ type server struct {
func NewServer() *server {
return &server{
conf: &quic.Config{
HandshakeTimeout: 5 * time.Second,
MaxIncomingStreams: 1024,
KeepAlive: true,
IdleTimeout: 5 * time.Minute,
},
}
}
Expand Down

0 comments on commit 9a158d4

Please sign in to comment.