storj/storagenode/preflight
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
..
common.go all: fix dots 2020-07-16 14:58:28 +00:00
db_test.go storagenode/piecestore: switch usedserials db for in-memory usedserials store 2020-05-28 12:52:52 -04:00
localtime_test.go pkg/server,pkg/quic: accept an existing conn to create quic listener and 2021-02-03 12:04:29 -05:00
localtime.go all: fix dots 2020-07-16 14:58:28 +00:00