perf(client) use different UDP sockets for individual UDP connections

for better load sharing between threads

This removes the bottleneck with a single listening UDP socket.
This commit is contained in:
Datong Sun
2021-09-18 11:58:45 -07:00
parent ae52531288
commit 86c6a3f801
3 changed files with 60 additions and 30 deletions

View File

@@ -13,3 +13,4 @@ rand = { version = "0.8.4", features = ["small_rng"] }
clap = "2.33.3"
log = "0.4"
pretty_env_logger = "0.4.0"
socket2 = { version = "0.4.2", features = ["all"] }