* Return null when a watched key aborts a Relay EXEC
When a watched key aborts EXEC, Redis replies with a null array but
Relay throws "Transaction failed", and RelayConnection returns that as
an error response. The strategy mapped it to null in a catch for a
ServerException, which RelayConnection never throws, so a transaction
aborted by WATCH failed with a ServerException instead of
AbortedMultiExecException and the retry option was ignored.
RelayConnection now returns null for that failure of EXEC, as the
stream connection does for the null array, so every strategy handles it
the same way. The dead catch in NonClusterConnectionStrategy is removed,
and so is the exclusion that kept a Relay connection open when EXEC
fails with an error other than EXECABORT, since a WATCH abort no longer
reaches it. A Relay connection whose EXEC was rejected while MULTI
stays open is now closed like any other.
Client::exec() on a Relay connection returns null after a WATCH abort,
as it does on other connections.
* Add the Relay WATCH abort fix to the changelog
Relay::select() throws a TypeError for anything but an integer, where
other connections get an error response from the server. Wrap the call
and return the same error response, so the existing test runs against
Relay and no longer needs a Relay-only counterpart.
Relay warns before sending SELECT for out-of-range databases, so that
test keeps its Relay-specific counterpart.
Disconnect interrupted pipeline connections before they can be reused,
discard remaining commands, and reset running state after PHP errors.
Preserve the original failure when connection cleanup also fails.
Clear the cached connection resource when Relay is closed so the next
command reconnects and replays connection initialization. This fixes
client reuse after an interrupted pipeline disconnects the connection.