Good day!
Interested in the question, what values ​​for the timeout of the connection wait and data reading is best set? Users can equally use both fast WIFI and slow mobile Internet. Download files larger than 2MB.

    2 answers 2

    In my opinion it is better to determine the type of connection and depending on this, set a timeout.
    Detect the type of network connection on Android

    • well, what timeouts are better to set for different types of connections? - andreich
    • I didn’t think about it, but as an option to set up different Internet speeds on the router and check it with a scientific link, then choose something average - gadfil

    In my opinion, timeout is set for a time that the connection is not responding. That is, if you put a timeout of 2 seconds, and the file itself will swing 10, then nothing will break.

    • I know what timeouts are for and how they work, I'm interested in the “best practices” of smart people :) - andreich