View Single Post
Scorpius's Avatar
Posts: 1,396 | Thanked: 2,796 times | Joined on Sep 2010 @ Caracas, Venezuela
#5145
Originally Posted by Zero Six View Post
In Whatsapp/bintreenodereader.cpp, there is a defined READ_TIMEOUT 1000.
When I change that value to higher number, timeout didn't happen.
So I add read timeout setting.
That's the time in milliseconds when Yappari will try another read from the network socket.

If you change it to a higher value, the GUI should freeze more often in bad connections. If you change it to a lower value, the GUI should response better, but your battery will last a lot less.

It doesn't really has anything to do with the socket timeout, which is 300 seconds (5 minutes).

If you read the code you'll see that no matter what value you set there, it's inside a while loop so it will still try to read until it reads what it needs to read, or until the socket times out and throws an exception.
__________________
Support Yappari (a Whatsapp client for the N900 only) - Donate