DescriptionDomain Reliability: Don't clear "upload pending" bit until upload starts
Someone noticed that occasionally the uploader sent an empty upload. I
looked into the scheduler and found that it was clearing the "upload
pending" bit early, when the upload was scheduled. This meant that if a
beacon arrived between scheduling and starting the upload, the bit was
still set on its behalf, despite it being included in the upload. Once
the upload finished, the scheduler would see the bit still set and
schedule another.
This patch adds a couple of unittests for interesting interleavings
(beacons that arrive between scheduling and starting the upload, and
between starting and finishing the upload), and clears the upload
pending bit in the right place.
BUG=356791
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269592
Patch Set 1 #Patch Set 2 : rebase #
Messages
Total messages: 8 (0 generated)
|