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
b9b58c78
Commit
b9b58c78
authored
7 years ago
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Avoid extra TLS handshake calls
parent
aa1eec46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
src/shrpx_client_handler.cc
src/shrpx_client_handler.cc
+0
-4
src/shrpx_http2_session.cc
src/shrpx_http2_session.cc
+2
-9
No files found.
src/shrpx_client_handler.cc
View file @
b9b58c78
...
...
@@ -96,10 +96,6 @@ void readcb(struct ev_loop *loop, ev_io *w, int revents) {
delete
handler
;
return
;
}
if
(
handler
->
do_write
()
!=
0
)
{
delete
handler
;
return
;
}
}
}
// namespace
...
...
This diff is collapsed.
Click to expand it.
src/shrpx_http2_session.cc
View file @
b9b58c78
...
...
@@ -138,13 +138,6 @@ void readcb(struct ev_loop *loop, ev_io *w, int revents) {
return
;
}
http2session
->
connection_alive
();
rv
=
http2session
->
do_write
();
if
(
rv
!=
0
)
{
delete
http2session
;
return
;
}
}
}
// namespace
...
...
@@ -1995,7 +1988,7 @@ int Http2Session::read_clear() {
auto
nread
=
conn_
.
read_clear
(
buf
.
data
(),
buf
.
size
());
if
(
nread
==
0
)
{
return
0
;
return
write_clear
()
;
}
if
(
nread
<
0
)
{
...
...
@@ -2099,7 +2092,7 @@ int Http2Session::read_tls() {
auto
nread
=
conn_
.
read_tls
(
buf
.
data
(),
buf
.
size
());
if
(
nread
==
0
)
{
return
0
;
return
write_tls
()
;
}
if
(
nread
<
0
)
{
...
...
This diff is collapsed.
Click to expand it.
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