detecting retries

16 views
Skip to first unread message

Yuval Hager

unread,
Sep 17, 2018, 10:20:22 PM9/17/18
to Google APIs Client Library for C++

How would you implement exponential backoff? My issue is detecting the retry situation. The docs say http response codes 429 and 50x should trigger this (https://cloud.google.com/storage/docs/json_api/v1/status-codes). But I don’t know how to detect those when using this library.

client/util/status.cc contains code to translate http status codes to util::error::Code, but 429 is missing from that list. Is my best course to patch it?

(would you like a pull request in that case?)

Reply all
Reply to author
Forward
0 new messages