Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bae30479
Commit
bae30479
authored
May 14, 2014
by
antirez
Browse files
redis.tcl: return I/O error message when peer closes connection.
parent
832a2980
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/support/redis.tcl
View file @
bae30479
...
@@ -170,7 +170,10 @@ proc ::redis::redis_read_reply fd {
...
@@ -170,7 +170,10 @@ proc ::redis::redis_read_reply fd {
-
{
return -code error
[
redis_read_line $fd
]}
-
{
return -code error
[
redis_read_line $fd
]}
$
{
redis_bulk_read $fd
}
$
{
redis_bulk_read $fd
}
*
{
redis_multi_bulk_read $fd
}
*
{
redis_multi_bulk_read $fd
}
default
{
return -code error
"Bad protocol, '
$type
' as reply type byte"
}
default
{
if
{
$type
eq
{}}
{
return -code error
"I/O error reading reply"
}
return -code error
"Bad protocol, '
$type
' as reply type byte"
}
}
}
}
}
...
...
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