I assume that when I do a read on the inputstream, it blocks until it gets more data to read. I also assume that when the connection is closed, the read throws an IOException.
The problem is that sometimes when I change the connection from carrier to WiFi or from WiFi to carrier, the read just gets stuck and never throws the IOException.
The SDK is 1.5 and the phone a HTC Hero.
This behavior is quite ugly for me because I need to stay always connected. Does someone else have ever seen this problem ? Is it a bug or am I the bug ?
Thanks