diff options
author | antirez <antirez@gmail.com> | 2014-05-14 00:14:35 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-05-20 17:45:49 +0200 |
commit | d9227938c815ddc19b2d0f021da90814bffb7bcf (patch) | |
tree | 7ecd600ba88125ae91f44b6bc43e26c813302d40 | |
parent | e10ee0728a79e674ecc6b28f0e609c5f5064ff86 (diff) | |
download | redis-d9227938c815ddc19b2d0f021da90814bffb7bcf.tar.gz |
redis.tcl: return I/O error message when peer closes connection.
-rw-r--r-- | tests/support/redis.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/support/redis.tcl b/tests/support/redis.tcl index 256fbc899..a30d1fd68 100644 --- a/tests/support/redis.tcl +++ b/tests/support/redis.tcl @@ -170,7 +170,10 @@ proc ::redis::redis_read_reply fd { - {return -code error [redis_read_line $fd]} $ {redis_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" + } } } |