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
41b21f79
Commit
41b21f79
authored
Jul 26, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
18f450fd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
48 deletions
+48
-48
src/Makefile.am
src/Makefile.am
+1
-1
src/shrpx_client_handler.cc
src/shrpx_client_handler.cc
+3
-3
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+41
-41
src/shrpx_http2_upstream.h
src/shrpx_http2_upstream.h
+3
-3
No files found.
src/Makefile.am
View file @
41b21f79
...
...
@@ -75,7 +75,7 @@ SHRPX_SRCS = \
shrpx_listen_handler.cc shrpx_listen_handler.h
\
shrpx_client_handler.cc shrpx_client_handler.h
\
shrpx_upstream.h
\
shrpx_
spdy_upstream.cc shrpx_spdy
_upstream.h
\
shrpx_
http2_upstream.cc shrpx_http2
_upstream.h
\
shrpx_https_upstream.cc shrpx_https_upstream.h
\
shrpx_downstream_queue.cc shrpx_downstream_queue.h
\
shrpx_downstream.cc shrpx_downstream.h
\
...
...
src/shrpx_client_handler.cc
View file @
41b21f79
...
...
@@ -28,7 +28,7 @@
#include <cerrno>
#include "shrpx_upstream.h"
#include "shrpx_
spdy
_upstream.h"
#include "shrpx_
http2
_upstream.h"
#include "shrpx_https_upstream.h"
#include "shrpx_config.h"
#include "shrpx_http_downstream_connection.h"
...
...
@@ -140,7 +140,7 @@ ClientHandler::ClientHandler(bufferevent *bev, int fd, SSL *ssl,
upstream_
=
new
HttpsUpstream
(
this
);
}
else
{
// no-TLS SPDY
upstream_
=
new
Spdy
Upstream
(
this
);
upstream_
=
new
Http2
Upstream
(
this
);
}
set_bev_cb
(
upstream_readcb
,
upstream_writecb
,
upstream_eventcb
);
}
...
...
@@ -210,7 +210,7 @@ int ClientHandler::validate_next_proto()
CLOG
(
INFO
,
this
)
<<
"The negotiated next protocol: "
<<
proto
;
}
if
(
proto
==
NGHTTP2_PROTO_VERSION_ID
)
{
upstream_
=
new
Spdy
Upstream
(
this
);
upstream_
=
new
Http2
Upstream
(
this
);
return
0
;
}
}
else
{
...
...
src/shrpx_
spdy
_upstream.cc
→
src/shrpx_
http2
_upstream.cc
View file @
41b21f79
This diff is collapsed.
Click to expand it.
src/shrpx_
spdy
_upstream.h
→
src/shrpx_
http2
_upstream.h
View file @
41b21f79
...
...
@@ -36,10 +36,10 @@ namespace shrpx {
class
ClientHandler
;
class
Spdy
Upstream
:
public
Upstream
{
class
Http2
Upstream
:
public
Upstream
{
public:
Spdy
Upstream
(
ClientHandler
*
handler
);
virtual
~
Spdy
Upstream
();
Http2
Upstream
(
ClientHandler
*
handler
);
virtual
~
Http2
Upstream
();
virtual
int
on_read
();
virtual
int
on_write
();
virtual
int
on_event
();
...
...
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