[英]On Android loss of WiFi connection does not lead to connection termination, but loss of mobile data network does. Why?
I do two types of tests: 我进行两种类型的测试:
First I disabled WIFi before I launch my app. 首先,我在启动应用程序之前禁用了WIFi。 That means I only launch with mobile data enabled.
这意味着我仅在启用移动数据的情况下启动。
Can you please explain the discrepancy? 你能解释这个差异吗?
Some Android kernels do not close the TCP socket in certain cases. 在某些情况下,某些Android内核不会关闭TCP套接字。 Also it depends on how Airplane mode is concretely implemented.
这也取决于飞机模式的具体实现方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.