From be27a9cee1c0af50b6abe80a24cf1a56299a937a Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 3 Nov 2015 13:55:15 +0200 Subject: [PATCH] Do not divide timeout twice --- modules/remotebackend/httpconnector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/remotebackend/httpconnector.cc b/modules/remotebackend/httpconnector.cc index b74d105a9..80c7549e3 100644 --- a/modules/remotebackend/httpconnector.cc +++ b/modules/remotebackend/httpconnector.cc @@ -388,7 +388,7 @@ int HTTPConnector::recv_message(rapidjson::Document &output) { try { t0 = time((time_t*)NULL); - while(arl.ready() == false && (labs(time((time_t*)NULL) - t0) <= timeout/1000)) { + while(arl.ready() == false && (labs(time((time_t*)NULL) - t0) <= timeout)) { rd = d_socket->readWithTimeout(buffer, sizeof(buffer), timeout); if (rd==0) throw NetworkError("EOF while reading"); -- 2.40.0