diff --git a/neqo-bin/src/lib.rs b/neqo-bin/src/lib.rs index 8a7ff69b69..b7bc158245 100644 --- a/neqo-bin/src/lib.rs +++ b/neqo-bin/src/lib.rs @@ -89,9 +89,9 @@ pub struct QuicParameters { /// The congestion controller to use. pub congestion_control: CongestionControlAlgorithm, - #[arg(long = "pacing")] - /// Whether pacing is enabled. - pub pacing: bool, + #[arg(long = "no-pacing")] + /// Whether to disable pacing. + pub no_pacing: bool, #[arg(name = "preferred-address-v4", long)] /// An IPv4 address for the server preferred address. @@ -162,7 +162,7 @@ impl QuicParameters { .max_streams(StreamType::UniDi, self.max_streams_uni) .idle_timeout(Duration::from_secs(self.idle_timeout)) .cc_algorithm(self.congestion_control) - .pacing(self.pacing); + .pacing(!self.no_pacing); if let Some(&first) = self.quic_version.first() { let all = if self.quic_version[1..].contains(&first) { diff --git a/test/upload_test.sh b/test/upload_test.sh index 40c3aaaeb9..685a6a926c 100755 --- a/test/upload_test.sh +++ b/test/upload_test.sh @@ -9,9 +9,10 @@ cc=cubic client="cargo run --release --bin neqo-client -- http://$server_address:$server_port/ --test upload --upload-size $upload_size --cc $cc" server="cargo run --release --bin neqo-server -- --db ../test-fixture/db $server_address:$server_port" server_pid=0 -pacing=true -if [ "$pacing" = true ]; then - client="$client --pacing" +no_pacing=false +if [ "$no_pacing" = true ]; then + client="$client --no-pacing" + server="$server --no-pacing" fi # Define two indexed arrays to store network conditions