facebookarchive / network-connection-class

Listen to current network traffic in the app and categorize the quality of the network.
Other
3.19k stars 515 forks source link

[Question] What is the approriate value of network connection timeout #9

Closed huyduongtu closed 9 years ago

huyduongtu commented 9 years ago

I'm applying your library into my application. My application mostly fetches images from server. I wanna to know what is the network connection timeout value for each network quality? How many network threads do you set? Sorry that it seems not be related to this library. Thanks.

Alayode commented 9 years ago

which library are you referring to ?

huyduongtu commented 9 years ago

I'm using HttpClient for android 2.2 and OkHttpClient for android version >= 2.3. I wanna to know what is the appropriate value for network timeout for each network quality. Could you give me some advise? Thanks.

SeyelentEco commented 9 years ago

We don't recommend changing the timeout by network quality. A consistent network timeout allows your application to act consistently and be more predictable.