Commit 8e9722ce authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

SSH: properly propagate check_by_ssh timeout. This fixes #5602.

parent 5d712cd8
/*
** Copyright 2011-2013 Merethis
** Copyright 2011-2014 Merethis
**
** This file is part of Centreon SSH Connector.
**
......@@ -274,7 +274,7 @@ void parser::_parse(std::string const& cmd) {
if (opt.get_timeout()
&& opt.get_timeout() < static_cast<unsigned int>(timeout))
timeout = opt.get_timeout();
timeout = time(NULL) + opt.get_timeout();
else if (opt.get_timeout() > static_cast<unsigned int>(timeout))
throw (basic_error() << "invalid execution request " \
"received: timeout > to monitoring engine timeout");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment