Conversation

Replying to and
The issue is that connections often break in practice without notifying you, so you need to regularly wake up and send some data both to keep the connection from being killed and to make sure that it hasn't died yet. It's particularly bad with most mobile data connections.
2
Replying to and
Connections die pretty quickly if you aren't sending anything through them on mobile networks and you don't receive reliable notice of that. OS doesn't know about it either and the device is generally asleep when this happens. Need to decide how often to wake to keep them going.
2
Replying to and
An IPv6 network without stateful firewalls shouldn't have this issue, but stateful firewalls will still end up dropping old / inactive connections. There's also just a whole lot of broken stuff. I think there are a lot of pure IPv6 mobile networks already and it still happens.
2
My point is that this could all be made to work correctly with standard APIs (poll) and no GCM mediation hell, without lost or seriously delayed messages, if the kernel (and its configuration) were doing its job and making the standard APIs work the way they're supposed to.
1
Show replies