I was wondering if anybody knows, or has any information about, what could the best timeout for internet connections on mobile devices (particularly Android).
Since they have limited internet access with considerable lag, maybe it's interesting to set a smaller timeout (from default) since the device could be going though a network blackspot at that particular moment.
UPDATE: This occurred to me, as I mention on the comments, since it can be rather annoying for the user to wait for a 30 second timeout and then have it fail in the end.
A server connection timeout means that a server is taking too long to reply to a data request made from another device. Timeouts are not a reply message: they show up when there isn't a reply and a server request is not fulfilled in a predetermined length of time.
Introduction The Transmission Control Protocol (TCP) specification [RFC0793] defines a local, per-connection "user timeout" parameter that specifies the maximum amount of time that transmitted data may remain unacknowledged before TCP will forcefully close the corresponding connection.
Frankly I think you're asking a question with no real answer, or at least one where the answer is "it depends".
Here are a few things you might want to take into account though:
All that said, assuming you're blocking the user from doing anything else then I'd be looking at a timeout somewhere in the region of 10-20 secs. That number's more based on my experience as a user than as a developer though!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With