Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
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
Libraries
nghttp2
Commits
086b85b8
Commit
086b85b8
authored
Oct 04, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Unload BPF program after setting up all QUIC listeners
parent
abee658a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
src/shrpx.cc
src/shrpx.cc
+0
-4
src/shrpx_process.h
src/shrpx_process.h
+0
-1
src/shrpx_worker_process.cc
src/shrpx_worker_process.cc
+2
-5
No files found.
src/shrpx.cc
View file @
086b85b8
...
...
@@ -3885,10 +3885,6 @@ void reload_config(WorkerProcess *wp) {
#endif // ENABLE_HTTP3
));
#ifdef ENABLE_HTTP3
ipc_send
(
last_wp
.
get
(),
SHRPX_IPC_UNLOAD_BPF_OBJECT
);
#endif // ENABLE_HTTP3
worker_process_adjust_limit
();
if
(
!
get_config
()
->
pid_file
.
empty
())
{
...
...
src/shrpx_process.h
View file @
086b85b8
...
...
@@ -31,7 +31,6 @@ namespace shrpx {
constexpr
uint8_t
SHRPX_IPC_REOPEN_LOG
=
1
;
constexpr
uint8_t
SHRPX_IPC_GRACEFUL_SHUTDOWN
=
2
;
constexpr
uint8_t
SHRPX_IPC_UNLOAD_BPF_OBJECT
=
3
;
}
// namespace shrpx
...
...
src/shrpx_worker_process.cc
View file @
086b85b8
...
...
@@ -175,11 +175,6 @@ void ipc_readcb(struct ev_loop *loop, ev_io *w, int revents) {
case
SHRPX_IPC_REOPEN_LOG
:
reopen_log
(
conn_handler
);
break
;
#if defined(ENABLE_HTTP3) && defined(HAVE_LIBBPF)
case
SHRPX_IPC_UNLOAD_BPF_OBJECT
:
conn_handler
->
unload_bpf_objects
();
break
;
#endif // defined(ENABLE_HTTP3) && defined(HAVE_LIBBPF)
}
}
}
...
...
@@ -608,6 +603,8 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) {
#endif // !NOTHREADS
}
conn_handler
->
unload_bpf_objects
();
drop_privileges
(
#ifdef HAVE_NEVERBLEED
nb
.
get
()
...
...
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