Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mingxuan Li
openairinterface5G
Commits
1df60139
Commit
1df60139
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Automatically close GTP sockets at program end
parent
19d83ad2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair3/ocp-gtpu/gtp_itf.cpp
+6
-0
6 additions, 0 deletions
openair3/ocp-gtpu/gtp_itf.cpp
with
6 additions
and
0 deletions
openair3/ocp-gtpu/gtp_itf.cpp
+
6
−
0
View file @
1df60139
...
...
@@ -142,6 +142,12 @@ class gtpEndPoints {
pthread_mutex_t
gtp_lock
=
PTHREAD_MUTEX_INITIALIZER
;
// the instance id will be the Linux socket handler, as this is uniq
map
<
int
,
gtpEndPoint
>
instances
;
~
gtpEndPoints
()
{
// automatically close all sockets on quit
for
(
const
auto
p
:
instances
)
close
(
p
.
first
);
}
};
gtpEndPoints
globGtp
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment