storj/private/testplanet
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
..
dir.go private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
log.go private/testplanet: add STORJ_TESTPLANET_ABSTIME 2020-11-03 15:44:18 +02:00
planet_test.go all: fix defers in loop 2020-11-02 15:06:38 +02:00
planet.go all: add pprof labels for debugger 2020-10-29 15:10:07 +00:00
reconfigure.go satellite/metainfo: Update metainfo RS config to more easily support multiple RS schemes. 2020-11-09 22:16:13 +00:00
referralmanager.go pkg/server,pkg/quic: accept an existing conn to create quic listener and 2021-02-03 12:04:29 -05:00
rpc_test.go pkg/server,private/testplanet: start to listen on quic 2021-01-27 11:03:42 -05:00
run_test.go common: separate repository 2019-12-27 14:11:15 +02:00
run.go private/testplanet: use relative time logging 2020-11-02 17:53:18 +00:00
satellite_test.go satellite/metainfo: use user PartnerID for bucket attribution 2020-08-06 13:14:07 +00:00
satellite.go satellite/orders: Delete unused methods & DB tables 2021-02-01 18:01:29 +00:00
storagenode-wait.go storagenode/pieces: Deleter can handle multiple tests 2020-04-29 11:26:56 -06:00
storagenode.go {cmd,private,storagenode}: create storage dir verification during setup 2020-11-11 11:01:36 -05:00
tlsopts_test.go all: use DialNodeURL throughout the codebase 2020-05-20 10:36:30 +00:00
uplink_test.go pkg/server,pkg/quic: accept an existing conn to create quic listener and 2021-02-03 12:04:29 -05:00
uplink.go satellite/console/wasm: add more unit tests 2021-01-08 18:50:29 +00:00
versioning.go storagenode/version: notification flow now based on cursor, chore_test added, versioncontrol added to reconfigure. 2020-07-23 14:13:24 +00:00