HewlettPackard / netperf

Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency.
MIT License
859 stars 187 forks source link

netserver exits early when netperf -s option use a too large delay seconds (>4s) #77

Open fhvkqtdh opened 12 months ago

fhvkqtdh commented 12 months ago

netperf -s 15 -t TCP_STREAM -l 20

output:

MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to localhost () port 0 AF_INET : histogram : interval : dirty data : demo send_data: data send error: Connection reset by peer (errno 104) netperf: send_omni: send_data failed: Connection reset by peer

fhvkqtdh commented 12 months ago

src/nettest_bsd.c:5287

start_timer(tcp_stream_request->test_length + PAD_TIME);

The timer of test is (test_length+PAD_TIME) seconds, PAD_TIME = 4. Can we add the delay seconds of netperf -s option to this timer?