DescriptionFix races when the same bits are downloaded from 2 URLs.
Until now, we were saving downloaded file to the temporary directory
with a name being the hash of the file content. It means there is a race
when the same content is downloaded from 2 different URLs.
To fix this, we now create an intermediary directory that is the hash of
the URL.
Also, because this is only needed for debugging with gdb, and this is
inefficient in term of both CPU and storage (we do not know when to
delete the temporary directory), we control this with a command line
flag.
R=ncbray@chromium.org, eseidel@chromium.org
BUG=https://github.com/domokit/mojo/issues/61
Committed: https://chromium.googlesource.com/external/mojo/+/690a515b6e5f7a2224d7dbbdf74a8e2b6ceaf1c2
Patch Set 1 #
Total comments: 6
Patch Set 2 : Follow review #Patch Set 3 : Follow review #
Messages
Total messages: 9 (0 generated)
|