Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a739e6fc
Commit
a739e6fc
authored
Dec 11, 2014
by
pyurin
Committed by
Carsten Brandt
Dec 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed redis connection to deal with large data
fixes #6547 close #6482
parent
3250586c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CHANGELOG.md
extensions/redis/CHANGELOG.md
+1
-1
Connection.php
extensions/redis/Connection.php
+1
-1
No files found.
extensions/redis/CHANGELOG.md
View file @
a739e6fc
...
@@ -4,7 +4,7 @@ Yii Framework 2 redis extension Change Log
...
@@ -4,7 +4,7 @@ Yii Framework 2 redis extension Change Log
2.
0.2 under development
2.
0.2 under development
-----------------------
-----------------------
-
no changes in this release.
-
Bug #6547: Fixed redis connection to deal with large data in combination with
`mget()`
(pyurin)
2.0.1 December 07, 2014
2.0.1 December 07, 2014
...
...
extensions/redis/Connection.php
View file @
a739e6fc
...
@@ -406,7 +406,7 @@ class Connection extends Component
...
@@ -406,7 +406,7 @@ class Connection extends Component
$length
=
$line
+
2
;
$length
=
$line
+
2
;
$data
=
''
;
$data
=
''
;
while
(
$length
>
0
)
{
while
(
$length
>
0
)
{
if
((
$block
=
fread
(
$this
->
_socket
,
$l
ine
+
2
))
===
false
)
{
if
((
$block
=
fread
(
$this
->
_socket
,
$l
ength
))
===
false
)
{
throw
new
Exception
(
"Failed to read from socket.
\n
Redis command was: "
.
$command
);
throw
new
Exception
(
"Failed to read from socket.
\n
Redis command was: "
.
$command
);
}
}
$data
.=
$block
;
$data
.=
$block
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment