Use TCPSocket instead of Net::HTTP for HEAD requests
commitffe803c5fe97890c0b44d78ffb5251e842d2cc13
authorEric Wong <normalperson@yhbt.net>
Tue, 7 Oct 2008 20:01:02 +0000 (7 13:01 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 7 Oct 2008 20:50:34 +0000 (7 13:50 -0700)
tree7cbde478a7c01c3ead78dcbd26dda87f928048be
parent971b5ccb0708a4cc06772c5e7c2be379b3ff4d3d
Use TCPSocket instead of Net::HTTP for HEAD requests

Net::HTTP doesn't save us any lines of code here and it uses up
unnecessary memory and allocations, slightly increasing latency.

Also, while we're at it, more gracefully handle size() failures
if nodes are down.
lib/mogilefs/mogilefs.rb
test/test_mogilefs.rb