storj/pkg/quic
Yingrong Zhao 7e80badaf9 pkg/server,pkg/quic: accept an existing conn to create quic listener and
allow disabling tcp/quic

In order to have more control of a server so that we can
simulate connection failures in `testplanet`, this PR changes
quic.Listener to accept an existing UDPConn instead of relying on the
quic-go library to create the UDPConn.
This PR also adds two flags on the `server.Config` struct to allow
enabling/disabling tcp/tls listener and quic listener. By default, they
are both set to true.
    - `DisableTCPTLS`: internal flag, disables tcp/tls listener.
    - `DisableQUIC`: hidden flag, disables quic listener
By making the `DisableQUIC` a hidden flag, it allows storagenode operators to
have the ability to disable quic traffic in case their set up can't work
with udp traffic.

Change-Id: I853b12435d988b9c41ad9b873fd57480d792e378
2021-02-03 12:04:29 -05:00
..
qtls go.mod: bump quic to master, such it compiles with Go 1.16 2021-01-28 11:13:02 +02:00
common.go pkg/quic: add quic implementation 2021-01-21 21:28:30 +00:00
conn.go pkg/quic: add backward compatibility for qtls 2021-01-27 15:24:50 -05:00
connector.go pkg/server,private/testplanet: start to listen on quic 2021-01-27 11:03:42 -05:00
listener.go pkg/server,pkg/quic: accept an existing conn to create quic listener and 2021-02-03 12:04:29 -05:00