Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
e6cf9486
Commit
e6cf9486
authored
Jul 01, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NF registration
parent
ce6d56c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
src/api-server/impl/SMContextsCollectionApiImpl.cpp
src/api-server/impl/SMContextsCollectionApiImpl.cpp
+1
-1
src/common/smf.h
src/common/smf.h
+3
-0
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+1
-1
No files found.
src/api-server/impl/SMContextsCollectionApiImpl.cpp
View file @
e6cf9486
...
...
@@ -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
());
...
...
src/common/smf.h
View file @
e6cf9486
...
...
@@ -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
...
...
src/smf_app/smf_sbi.cpp
View file @
e6cf9486
...
...
@@ -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
,
"P
OS
T"
))
{
if
(
!
curl_create_handle
(
url
,
body
,
response_data
,
pid_ptr
,
"P
U
T"
))
{
Logger
::
smf_sbi
().
warn
(
"Could not create a new handle to send message"
);
remove_promise
(
promise_id
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment