backend: require CRLF on every line we parse
commitf057a82730d252c509f8c590430dbf4507d17601
authorEric Wong <normalperson@yhbt.net>
Sat, 5 Nov 2011 02:11:03 +0000 (5 02:11 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 5 Nov 2011 02:11:03 +0000 (5 02:11 +0000)
tree35c5bf005dc3b7c0d52a580ee7e94cd223090357
parent972bad366ae58ec726329a45cbf908e16e1889df
backend: require CRLF on every line we parse

Otherwise IO#gets and MogileFS::Socket#timed_gets could
return a truncated response before EOF and we would never
know the response was truncated.
lib/mogilefs/backend.rb
test/test_backend.rb