http_file: timeout scaling for "write" method
commit6a1164a0ededd7f80ac3b493c78c0fa1b9b8b91b
authorEric Wong <normalperson@yhbt.net>
Mon, 21 Nov 2011 20:39:59 +0000 (21 20:39 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 21 Nov 2011 20:39:59 +0000 (21 20:39 +0000)
treef21e4ebdbc6c1304c5d6ba069d1804dbef4efb09
parent64b3335c8b41ca77395f7eb7bbd7d9b0a62bc8c7
http_file: timeout scaling for "write" method

Increase write timeouts as we become more vested in uploading to
a socket.  The remote server may take longer and longer to
respond due to accumulated I/O delays if it is writing out
to disk.

We also don't need/want a "write" method in MogileFS::Socket,
it's only for use with IO.copy_stream in HTTPFile.
lib/mogilefs/http_file.rb
lib/mogilefs/socket/kgio.rb
lib/mogilefs/socket/pure_ruby.rb