mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Fixing bug in Redisent causing Resque to ignore queue items larger than 1Kb.
This commit is contained in:
parent
5fb34c3a90
commit
5fcd195db1
@ -83,15 +83,15 @@ class Redisent {
|
|||||||
break;
|
break;
|
||||||
/* Bulk reply */
|
/* Bulk reply */
|
||||||
case '$':
|
case '$':
|
||||||
if ($reply == '$-1') {
|
|
||||||
$response = null;
|
$response = null;
|
||||||
|
if ($reply == '$-1') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$read = 0;
|
$read = 0;
|
||||||
$size = substr($reply, 1);
|
$size = substr($reply, 1);
|
||||||
do {
|
do {
|
||||||
$block_size = ($size - $read) > 1024 ? 1024 : ($size - $read);
|
$block_size = ($size - $read) > 1024 ? 1024 : ($size - $read);
|
||||||
$response = fread($this->__sock, $block_size);
|
$response .= fread($this->__sock, $block_size);
|
||||||
$read += $block_size;
|
$read += $block_size;
|
||||||
} while ($read < $size);
|
} while ($read < $size);
|
||||||
fread($this->__sock, 2); /* discard crlf */
|
fread($this->__sock, 2); /* discard crlf */
|
||||||
|
Loading…
Reference in New Issue
Block a user