-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[discussion] What would improve Android integration experience #4366
Labels
Milestone
Comments
Definitely not a 3.X change, but could be high value for a lot of apps if we solve the sort of problems that large internal teams in tech companies are already optimising around. |
Very powerful stuff. Could go into our route selection. |
Probably best to tie in with #4530 |
yschimke
added
android
Relates to usage specifically on Android
enhancement
Feature not a bug
labels
Mar 29, 2020
yschimke
changed the title
[discussion] Should OkHttp understand/support multiple networks and selection?
[discussion] What would improve Android integration experience
May 16, 2020
Another one: Exception translation e.g. in Airplane mode, we could throw an AirplaneModeException?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I looked at modelling Android networks with proxies for each network, and potentially multiple concurrent paths to try to connect e.g. given three networks
N1 - Cellular (radio on/off), Provider DNS
N2 - Wifi (on, corp network with proxy), Corp DNS
N3 - VPN
And IPv4 and IPv6 addressable
Potentially the optimum route is connecting to all 6 combinations at once and seeing which one allowed a connection.
But also apps may have additional knowledge, e.g. some networks should be preferred for certain corp hosts, some large downloads should only be over wifi etc, some requests should maybe be failed once the network goes away, others retried.
Also some requests can be eagerly terminated once the platform takes away the network, even if a socket event is not received.
Also DNS/Proxy Changes should possibly cause connections to be dropped and apps to retry?
The text was updated successfully, but these errors were encountered: