summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2015-01-02 11:12:54 -0800
committerDave Borowitz <dborowitz@google.com>2015-01-02 13:57:13 -0800
commit137d0131bf35b01db0d49e1d9720bbc526232c61 (patch)
tree116b3503d8b9c44a7c95311121bd3c577013c5b6 /main.py
parent42e679b9f63086dc1a27aed2d99deb3c1da428fc (diff)
downloadgit-repo-137d0131bf35b01db0d49e1d9720bbc526232c61.tar.gz
Hold persistent proxy connection open while fetching clone.bundle
The persistent proxy may choose to present a per-process cookie file that gets cleaned up after the process exits, to help with the fact that libcurl cannot save cookies atomically when a cookie file is shared across processes. We were letting this cleanup happen immediately by closing stdin as soon as we read the configuration option, resulting in a nonexistent cookie file by the time we use the config option. Work around this by converting the cookie logic to a context manager method, which closes the process only when we're done with the cookie file. Change-Id: I12a88b25cc19621ef8161337144c1b264264211a
Diffstat (limited to 'main.py')
0 files changed, 0 insertions, 0 deletions