Use pycurl Keep-Alive feature to save download time.
authorHuang Hao <hao.h.huang@intel.com>
Mon, 20 Aug 2012 11:45:38 +0000 (19:45 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Thu, 23 Aug 2012 10:28:38 +0000 (18:28 +0800)
commitc088e3075b3fd5034d2709f7ed1df1162e7b47ae
tree452a80f4938e93ef983fb146dae99fe3a1a6f642
parentb9beb7a8c9136085ff12528c3937992251d0d7bd
Use pycurl Keep-Alive feature to save download time.

When GBS parse "latest" type of repo url, it tries to download
several URLs. This usually costs about 30 seconds to complete. By
using keepalive it takes about 10 seconds. pycurl print "Re-using
existing connection!" if pycurl.VERBOSE set to 1.

Change-Id: Ib78b204c26d9077c15e0ea7ff7b032ad2314546f
gitbuildsys/utils.py