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
becc206b
Commit
becc206b
authored
Jan 19, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Don't show warning WINDOW_UPDATE failure for HTTP/1 downstream
parent
d0968ea6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
src/shrpx_http2_downstream_connection.cc
src/shrpx_http2_downstream_connection.cc
+5
-1
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+2
-3
src/shrpx_http_downstream_connection.cc
src/shrpx_http_downstream_connection.cc
+2
-1
No files found.
src/shrpx_http2_downstream_connection.cc
View file @
becc206b
...
...
@@ -473,7 +473,11 @@ int Http2DownstreamConnection::resume_read(IOCtrlReason reason)
}
}
}
return
(
rv1
==
0
&&
rv2
==
0
)
?
0
:
-
1
;
if
(
rv1
==
0
&&
rv2
==
0
)
{
return
0
;
}
DLOG
(
WARNING
,
this
)
<<
"Sending WINDOW_UPDATE failed"
;
return
-
1
;
}
int
Http2DownstreamConnection
::
on_read
()
...
...
src/shrpx_http2_upstream.cc
View file @
becc206b
...
...
@@ -905,9 +905,8 @@ ssize_t downstream_data_read_callback(nghttp2_session *session,
// Send WINDOW_UPDATE before buffer is empty to avoid delay because
// of RTT.
if
(
*
eof
!=
1
&&
evbuffer_get_length
(
body
)
<
SHRPX_HTTP2_UPSTREAM_OUTPUT_UPPER_THRES
&&
downstream
->
resume_read
(
SHRPX_NO_BUFFER
)
!=
0
)
{
DLOG
(
WARNING
,
downstream
)
<<
"Sending WINDOW_UPDATE failed"
;
evbuffer_get_length
(
body
)
<
SHRPX_HTTP2_UPSTREAM_OUTPUT_UPPER_THRES
)
{
downstream
->
resume_read
(
SHRPX_NO_BUFFER
);
}
if
(
nread
==
0
&&
*
eof
!=
1
)
{
return
NGHTTP2_ERR_DEFERRED
;
...
...
src/shrpx_http_downstream_connection.cc
View file @
becc206b
...
...
@@ -359,7 +359,8 @@ void HttpDownstreamConnection::pause_read(IOCtrlReason reason)
int
HttpDownstreamConnection
::
resume_read
(
IOCtrlReason
reason
)
{
return
ioctrl_
.
resume_read
(
reason
)
?
0
:
-
1
;
ioctrl_
.
resume_read
(
reason
);
return
0
;
}
void
HttpDownstreamConnection
::
force_resume_read
()
...
...
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