Permalink
Browse files

body_length includes entire body

  • Loading branch information...
1 parent f84f71b commit 540a92cd54dae522bca2ae363be25644d64524fa @tmm1 tmm1 committed Nov 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dalli/client.rb
View
@@ -131,7 +131,7 @@ def get_multi(*keys)
servers_in_use.delete(server)
break
- elsif buf.bytesize >= (24 + 4 + body_length)
+ elsif buf.bytesize >= (24 + body_length)
buf.slice!(0, 24)
flags = buf.slice!(0, 4).unpack('N')[0]
key = buf.slice!(0, key_length)

0 comments on commit 540a92c

Please sign in to comment.