Raise Google API HTTP send timeout from 2 minutes to 60
By default, httpclient will set a send timeout of 120 seconds, which causes any Google HTTP request to be interrupted every 2 minutes. The Google API client uses resumable uploads so that if a transfer request is interrupted, it can retry where it left off. The client will retry at most N + 1 times, which means transfers can only last as long as this (N + 1) * send timeout. We raise this timeout to an hour since otherwise transfers can only last 8 minutes (4 * 2 min) before being interrupted.
Showing
Please register or sign in to comment