device: reuse HTTP connections for MKCOL
commitbdeaaf9d5aa35ed3c41ab1d3c402282d9cec6a5c
authorEric Wong <normalperson@yhbt.net>
Thu, 20 Sep 2012 00:25:10 +0000 (19 17:25 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 10 Aug 2013 07:03:23 +0000 (10 07:03 +0000)
treecb5fefe2b3c8bb9668146f4e17f7e3d75cb32447
parent13e5fe2a4487acdc5dae8336eabab4d673ceb443
device: reuse HTTP connections for MKCOL

This can reduce latency for folks still stuck with MKCOL.
This creates no new sockets for replicate and monitor in
all cases, as connections to the HTTP DAV server are already
used in those workers.

This only adds new persistent connections to the queryworker if
GET-only HTTP ports are configured (queryworker already may call
HTTPFile->size).
lib/MogileFS/Device.pm
lib/MogileFS/Worker/Monitor.pm