m-lab / ndt

Network Diagnostic Tool
Other
11 stars 7 forks source link

Extend c2s server read loop by 1 second. #37

Closed stephen-soltesz closed 8 years ago

stephen-soltesz commented 8 years ago

This change addresses a regression observed for web100clt during the c2s test. In particular, before this change, web100clt can block while writing after the c2s server stopped reading. This causes the rest of the test to fail.

The server implementation in NDT 3.7.0 attempted to read longer than the client wrote. The change in NDT 4.0.0 made the c2s read loop strictly conditional on testDuration. This resulted in a race condition with the client.

stephen-soltesz commented 8 years ago

Added rationale for posterity.

pboothe commented 8 years ago

LGTM with a small sadface emoji for one more second.

LBTM for mysleep() usage.

stephen-soltesz commented 8 years ago

PTAL?

pboothe commented 8 years ago

LGTM.