@@ -824,6 +824,7 @@ impl TestResults for TcpTestResults {
824824 let mut duration_receive: f64 = 0.0 ;
825825 let mut bytes_received: u64 = 0 ;
826826
827+ let mut sends_blocked = false ;
827828
828829 for ( stream_idx, stream) in self . stream_results . values ( ) . enumerate ( ) {
829830 for ( i, sr) in stream. send_results . iter ( ) . enumerate ( ) {
@@ -835,6 +836,8 @@ impl TestResults for TcpTestResults {
835836 stream_send_durations[ stream_idx] += sr. duration as f64 ;
836837
837838 bytes_sent += sr. bytes_sent ;
839+
840+ sends_blocked |= sr. sends_blocked > 0 ;
838841 }
839842
840843 for ( i, rr) in stream. receive_results . iter ( ) . enumerate ( ) {
@@ -899,6 +902,9 @@ impl TestResults for TcpTestResults {
899902 receive_bytes_per_second, receive_throughput,
900903 bytes_received, receive_bytes_per_second * stream_count as f64 , total_receive_throughput,
901904 ) ;
905+ if sends_blocked {
906+ output. push_str ( & format ! ( "\n throughput throttled by buffer limitations" ) ) ;
907+ }
902908 if !self . is_success ( ) {
903909 output. push_str ( & format ! ( "\n TESTING DID NOT COMPLETE SUCCESSFULLY" ) ) ;
904910 }
@@ -1097,6 +1103,7 @@ impl TestResults for UdpTestResults {
10971103 let mut unbroken_sequence_count: u64 = 0 ;
10981104 let mut jitter_weight: f64 = 0.0 ;
10991105
1106+ let mut sends_blocked = false ;
11001107
11011108 for ( stream_idx, stream) in self . stream_results . values ( ) . enumerate ( ) {
11021109 for ( i, sr) in stream. send_results . iter ( ) . enumerate ( ) {
@@ -1109,6 +1116,8 @@ impl TestResults for UdpTestResults {
11091116
11101117 bytes_sent += sr. bytes_sent ;
11111118 packets_sent += sr. packets_sent ;
1119+
1120+ sends_blocked |= sr. sends_blocked > 0 ;
11121121 }
11131122
11141123 for ( i, rr) in stream. receive_results . iter ( ) . enumerate ( ) {
@@ -1197,6 +1206,9 @@ impl TestResults for UdpTestResults {
11971206 if jitter_calculated {
11981207 output. push_str ( & format ! ( "\n jitter: {:.6}s over {} consecutive packets" , jitter_weight / ( unbroken_sequence_count as f64 ) , unbroken_sequence_count) ) ;
11991208 }
1209+ if sends_blocked {
1210+ output. push_str ( & format ! ( "\n throughput throttled by buffer limitations" ) ) ;
1211+ }
12001212 if !self . is_success ( ) {
12011213 output. push_str ( & format ! ( "\n TESTING DID NOT COMPLETE SUCCESSFULLY" ) ) ;
12021214 }
0 commit comments