Commit b31fbd98 authored by yangjian's avatar yangjian

fix 5g-aka-confirmation,increase curl timeout

parent 57bfea04
......@@ -183,7 +183,7 @@ void DefaultApi::ue_authentications_post_handler(
try {
nlohmann::json::parse(request.body()).get_to(authenticationInfo);
Logger::ausf_server().debug("json parsed");
// Logger::ausf_server().debug("json parsed");
this->ue_authentications_post(authenticationInfo, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
......
This diff is collapsed.
......@@ -42,7 +42,7 @@ std::size_t callback(const char *in, std::size_t size, std::size_t num,
void Curl::curl_http_client(std::string remoteUri, std::string Method,
std::string msgBody, std::string &Response) {
Logger::ausf_server().info("Send HTTP message with body %s", msgBody.c_str());
// Logger::ausf_server().debug("Send HTTP message with body %s", msgBody.c_str());
uint32_t str_len = msgBody.length();
char *body_data = (char *)malloc(str_len + 1);
......@@ -74,7 +74,7 @@ void Curl::curl_http_client(std::string remoteUri, std::string Method,
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT_MS);
curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1);
curl_easy_setopt(curl, CURLOPT_INTERFACE, ausf_cfg.sbi.if_name.c_str());
Logger::ausf_server().info("[CURL] request sent by interface " + ausf_cfg.sbi.if_name);
// Logger::ausf_server().info("[CURL] request sent by interface " + ausf_cfg.sbi.if_name);
// Response information.
long httpCode = {0};
......
......@@ -43,7 +43,7 @@
#include "logger.hpp"
#include "ausf_config.hpp"
#define CURL_TIMEOUT_MS 300L
#define CURL_TIMEOUT_MS 1000L
class Curl {
public:
......
Markdown is supported
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