Add keepalive support for clients in quic.Config

Fixes #525.
This commit is contained in:
krish7919 (Krish)
2017-05-05 15:39:20 +02:00
committed by Lucas Clemente
parent 649933d17b
commit 755dedf1ff
6 changed files with 44 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ func newClient(tlsConfig *tls.Config, hostname string, opts *roundTripperOpts) *
tlsConf: tlsConfig,
config: &quic.Config{
RequestConnectionIDTruncation: true,
KeepAlive: true,
},
opts: opts,
headerErrored: make(chan struct{}),