Commit e6cf9486 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Fix issue for NF registration

parent ce6d56c3
......@@ -106,7 +106,7 @@ void SMContextsCollectionApiImpl::post_sm_contexts(
boost::future_status status;
// wait for timeout or ready
status = f.wait_for(boost::chrono::milliseconds(100));
status = f.wait_for(boost::chrono::milliseconds(FUTURE_STATUS_TIMEOUT_MS));
if (status == boost::future_status::ready) {
assert(f.is_ready());
assert(f.has_value());
......
......@@ -205,6 +205,9 @@ constexpr auto CURL_MIME_BOUNDARY = "----Boundary";
// for N1N2
#define BUF_LEN 512
// FOR FUTURE PROMISE
#define FUTURE_STATUS_TIMEOUT_MS 100
// for PFCP
constexpr uint64_t SECONDS_SINCE_FIRST_EPOCH = 2208988800;
// 8.22 Fully Qualified TEID (F-TEID) - 3GPP TS 29.274 V16.0.0
......
......@@ -571,7 +571,7 @@ void smf_sbi::register_nf_instance(
add_promise(promise_id, p);
// Create a new curl easy handle and add to the multi handle
if (!curl_create_handle(url, body, response_data, pid_ptr, "POST")) {
if (!curl_create_handle(url, body, response_data, pid_ptr, "PUT")) {
Logger::smf_sbi().warn("Could not create a new handle to send message");
remove_promise(promise_id);
return;
......
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