Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Move request retries to DefaultFileSource - #2727

Merged
kkaefer merged 2 commits into
masterfrom
2727-retry-in-defaultfilesource
Nov 2, 2015
Merged

kkaefer merged 2 commits into
masterfrom
2727-retry-in-defaultfilesource

Conversation

@kkaefer

@kkaefer kkaefer commented Nov 2, 2015

Copy link
Copy Markdown
Member

We currently have the logic to retry requests stuffed away in the platform-specific implementations. Instead, we should move this logic to the DefaultFileSource (it's currently the same anyway).

@kkaefer kkaefer added the performance Speed, stability, CPU usage, memory usage, or power usage label Oct 22, 2015
@kkaefer kkaefer mentioned this pull request Oct 22, 2015
@ljbade

ljbade commented Oct 22, 2015

Copy link
Copy Markdown
Contributor

@kkaefer this would be nice. I found it hard to understand that code when I was making OkHTTP file source and be nice to have it concise in one location.

@kkaefer kkaefer self-assigned this Nov 2, 2015
@kkaefer
kkaefer force-pushed the 2727-retry-in-defaultfilesource branch from 7adca47 to 04273fb Compare November 2, 2015 16:28
@kkaefer

kkaefer commented Nov 2, 2015

Copy link
Copy Markdown
Member Author

@jfirebaugh @tmpsantos 👀

@kkaefer
kkaefer merged commit 04273fb into master Nov 2, 2015
ljbade pushed a commit that referenced this pull request Nov 9, 2015
Update http_request_android.cpp for changes in #2727
Fix crash caused by calling both onFailure and onReponse in the same request
Fixes #2856
Fixes #2400
@jfirebaugh
jfirebaugh deleted the 2727-retry-in-defaultfilesource branch November 10, 2015 20:17
ljbade pushed a commit that referenced this pull request Nov 12, 2015
Update http_request_android.cpp for changes in #2727
Fix crash caused by calling both onFailure and onReponse in the same request
Fixes #2856
Fixes #2400
1ec5 added a commit that referenced this pull request Nov 12, 2015
This change fixes a bug introduced in 4d5c633 for #2727. 1 << 32 would exceed the size of int64_t. The static analyzer reported undefined behavior here because std::min() might or might not return 32.
ljbade pushed a commit that referenced this pull request Nov 16, 2015
Update http_request_android.cpp for changes in #2727
Fix crash caused by calling both onFailure and onReponse in the same request
Fixes #2856
Fixes #2400
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

performance Speed, stability, CPU usage, memory usage, or power usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants