The setup
The job was to measure the limits a message relay enforces: how many connections it admits, and what it does to a client that stops reading. The relay's official client enforces its own limit at a quarter of the server's, so it could not have measured the server's limit. So a small probe was written from scratch.
Three wrong numbers
A connection cap that was a race. The probe opened connections until one was refused and reported the count. It never finished signing any of them in, and the relay reclaims a connection that has not signed in after five seconds. So the count was the balance between how fast the probe opened connections and how fast the relay closed them. It came out the same on every run, which is what made it convincing.
A stall that was not a stall. To fill the relay's send buffer, the probe needed a client that stops reading. Pausing an encrypted socket in Node did not stop the encryption layer underneath from reading, and it buffered without limit. When the paused client resumed, it was handed all 30 events, 7,875,060 bytes. Every conclusion from that run was about Node's buffering, not the relay.
Events too small to fill anything. On a plain socket that genuinely stopped reading, 30 events of about 200 bytes each still measured nothing. The relay's queue only starts to fill once its writer blocks, and the writer does not block until the operating system's socket buffer is full, which events that small never achieve.
The rule
Before measuring a remote limit, run a control that would fail if the instrument were broken. Choose it so that it separates the competing explanations, not merely so that it shows something worked.
The control that closed the last open question was one event, delivered to a subscriber while it was still reading, before stalling it. "The relay never disconnects a stalled client" and "this kind of event is never delivered at all" produce identical output, and only the control tells them apart. It failed straight away, and the failure showed that the probe's own setup connection had been cut off. That was the disconnect, working.
The probe was also changed to report what the client actually received when it resumed. One line, 8,099 messages and 5,990,650 bytes with zero dropped, showed that the relay had never been under backpressure in that run. Whether it would disconnect a slow client had not been tested by that run at all.
What was rejected
Trusting a number because it reproduced. All three wrong numbers reproduced exactly, including across a restart of the relay. Reproducing tells a measurement from noise. It says nothing about whether you measured the right thing.
Raising the volume until something happened. That would have worked in the end, at the cost of megabytes of permanent junk in a live channel and no understanding of why. One run at the most extreme settings the relay allows answered whether the limit could fire at all.
The thing that answered was not the thing you meant to ask. A control that would fail if the instrument were broken is how you find out before you believe the number.