> > > Acquiring wifilock like this only makes sure the system does not shut down > wifi. The actual wifi connection still goes through power optimizations > once screen is off in the driver. > > This should not drop your connections, >
But it does. As I said, it sends a "FIN" packet - that's a request to close the connection. The server responds with an ACK and.a FIN of its own which Android ACKs. This is the textbook-standard way to close a TCP connection, and it's initiated by Android when the display goes off. We watch it all on our network sniffers and it's 100% reliable and repeatable. The Android device does *not* send a FIN packet as long as the display stays on, no matter how long it stays on. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

