Comment 1 for bug 1547053

Revision history for this message
Roberto Mier Escandon (rmescandon) wrote :

Observed while fixing a reconnection bug [1] that when the network connection drops or switches to another network the socket is not aware of it until passed some seconds. If the socket is used to send any request meanwhile, though the request even can get to destination, the socket becomes useless, so it won't be able to send or receive any more data.

As when this other bug is fixed [2] telegram app will be able to use connectivity api to detect any network disconnection/switch before a socket timeout, and thus, avoid using the socket or even disconnect it while not having connection again.

[1] https://bugs.launchpad.net/bugs/1518300
[2] https://bugs.launchpad.net/bugs/1545673