• Stan Hu's avatar
    Raise Google API HTTP send timeout from 2 minutes to 60 · af96b09e
    Stan Hu authored
    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.
    af96b09e
google_api_client.rb 1.37 KB