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
fec566aa
Commit
fec566aa
authored
Aug 01, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Send out data in output buffer before HTTP2/SPDY session tear down
parent
8cb92fc2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
src/HttpServer.cc
src/HttpServer.cc
+4
-2
src/nghttp.cc
src/nghttp.cc
+4
-2
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+4
-2
src/shrpx_spdy_session.cc
src/shrpx_spdy_session.cc
+4
-2
src/shrpx_spdy_upstream.cc
src/shrpx_spdy_upstream.cc
+4
-2
No files found.
src/HttpServer.cc
View file @
fec566aa
...
...
@@ -315,7 +315,8 @@ int Http2Handler::on_read()
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session_
)
==
0
&&
nghttp2_session_want_write
(
session_
)
==
0
)
{
nghttp2_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
bev_
))
==
0
)
{
rv
=
-
1
;
}
}
...
...
@@ -331,7 +332,8 @@ int Http2Handler::on_write()
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session_
)
==
0
&&
nghttp2_session_want_write
(
session_
)
==
0
)
{
nghttp2_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
bev_
))
==
0
)
{
rv
=
-
1
;
}
}
...
...
src/nghttp.cc
View file @
fec566aa
...
...
@@ -508,7 +508,8 @@ struct HttpClient {
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session
)
==
0
&&
nghttp2_session_want_write
(
session
)
==
0
)
{
nghttp2_session_want_write
(
session
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
bev
))
==
0
)
{
rv
=
-
1
;
}
}
...
...
@@ -524,7 +525,8 @@ struct HttpClient {
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session
)
==
0
&&
nghttp2_session_want_write
(
session
)
==
0
)
{
nghttp2_session_want_write
(
session
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
bev
))
==
0
)
{
rv
=
-
1
;
}
}
...
...
src/shrpx_http2_upstream.cc
View file @
fec566aa
...
...
@@ -403,7 +403,8 @@ int Http2Upstream::on_read()
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session_
)
==
0
&&
nghttp2_session_want_write
(
session_
)
==
0
)
{
nghttp2_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
handler_
->
get_bev
()))
==
0
)
{
if
(
LOG_ENABLED
(
INFO
))
{
ULOG
(
INFO
,
this
)
<<
"No more read/write for this SPDY session"
;
}
...
...
@@ -428,7 +429,8 @@ int Http2Upstream::send()
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session_
)
==
0
&&
nghttp2_session_want_write
(
session_
)
==
0
)
{
nghttp2_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
handler_
->
get_bev
()))
==
0
)
{
if
(
LOG_ENABLED
(
INFO
))
{
ULOG
(
INFO
,
this
)
<<
"No more read/write for this SPDY session"
;
}
...
...
src/shrpx_spdy_session.cc
View file @
fec566aa
...
...
@@ -1109,7 +1109,8 @@ int SpdySession::on_read()
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session_
)
==
0
&&
nghttp2_session_want_write
(
session_
)
==
0
)
{
nghttp2_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
bev_
))
==
0
)
{
if
(
LOG_ENABLED
(
INFO
))
{
SSLOG
(
INFO
,
this
)
<<
"No more read/write for this session"
;
}
...
...
@@ -1133,7 +1134,8 @@ int SpdySession::send()
}
if
(
rv
==
0
)
{
if
(
nghttp2_session_want_read
(
session_
)
==
0
&&
nghttp2_session_want_write
(
session_
)
==
0
)
{
nghttp2_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
bev_
))
==
0
)
{
if
(
LOG_ENABLED
(
INFO
))
{
SSLOG
(
INFO
,
this
)
<<
"No more read/write for this session"
;
}
...
...
src/shrpx_spdy_upstream.cc
View file @
fec566aa
...
...
@@ -407,7 +407,8 @@ int SpdyUpstream::on_read()
}
if
(
rv
==
0
)
{
if
(
spdylay_session_want_read
(
session_
)
==
0
&&
spdylay_session_want_write
(
session_
)
==
0
)
{
spdylay_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
handler_
->
get_bev
()))
==
0
)
{
if
(
LOG_ENABLED
(
INFO
))
{
ULOG
(
INFO
,
this
)
<<
"No more read/write for this SPDY session"
;
}
...
...
@@ -432,7 +433,8 @@ int SpdyUpstream::send()
}
if
(
rv
==
0
)
{
if
(
spdylay_session_want_read
(
session_
)
==
0
&&
spdylay_session_want_write
(
session_
)
==
0
)
{
spdylay_session_want_write
(
session_
)
==
0
&&
evbuffer_get_length
(
bufferevent_get_output
(
handler_
->
get_bev
()))
==
0
)
{
if
(
LOG_ENABLED
(
INFO
))
{
ULOG
(
INFO
,
this
)
<<
"No more read/write for this SPDY session"
;
}
...
...
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