-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
/// @brief Client side connection timeout.
/// @todo Make it configurable.
-const long CONNECTION_TIMEOUT = 5000;
+const long CONNECTION_TIMEOUT = 10000;
}
.arg(parser_->getBufferAsString(MAX_LOGGED_MESSAGE_SIZE));
}
+ // Don't want to timeout if creation of the response takes long.
+ request_timer_.cancel();
+
HttpResponsePtr response = response_creator_->createHttpResponse(request_);
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC,
HTTP_SERVER_RESPONSE_SEND)
.arg(HttpMessageParserBase::logFormatHttpMessage(response->toString(),
MAX_LOGGED_MESSAGE_SIZE));
+ // Response created. Active timer again.
+ setupRequestTimer();
+
asyncSendResponse(response);
}
}