mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-10-15 13:02:40 +08:00
137d0131bf35b01db0d49e1d9720bbc526232c61
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
Description
Languages
Python
99.2%
Shell
0.8%