Permalink
Browse files

Do not divide timeout twice

  • Loading branch information...
1 parent 19af669 commit be27a9cee1c0af50b6abe80a24cf1a56299a937a @cmouse cmouse committed Nov 3, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 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");

0 comments on commit be27a9c

Please sign in to comment.