Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
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-AUSF
Commits
b31fbd98
Commit
b31fbd98
authored
Jun 09, 2022
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 5g-aka-confirmation,increase curl timeout
parent
57bfea04
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
40 deletions
+34
-40
src/api/DefaultApi.cpp
src/api/DefaultApi.cpp
+1
-1
src/impl/DefaultApiImpl.cpp
src/impl/DefaultApiImpl.cpp
+30
-36
src/utils/curl.cpp
src/utils/curl.cpp
+2
-2
src/utils/curl.hpp
src/utils/curl.hpp
+1
-1
No files found.
src/api/DefaultApi.cpp
View file @
b31fbd98
...
...
@@ -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
...
...
src/impl/DefaultApiImpl.cpp
View file @
b31fbd98
This diff is collapsed.
Click to expand it.
src/utils/curl.cpp
View file @
b31fbd98
...
...
@@ -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
};
...
...
src/utils/curl.hpp
View file @
b31fbd98
...
...
@@ -43,7 +43,7 @@
#include "logger.hpp"
#include "ausf_config.hpp"
#define CURL_TIMEOUT_MS
3
00L
#define CURL_TIMEOUT_MS
10
00L
class
Curl
{
public:
...
...
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