Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-10-07 21:27:23 +0300
committerMichael Grunder <michael.grunder@gmail.com>2022-10-07 21:42:38 +0300
commitab4ce4ab6f6eadbae8245fef5486674eff0d1661 (patch)
tree50d6f5f280600baa4071757d06141b4b413ef406 /cluster_library.c
parentb9950727f5c2fe25262e9e899bc31980d7e77f5c (diff)
Allow negative timeout/read_timeout and fix doc
Co-authored-by: twosee <twose@qq.com>
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 6e69c518..c76c3269 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -2873,12 +2873,12 @@ cluster_validate_args(double timeout, double read_timeout, HashTable *seeds,
{
zend_string **retval;
- if (timeout < 0L || timeout > INT_MAX) {
+ if (timeout > INT_MAX) {
if (errstr) *errstr = "Invalid timeout";
return NULL;
}
- if (read_timeout < 0L || read_timeout > INT_MAX) {
+ if (read_timeout > INT_MAX) {
if (errstr) *errstr = "Invalid read timeout";
return NULL;
}