storj/pkg
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
..
cache pkg/cache: fix expiration test 2020-01-19 19:31:31 +02:00
listenmux pkg/listenmux: resolve deadlock in test 2019-09-20 21:16:59 +00:00
quic pkg/server,pkg/quic: accept an existing conn to create quic listener and 2021-02-03 12:04:29 -05:00
revocation pkg/revocation: pass ctx into opening the database 2020-10-29 07:15:36 +00:00
server pkg/server,pkg/quic: accept an existing conn to create quic listener and 2021-02-03 12:04:29 -05:00