fixed issue caused by connection timeouts and long pings