http_reader: improve robustness of header reading
authorEric Wong <normalperson@yhbt.net>
Tue, 30 Oct 2012 21:41:01 +0000 (21:41 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 30 Oct 2012 21:56:18 +0000 (21:56 +0000)
commit42abd93b948881afe5c3e9d04ceb5f40fda4472c
tree23553d13c75759fd1d66544a10e784c905558fdd
parentfe0d54c5be260fd1ff5e175869001052a3d379fa
http_reader: improve robustness of header reading

It's possible for networks and servers to break up
even small HTTP headers.  We also better enforce the
timeout if we too too long to write the request.
lib/mogilefs/http_reader.rb