HTC One with java.net.Socket stuck in DataInputStream.read when on HSDPA. Work fine on 3G and Wifi -


it's on android. have chat tool sends/receives packets. on client side parse packets , display message users. traditional chatting tool.

the problem tool works quite on other devices on wifi, edge , 3g, except htc one. on hsdpa (3g) notice client cannot receive packets usual. it's stuck there until reset socket.

i debug , found datainputstream.read() method (in while loop listen incoming data) stuck there. attached android source go deeper not until java.libcore package of oracle.

i guess issue because of sleep mode of htc one. on foreground, app cannot receive message too, until open new socket (with long timeout, 4 minutes, long chatting tool).

as researched, try install smartsync disabler htc , situation seems better. when decompile tool, sets 2 parameters: sleep_mode_mode off , data_on_wifi off, means on sleep mode, smartsync not disconnect wifi.

my question has encountered situation before on htc 1 in particular? reason?

many thanks!

we have got same problem.

try play methods

void    setreceivebuffersize(int size) void    setsendbuffersize(int size) 

i.e. make smaller.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -