Commit bae30479 authored by antirez's avatar antirez
Browse files

redis.tcl: return I/O error message when peer closes connection.

parent 832a2980
...@@ -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"
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment