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
b8739308
Commit
b8739308
authored
Apr 09, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Now ocsp works without threads
parent
bc53c816
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
src/shrpx.cc
src/shrpx.cc
+0
-7
src/shrpx_connection_handler.cc
src/shrpx_connection_handler.cc
+1
-2
No files found.
src/shrpx.cc
View file @
b8739308
...
...
@@ -2015,12 +2015,6 @@ int main(int argc, char **argv) {
}
if
(
!
get_config
()
->
upstream_no_tls
&&
!
get_config
()
->
no_ocsp
)
{
#ifdef NOTHREADS
mod_config
()
->
no_ocsp
=
true
;
LOG
(
WARN
)
<<
"OCSP stapling has been disabled since it requires threading but"
"threading disabled at build time."
;
#else // !NOTHREADS
struct
stat
buf
;
if
(
stat
(
get_config
()
->
fetch_ocsp_response_file
.
get
(),
&
buf
)
!=
0
)
{
mod_config
()
->
no_ocsp
=
true
;
...
...
@@ -2028,7 +2022,6 @@ int main(int argc, char **argv) {
<<
get_config
()
->
fetch_ocsp_response_file
.
get
()
<<
" not found. OCSP stapling has been disabled."
;
}
#endif // !NOTHREADS
}
if
(
get_config
()
->
downstream_addrs
.
empty
())
{
...
...
src/shrpx_connection_handler.cc
View file @
b8739308
...
...
@@ -355,7 +355,6 @@ void ConnectionHandler::cancel_ocsp_update() {
// inspired by h2o_read_command function from h2o project:
// https://github.com/h2o/h2o
int
ConnectionHandler
::
start_ocsp_update
(
const
char
*
cert_file
)
{
#ifndef NOTHREADS
int
rv
;
int
pfd
[
2
];
...
...
@@ -426,7 +425,7 @@ int ConnectionHandler::start_ocsp_update(const char *cert_file) {
ev_child_set
(
&
ocsp_
.
chldev
,
ocsp_
.
pid
,
0
);
ev_child_start
(
loop_
,
&
ocsp_
.
chldev
);
#endif // !NOTHREADS
return
0
;
}
...
...
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