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
4877f72a
Commit
4877f72a
authored
Mar 11, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Optimize a bit
parent
274b3a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/shrpx_http2_session.cc
src/shrpx_http2_session.cc
+2
-2
src/shrpx_http2_session.h
src/shrpx_http2_session.h
+3
-3
No files found.
src/shrpx_http2_session.cc
View file @
4877f72a
...
@@ -208,9 +208,9 @@ int Http2Session::disconnect(bool hard) {
...
@@ -208,9 +208,9 @@ int Http2Session::disconnect(bool hard) {
// this object. In order to achieve this, we first swap dconns_ and
// this object. In order to achieve this, we first swap dconns_ and
// streams_. Upstream::on_downstream_reset() may add
// streams_. Upstream::on_downstream_reset() may add
// Http2DownstreamConnection.
// Http2DownstreamConnection.
std
::
set
<
Http2DownstreamConnection
*>
dconns
;
std
::
unordered_
set
<
Http2DownstreamConnection
*>
dconns
;
dconns
.
swap
(
dconns_
);
dconns
.
swap
(
dconns_
);
std
::
set
<
StreamData
*>
streams
;
std
::
unordered_
set
<
StreamData
*>
streams
;
streams
.
swap
(
streams_
);
streams
.
swap
(
streams_
);
std
::
set
<
ClientHandler
*>
handlers
;
std
::
set
<
ClientHandler
*>
handlers
;
...
...
src/shrpx_http2_session.h
View file @
4877f72a
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "shrpx.h"
#include "shrpx.h"
#include <set>
#include <
unordered_
set>
#include <memory>
#include <memory>
#include <openssl/ssl.h>
#include <openssl/ssl.h>
...
@@ -188,8 +188,8 @@ private:
...
@@ -188,8 +188,8 @@ private:
// connection check has started, this timer is started again and
// connection check has started, this timer is started again and
// traps PING ACK timeout.
// traps PING ACK timeout.
ev_timer
connchk_timer_
;
ev_timer
connchk_timer_
;
std
::
set
<
Http2DownstreamConnection
*>
dconns_
;
std
::
unordered_
set
<
Http2DownstreamConnection
*>
dconns_
;
std
::
set
<
StreamData
*>
streams_
;
std
::
unordered_
set
<
StreamData
*>
streams_
;
std
::
function
<
int
(
Http2Session
&
)
>
read_
,
write_
;
std
::
function
<
int
(
Http2Session
&
)
>
read_
,
write_
;
std
::
function
<
int
(
Http2Session
&
)
>
on_read_
,
on_write_
;
std
::
function
<
int
(
Http2Session
&
)
>
on_read_
,
on_write_
;
// Used to parse the response from HTTP proxy
// Used to parse the response from HTTP proxy
...
...
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