Skip to content

Conversation

@digital2real
Copy link
Contributor

This changes are trying to complete the retry logic in order to increase the tolerance to a temporary unavailability of a redis cluster.

nrk and others added 30 commits September 11, 2020 21:10
Authentication for sentinels was implemented in v1.1.5 (commit 2e76410)
but ended up being bugged (see ISSUE predis#658). This is now postponed as it
requires a more thorough investigation.
Removed is_resource() check as socket_create() now returns an object.
When using the phpiredis-based connection backends, failed pipelines led
to spurious responses returned after reconnecting to Redis because the
underlying reader was not properly reset by discarding buffered replies
after disconnecting.

Fixes a couple of issues reported in predis#363.
The patches to get PHPUnit working are causing problems for other projects that use both `cweagans/composer-patch-installers` and `predis/predis` along with PHPUnit.

This change moves the patch application to a simple PHP script run on the `post-update-cmd` composer event and removes the dependency on the patch installers package.
$this->retryWait is in milliseconds. It's setter misleadingly document it as seconds.
Fixing by renaming the argument variable name without altering the functionality.
Fix misleading argument name in SentinelReplication
For some reason Xdebug causes a seg fault under PHP 8 on Travis CI.
* Add PHP 8.1 support

* Update AbortedMultiExecException.php

* Update CommunicationException.php

* Update ServerSentinel.php

* Update CursorBasedIterator.php

* Update ReplicationStrategy.php

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
seemingly no docs on this...
tests pass locally PHP 8.1.0RC4-dev
* Fix PHP 8.1 strlen breakage

This adds a fallback to an empty string if the argument is `null` for some reason.

* Update StreamConnection.php

* use `strval()`

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
@mfn
Copy link

mfn commented Dec 29, 2021

Something if off with the PR, like merging the wrong version into the branch. Yours is the last commit only, but it seems 30 other commits joined yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.