Don't stop reading too early.
commit8a3f48341248b919b5c4816bf4f7079eb35d6882
authorMatthew Draper <matthew@trebex.net>
Tue, 28 Feb 2012 13:09:09 +0000 (28 23:39 +1030)
committerEric Wong <normalperson@yhbt.net>
Tue, 28 Feb 2012 20:37:23 +0000 (28 20:37 +0000)
tree057b62e8a24fef38a4961648955c82f57f777ce8
parent55365e01dc0b2b5db01441004f4c6921d1fd04d6
Don't stop reading too early.

Leave size unchanged, so it's available for easy comparison with
buf.bytesize.

[ew: added test case]
Acked-by: Eric Wong <normalperson@yhbt.net>
lib/mogilefs/socket_common.rb
test/socket_test.rb