increased value for forced reconnection on rejects

This commit is contained in:
Thomas Baumbach 2013-09-13 15:19:09 +02:00
parent bfca87b84c
commit 27285b851f

View file

@ -333,8 +333,8 @@ public:
reject_counter = 0;
else
reject_counter++;
if (reject_counter >= 3) {
std::cout << "too many rejects, forcing reconnect." << std::endl;
if (reject_counter >= 4) {
std::cout << "too many rejects (4), forcing reconnect." << std::endl;
socket->close();
done = true;
}