artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

HttpRequest ignores Backoff policy for inter #254

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
google-http-java-client 1.15.0-rc
Java environment: Java 5

We use http client with google drive together to upload/download files to/from 
the cloud. But very unpleasant issue was found. When user is uploading big file 
(~ 1Gb) connection problems could happen and uploading is interrupted. To 
handle such situation we added backoff policy to continue file uploading, but 
we found that errors happened again. Deeper investigation shown that error 
happened inside HttpRequest class interceptor logic:

// run the interceptor
      if (executeInterceptor != null) {
        executeInterceptor.intercept(this);
      } 
Credential interceptor from oauth library fires io exception when it can't 
connect to server to refresh token due connection problems.

To fix such issues this call should obey backoff policy as main request logic 
does.

Original issue reported on code.google.com by ArmenPol...@gmail.com on 2 Jan 2014 at 4:35