From be31d4e440fcc4b9a0f799a7a658293d6c9dbf09 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 8 Jun 2018 22:16:13 +0200 Subject: [PATCH] F #2166: Infinite timeouts --- src/client/Client.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 4ce90315ee..18b7d0a2ca 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -260,7 +260,14 @@ int Client::call(const std::string& endpoint, const std::string& method, client.setInterrupt(&int_flag); - client.finishAsync(_timeout); + if ( _timeout == 0 ) + { + client.finishAsync(xmlrpc_c::timeout()); + } + else + { + client.finishAsync(_timeout); + } if ( rpc_client->isFinished() ) {