Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/libhsscomm/HSSManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ void HSSManager::ReportEvent(const std::string& address, const std::string& valu
bool HSSManager::XmlRpcCallSync(const char* method, XmlRpc::XmlRpcValue& params, XmlRpc::XmlRpcValue* result, const std::string& url)
{
XmlRpcClient c(url);
c.setTimeout(30000); // this runs on the daemon's main loop: do not wait forever for a receiver that does not answer
if(!c.execute(method, params, *result)){
LOG(Logger::LOG_ERROR, "XmlRpc transport error calling %s(%s) on %s:", method, params.toText().c_str(), c.getURL().c_str());
}else{
Expand Down