Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem downloading files >= 2gb from google storage. Get connection timeout after file transferred #38

Closed
wonderfly opened this issue Jan 9, 2015 · 9 comments
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@wonderfly
Copy link
Contributor

From daniel...@google.com on October 02, 2011 17:54:08

Version of google-http-java-client (e.g. 1.5.0-beta)? 1.6.0-beta-SNAPSHOT
latest from default branch Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6. Describe the problem. No issue with files less than 2 gb in size. But for files equal or greater than 2gb on last read I would expect to receive a -1 to indicate EOF, but instead I get a socket timeout. How would you expect it to be fixed? -1 retrieved from read instead of socket timeout exception.

Original issue: http://code.google.com/p/google-http-java-client/issues/detail?id=38

@wonderfly wonderfly added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. imported labels Jan 9, 2015
@wonderfly wonderfly self-assigned this Jan 9, 2015
@wonderfly
Copy link
Contributor Author

From yan...@google.com on October 02, 2011 21:28:36

Thanks for reporting the problem, Daniel. According to Daniel, this reproduces with NetHttpTransport, but not with ApacheHttpTransport, so may be specific to NetHttpTransport.

Status: Accepted
Owner: yan...@google.com
Cc: rmis...@google.com
Labels: -Priority-Medium Priority-High Milestone-Version1.6.0

@wonderfly
Copy link
Contributor Author

From daniel...@google.com on October 05, 2011 11:39:16

Perhaps related to this code: From class NetHttpRequest: Method LowLevelHttpResponse:
if (contentLength >= 0 && contentLength <= Integer.MAX_VALUE) {
connection.setFixedLengthStreamingMode((int) contentLength);
} else {
connection.setChunkedStreamingMode(0);
}

@wonderfly
Copy link
Contributor Author

From yan...@google.com on November 11, 2011 05:58:13

Labels: -Milestone-Version1.6.0 Milestone-Version1.6.1 Component-HTTP

@wonderfly
Copy link
Contributor Author

From rmis...@google.com on March 09, 2012 09:01:51

Labels: -Milestone-Version1.6.1 Milestone-Version1.8.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on March 27, 2012 07:22:33

Labels: Milestone-Version1.9.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on April 25, 2012 15:35:33

Owner: rmis...@google.com
Cc: -rmis...@google.com yan...@google.com

@wonderfly
Copy link
Contributor Author

From rmis...@google.com on May 14, 2012 07:14:07

Labels: -Milestone-Version1.9.0 Milestone-Version1.10.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on May 30, 2012 18:24:29

Labels: -Milestone-Version1.10.0 Milestone-Version1.11.0

@wonderfly
Copy link
Contributor Author

From rmis...@google.com on July 17, 2012 07:37:43

I have tried to reproduce this in the past unsuccessfully and we now have resumable media download which should be used for downloading very large files: https://code.google.com/p/google-api-java-client/wiki/MediaDownload#Resumable_Media_Download Can this bug be closed?

Status: RequestedFeedback

@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
clundin25 pushed a commit to clundin25/google-http-java-client that referenced this issue Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants