android - Socket communication crashes only on certain device with no visible reason, how to debug it? -
i experiencing problem simple client server application. details:
- the server running on raspberry pi v2, c++ application
- the client android app, tested on 2 devices: fast handset (htc 1 m8 running android 5.0.1) , relatively slow tablet (samsung tab4 7" running 4.4.2)
- all communication happening on wifi (rpi hotspot)
- the communication done using simple protocol: client sends request , waits answer server
- all requests working fine (out of 23 different ones) except 1 experiencing problem with
- the request 8 byte header , optional parameters
- there no parameter particular request
- the answer should 8 byte header , 4 byte response payload request
- the request sent every second
- the communication handled on asynctask
the bug:
the server reports answer sent client, yet client times out after 1.5 seconds (value chosen me) data lost. weird part happens on m8, tablet never showed bug. happens every time after amount of time, 1-5 minutes, seems systematic problem.
can please me finding root cause of bug?
edit: discovered android device monitor -> network statistics showing happened, i'm not sure how interpret graph:
my code reports socket timing out @ 21:24:27.046. ideas?
Comments
Post a Comment