* test(connection): add reproduction for FIN_WAIT_2 leak with BLPOP
Closing a client socket while the connection's reader fiber is parked on
a blocking command (BLPOP) does not always wake the fiber to observe EOF.
Under sustained concurrent open+close churn, a fraction of FDs linger on
the server in CLOSE_WAIT (client in FIN_WAIT_2) until the command times
out or the client is CLIENT KILL'd, matching the reaper-driven leak
reported in production. valkey closes its half immediately
on FIN even mid-BLPOP.
The bug is fixed in helio by https://github.com/romange/helio/pull/580
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
* chore: small fixes
---------
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Roman Gershman <roman@dragonflydb.io>