views:

331

answers:

2

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

A: 

Anyway, sometimes it blocks even if I switch to plane mode. Streams attributes are : opened, not closed, bound, created. Am I the only one to get this error ?

fedj
A: 

I get exactly the same error (Nexus one, Android 2.1), using asmack which indeed does SSL. See link http://code.google.com/p/asmack/issues/detail?id=16

Carl D'Halluin