summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-02-03 21:30:24 -0800
committerAlex Deymo <deymo@google.com>2017-02-13 21:26:40 +0000
commit71f6762c7e04774439c8011a5032bea6f182276f (patch)
tree0fdd7de6e308139e9033dadec1a335f27ab0e5a3 /scripts/update_payload/format_utils_unittest.py
parent3582194c10c47ffcda9ad7881e7fa6eed2404406 (diff)
Fix terminating a transfer while resolving proxies.
Calling TerminateTransfer() on an HttpFetcher should cancel the current transfer regardless of where it is sitting. If TerminateTransfer() was called right after BeginTransfer(), the fetcher would be waiting for the proxy resolution callback which will kick the download. This patch fixes this case by releasing the proxy callback when terminating a transfer. Bug: 34178297 Test: Added a unittest to trigger this case. Change-Id: I282d04995bd0d03f9a469c80c1e263f9902e4be2
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions