My guess would be that this is an optimization in the Browser to
reduce resource usage.

That being said, what the browser does is sort of irrelevant here. On
cellular networks, you'll almost never be able to have these long-idle
TCP sockets. The cellular data network simply tears them down,
typically if there's no activity for 30 seconds. So, in practice the
limiting factor is the network, not the client.

Cheers,
Justin
Android Team @ Google

On Aug 18, 5:38 am, max <[email protected]> wrote:
> Hello everyone,
>
> I already posted this on stackoverflow.com (http://stackoverflow.com/
> questions/1271345/problem-with-dwr-and-android-browser) but noone
> could point me in the right direction.
>
> So I will just cite what I posted previously on stackoverflow:
>
> <blockquote><p>I am experiencing a problem with accessing an
> application from the Android-browser. The application uses DWR to
> persist connections to the clients that are connected with it.
>
> Everything works fine for me, except that if the application does not
> send any data to the client on the Android-phone for 2 minutes, the
> connection seems to be lost and no data arrive at the client. The same
> scenario works just fine on Firefox, Opera and Chrome. If the pause
> between two data transfers is less than 2 minutes, it works just fine.
>
> So, now my question: Is there some timeout setting for the android
> browser that I am missing? Or is this some built-in bug/feature/
> whatever that I cannot circumvent?
>
> I know that I could prevent this from happening with some sort of
> heartbeat, I would just like to know _why_ this is happening.
>
> Thanks in advance, Max
>
> btw: Everything (server, clients) runs on my machine and I am testing
> this on the android emulator with Windows XP</p></blockquote>
>
> Oh, and I am using Android emulator version 1.10 (build_id
> CUPCAKE-150240)
>
> Thanks in advance.
> Max
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to