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
5ccf647d
Commit
5ccf647d
authored
Jul 26, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename shrpx as nghttpx superficially
parent
86174f53
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
src/Makefile.am
src/Makefile.am
+4
-4
src/shrpx.cc
src/shrpx.cc
+9
-9
src/shrpx_http.cc
src/shrpx_http.cc
+1
-1
No files found.
src/Makefile.am
View file @
5ccf647d
...
@@ -37,7 +37,7 @@ AM_CXXFLAGS = -std=c++11
...
@@ -37,7 +37,7 @@ AM_CXXFLAGS = -std=c++11
LDADD
=
$(top_builddir)
/lib/libnghttp2.la
LDADD
=
$(top_builddir)
/lib/libnghttp2.la
bin_PROGRAMS
+=
nghttp nghttpd
shr
px
bin_PROGRAMS
+=
nghttp nghttpd
nghtt
px
HELPER_OBJECTS
=
util.cc timegm.c app_helper.cc
HELPER_OBJECTS
=
util.cc timegm.c app_helper.cc
HELPER_HFILES
=
util.h timegm.h app_helper.h nghttp2_config.h
HELPER_HFILES
=
util.h timegm.h app_helper.h nghttp2_config.h
...
@@ -70,7 +70,7 @@ nghttpd_SOURCES = ${HELPER_OBJECTS} ${HELPER_HFILES} nghttpd.cc \
...
@@ -70,7 +70,7 @@ nghttpd_SOURCES = ${HELPER_OBJECTS} ${HELPER_HFILES} nghttpd.cc \
HttpServer.cc HttpServer.h
HttpServer.cc HttpServer.h
if
HAVE_LIBEVENT_OPENSSL
if
HAVE_LIBEVENT_OPENSSL
SHR
PX_SRCS
=
\
NGHTT
PX_SRCS
=
\
util.cc util.h timegm.c timegm.h base64.h
\
util.cc util.h timegm.c timegm.h base64.h
\
shrpx_config.cc shrpx_config.h
\
shrpx_config.cc shrpx_config.h
\
shrpx_error.h
\
shrpx_error.h
\
...
@@ -95,10 +95,10 @@ SHRPX_SRCS = \
...
@@ -95,10 +95,10 @@ SHRPX_SRCS = \
http-parser/http_parser.c http-parser/http_parser.h
http-parser/http_parser.c http-parser/http_parser.h
if
HAVE_SPDYLAY
if
HAVE_SPDYLAY
SHR
PX_SRCS
+=
shrpx_spdy_upstream.cc shrpx_spdy_upstream.h
NGHTT
PX_SRCS
+=
shrpx_spdy_upstream.cc shrpx_spdy_upstream.h
endif
# HAVE_SPDYLAY
endif
# HAVE_SPDYLAY
shrpx_SOURCES
=
${SHR
PX_SRCS}
shrpx.cc shrpx.h
nghttpx_SOURCES
=
${NGHTT
PX_SRCS}
shrpx.cc shrpx.h
# if HAVE_CUNIT
# if HAVE_CUNIT
# check_PROGRAMS += shrpx-unittest
# check_PROGRAMS += shrpx-unittest
...
...
src/shrpx.cc
View file @
5ccf647d
...
@@ -324,7 +324,7 @@ void fill_default_config()
...
@@ -324,7 +324,7 @@ void fill_default_config()
mod_config
()
->
daemon
=
false
;
mod_config
()
->
daemon
=
false
;
mod_config
()
->
verify_client
=
false
;
mod_config
()
->
verify_client
=
false
;
mod_config
()
->
server_name
=
"
shr
px nghttp2/"
NGHTTP2_VERSION
;
mod_config
()
->
server_name
=
"
nghtt
px nghttp2/"
NGHTTP2_VERSION
;
set_config_str
(
&
mod_config
()
->
host
,
"0.0.0.0"
);
set_config_str
(
&
mod_config
()
->
host
,
"0.0.0.0"
);
mod_config
()
->
port
=
3000
;
mod_config
()
->
port
=
3000
;
mod_config
()
->
private_key_file
=
0
;
mod_config
()
->
private_key_file
=
0
;
...
@@ -371,7 +371,7 @@ void fill_default_config()
...
@@ -371,7 +371,7 @@ void fill_default_config()
mod_config
()
->
add_x_forwarded_for
=
false
;
mod_config
()
->
add_x_forwarded_for
=
false
;
mod_config
()
->
no_via
=
false
;
mod_config
()
->
no_via
=
false
;
mod_config
()
->
accesslog
=
false
;
mod_config
()
->
accesslog
=
false
;
set_config_str
(
&
mod_config
()
->
conf_path
,
"/etc/
shrpx/shr
px.conf"
);
set_config_str
(
&
mod_config
()
->
conf_path
,
"/etc/
nghttpx/nghtt
px.conf"
);
mod_config
()
->
syslog
=
false
;
mod_config
()
->
syslog
=
false
;
mod_config
()
->
syslog_facility
=
LOG_DAEMON
;
mod_config
()
->
syslog_facility
=
LOG_DAEMON
;
mod_config
()
->
use_syslog
=
false
;
mod_config
()
->
use_syslog
=
false
;
...
@@ -410,7 +410,7 @@ void print_version(std::ostream& out)
...
@@ -410,7 +410,7 @@ void print_version(std::ostream& out)
namespace
{
namespace
{
void
print_usage
(
std
::
ostream
&
out
)
void
print_usage
(
std
::
ostream
&
out
)
{
{
out
<<
"Usage:
shr
px [-Dh] [-s|--client|-p] [-b <HOST,PORT>]
\n
"
out
<<
"Usage:
nghtt
px [-Dh] [-s|--client|-p] [-b <HOST,PORT>]
\n
"
<<
" [-f <HOST,PORT>] [-n <CORES>] [-c <NUM>] [-L <LEVEL>]
\n
"
<<
" [-f <HOST,PORT>] [-n <CORES>] [-c <NUM>] [-L <LEVEL>]
\n
"
<<
" [OPTIONS...] [<PRIVATE_KEY> <CERT>]
\n
"
<<
" [OPTIONS...] [<PRIVATE_KEY> <CERT>]
\n
"
<<
"
\n
"
<<
"
\n
"
...
@@ -490,7 +490,7 @@ void print_help(std::ostream& out)
...
@@ -490,7 +490,7 @@ void print_help(std::ostream& out)
<<
" when the backend connection is SPDY. First,
\n
"
<<
" when the backend connection is SPDY. First,
\n
"
<<
" make a CONNECT request to the proxy and
\n
"
<<
" make a CONNECT request to the proxy and
\n
"
<<
" it connects to the backend on behalf of
\n
"
<<
" it connects to the backend on behalf of
\n
"
<<
"
shrpx. This forms tunnel. After that, shr
px
\n
"
<<
"
nghttpx. This forms tunnel. After that, nghtt
px
\n
"
<<
" performs SSL/TLS handshake with the
\n
"
<<
" performs SSL/TLS handshake with the
\n
"
<<
" downstream through the tunnel. The timeouts
\n
"
<<
" downstream through the tunnel. The timeouts
\n
"
<<
" when connecting and making CONNECT request
\n
"
<<
" when connecting and making CONNECT request
\n
"
...
@@ -519,7 +519,7 @@ void print_help(std::ostream& out)
...
@@ -519,7 +519,7 @@ void print_help(std::ostream& out)
<<
" be requested interactively.
\n
"
<<
" be requested interactively.
\n
"
<<
" --subcert=<KEYPATH>:<CERTPATH>
\n
"
<<
" --subcert=<KEYPATH>:<CERTPATH>
\n
"
<<
" Specify additional certificate and private
\n
"
<<
" Specify additional certificate and private
\n
"
<<
" key file.
Shr
px will choose certificates
\n
"
<<
" key file.
nghtt
px will choose certificates
\n
"
<<
" based on the hostname indicated by client
\n
"
<<
" based on the hostname indicated by client
\n
"
<<
" using TLS SNI extension. This option can be
\n
"
<<
" using TLS SNI extension. This option can be
\n
"
<<
" used multiple times.
\n
"
<<
" used multiple times.
\n
"
...
@@ -561,7 +561,7 @@ void print_help(std::ostream& out)
...
@@ -561,7 +561,7 @@ void print_help(std::ostream& out)
<<
" to connect to the outside SPDY proxy.
\n
"
<<
" to connect to the outside SPDY proxy.
\n
"
<<
" --client Instead of accepting SPDY/HTTPS connection,
\n
"
<<
" --client Instead of accepting SPDY/HTTPS connection,
\n
"
<<
" accept HTTP connection and communicate with
\n
"
<<
" accept HTTP connection and communicate with
\n
"
<<
" backend server in SPDY. To use
shr
px as
\n
"
<<
" backend server in SPDY. To use
nghtt
px as
\n
"
<<
" a forward proxy, use -p option instead.
\n
"
<<
" a forward proxy, use -p option instead.
\n
"
<<
" -p, --client-proxy Like --client option, but it also requires
\n
"
<<
" -p, --client-proxy Like --client option, but it also requires
\n
"
<<
" the request path from frontend must be
\n
"
<<
" the request path from frontend must be
\n
"
...
@@ -953,7 +953,7 @@ int main(int argc, char **argv)
...
@@ -953,7 +953,7 @@ int main(int argc, char **argv)
}
}
if
(
get_config
()
->
syslog
)
{
if
(
get_config
()
->
syslog
)
{
openlog
(
"
shr
px"
,
LOG_NDELAY
|
LOG_NOWAIT
|
LOG_PID
,
openlog
(
"
nghtt
px"
,
LOG_NDELAY
|
LOG_NOWAIT
|
LOG_PID
,
get_config
()
->
syslog_facility
);
get_config
()
->
syslog_facility
);
mod_config
()
->
use_syslog
=
true
;
mod_config
()
->
use_syslog
=
true
;
}
}
...
...
src/shrpx_http.cc
View file @
5ccf647d
...
@@ -106,7 +106,7 @@ std::string create_via_header_value(int major, int minor)
...
@@ -106,7 +106,7 @@ std::string create_via_header_value(int major, int minor)
hdrs
+=
static_cast
<
char
>
(
major
+
'0'
);
hdrs
+=
static_cast
<
char
>
(
major
+
'0'
);
hdrs
+=
"."
;
hdrs
+=
"."
;
hdrs
+=
static_cast
<
char
>
(
minor
+
'0'
);
hdrs
+=
static_cast
<
char
>
(
minor
+
'0'
);
hdrs
+=
"
shr
px"
;
hdrs
+=
"
nghtt
px"
;
return
hdrs
;
return
hdrs
;
}
}
...
...
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