Search code examples
java-menokiahttpconnection

Handling Connection Timeouts in Nokia S60 devices?


I have a thread which handles all the HTTP Connections to the server and there is another thread which updates the UI etc. I have a timeout logic implemented in the UI Thread which looks for some response and times it out (closes the connection and displays a notification to the user)

It works perfectly fine on Nokia Series 40 Devices, when the application goes out of range, however in Nokia Series 60 ( especially in E61,E71), the timeout never happens, the app hangs.

Any idea?


Solution

  • I guess I figured it out. I dont know whether it is the correct solution,While I was trying to timeout the connection, I was closing the connection from the UI thread, I guess this is why the UI thread froze.

    Once I removed it everything is back to normal.