summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2020-05-29 15:21:08 -0700
committerTej Singh <singhtejinder@google.com>2020-05-29 15:21:08 -0700
commitc95f7819017eeeccfb78cab728c3c443546affed (patch)
treef97c2faea59a3f91e7a54c17af215f720a5026e5 /libsparse/sparse.cpp
parent9113e7be9556d002e84c08bb5ed1aa7dd1bcf618 (diff)
Retry pullfinish with empty payload if call fails
If the first call for pullFinished fails, it is likely because the transaction is too large. Currently, if this happens statsd will just sleep until the timeout. With this change, the client will retry calling pullFinish if the first attempt fails, but with an empty payload (and with success = false) to cause the puller to fail fast, and so statsd does not wait for the timeout. Test: atest LibStatsPullTests Bug: 157768117 Change-Id: I3af991fae47bb7c09bf8a6fc83f28556b836c6e4
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions