new HTTPReader implementation replaces the http_read_sock method
commit8fefb8c07fdb69eb80c5aefbb0cdd74388cf908f
authorEric Wong <normalperson@yhbt.net>
Fri, 4 Nov 2011 23:50:17 +0000 (4 23:50 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 4 Nov 2011 23:50:17 +0000 (4 23:50 +0000)
tree6ce410e52871a03750a3c1e1d68182dee9fb3a27
parentafe10667b8deeb60e3f70d2ddc7a20ae7e0bc072
new HTTPReader implementation replaces the http_read_sock method

This is cleaner and replaces redundant code where we would retry
paths.  MogileFS::MogileFS#size now raises on error instead of
returning nil.
lib/mogilefs/bigfile.rb
lib/mogilefs/http_reader.rb [new file with mode: 0644]
lib/mogilefs/mogilefs.rb
lib/mogilefs/socket_common.rb
test/test_mogilefs.rb