Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-23 Thread Robert Greenwalt
It is possible the samsung radio is GCM aware. That would be bad. I've added an internal bug to add a CTS test for this. On Thu, Apr 18, 2013 at 8:21 PM, Long Pu wrote: > It's galaxy S2. > > I believe the GCM works on this phone. I am wondering what GCM does to > keep his socket alive. > It w

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Long Pu
It's galaxy S2. I believe the GCM works on this phone. I am wondering what GCM does to keep his socket alive. It would not seed keep alive packets in short period like several seconds, this would burn out battery very quickly. My guess is that the carrier can recognize the GCM tcp connection and

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Robert Greenwalt
What phone hardware? On Thu, Apr 18, 2013 at 3:27 AM, Long Pu wrote: > We only see this issue on Boost phones on WIMAX actually. Pure Sprint > phones work fine. > > The minimal required period is a crazy value like 3~5 seconds. Hope this > info can help. > Our guess is that maybe Boost rents

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Long Pu
We only see this issue on Boost phones on WIMAX actually. Pure Sprint phones work fine. The minimal required period is a crazy value like 3~5 seconds. Hope this info can help. Our guess is that maybe Boost rents other company's WIMAX network, so they would like to try their best to clean up idle

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Robert Greenwalt
Thanks Long Pu for the reasoning for not using GCM. You only have this problem on sprint wimax, correct? Have to tried very frequent keep-alives? Figuring out roughly what the required period is may help us find the cause. We can talk with Sprint and Samsung about it, but the timeout info would

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Long Pu
We have to consider multiple platforms(iOS, Android, Blackberry). On iOS, push notification is not an option for our application. If use GCM, we need another extra special design especially for android. On Mon, Apr 15, 2013 at 11:23 PM, Robert Greenwalt wrote: > Could you use GCM

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 12:24 PM, Kostya Vasilyev wrote: > > > 2013/4/15 Irfan Sheriff > >> >> >> On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev wrote: >> >>> >>> >>> Should there be a system level setting to turn off those power >>> optimizations, if they're known to not be compatible with "a

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Irfan Sheriff > > > On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev wrote: > >> >> >> Should there be a system level setting to turn off those power >> optimizations, if they're known to not be compatible with "all" (taken as a >> metaphorical term) access point / router devices? >> >

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Robert Greenwalt > > > Most ipv4 is behind nats. Even on the carrier side. Each NATing agent > will have a timeout - no activity and they forget the connection state and > your connection is broken. > Keeping the device from going into deep sleep helped avoid the issue. The NATs can'

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
I think he's suggesting that if app developers can't rely on wifi not losing packets on this hardware with the AP it will see in the wild, we should disable optimizations in general. I think we found from our testing that the optimizations worked with a high percentage of AP - all AP we tested aga

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev wrote: > > > > 2013/4/15 Irfan Sheriff > >> >> >> >> On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev wrote: >> >>> >>> >>> I've seen GTalk's service menu, it seems it has separate keep-alive >>> logic for mobile vs. WiFi Why? I can't tell ju

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
u On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev wrote: > > > > 2013/4/15 Robert Greenwalt > >> >> >> >> On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev wrote: >> >>> Robert, >>> >>> Could you elaborate on the "issues like these" part? Are there changes >>> in Android that developers should

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Irfan Sheriff > > > > On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev wrote: > >> >> >> I've seen GTalk's service menu, it seems it has separate keep-alive logic >> for mobile vs. WiFi Why? I can't tell just by reading the Android >> networking docs. >> > > I dont know what gtalk

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev wrote: > > > > 2013/4/15 Robert Greenwalt > >> >> >> >> On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev wrote: >> >>> Robert, >>> >>> Could you elaborate on the "issues like these" part? Are there changes >>> in Android that developers should be

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
2013/4/15 Robert Greenwalt > > > > On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev wrote: > >> Robert, >> >> Could you elaborate on the "issues like these" part? Are there changes in >> Android that developers should be made aware? >> > > By "issues like these" I just meant the inevitable bugs t

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev wrote: > Robert, > > Could you elaborate on the "issues like these" part? Are there changes in > Android that developers should be made aware? > By "issues like these" I just meant the inevitable bugs that will crop up when making software. If th

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Kostya Vasilyev
Robert, Could you elaborate on the "issues like these" part? Are there changes in Android that developers should be made aware? I also have an app that uses long persistent server connection, and using GCM is not an option either. It seems that with Android 4.1 and 4.2, connections often go "dea

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Robert Greenwalt
Could you use GCM instead of rolling your own long-lived connection with independent keepalive? It'll be better for the users battery and better for the carriers network and you won't have to figure out issues like these. On Sat, Apr 13, 2013