No IO exception reported for socket operation when the interface is removed
Posted
by user352536
on Stack Overflow
See other posts from Stack Overflow
or by user352536
Published on 2010-05-28T03:04:45Z
Indexed on
2010/05/28
3:11 UTC
Read the original article
Hit count: 202
android
The wifi network is connected, the application setup a socket connection and exchange data with the remote server. But when turn off the wifi, the inteface is removed, while socket operation read/write on this socket is still like normal, no any IO exception reported. The application has to do some extra checking to avoid waiting for the data forever.
Is this the normal case for Android design? Is there any plan to fix it?
© Stack Overflow or respective owner