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
41e72064
Commit
41e72064
authored
Jan 21, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Log error in INFO level when frame cannot be sent
parent
f302f1a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
11 deletions
+17
-11
src/shrpx_http2_session.cc
src/shrpx_http2_session.cc
+6
-4
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+6
-4
src/shrpx_spdy_upstream.cc
src/shrpx_spdy_upstream.cc
+5
-3
No files found.
src/shrpx_http2_session.cc
View file @
41e72064
...
...
@@ -1142,10 +1142,12 @@ int on_frame_not_send_callback(nghttp2_session *session,
const
nghttp2_frame
*
frame
,
int
lib_error_code
,
void
*
user_data
)
{
auto
http2session
=
static_cast
<
Http2Session
*>
(
user_data
);
SSLOG
(
WARN
,
http2session
)
<<
"Failed to send control frame type="
<<
static_cast
<
uint32_t
>
(
frame
->
hd
.
type
)
<<
"lib_error_code="
<<
lib_error_code
<<
":"
<<
nghttp2_strerror
(
lib_error_code
);
if
(
LOG_ENABLED
(
INFO
))
{
SSLOG
(
INFO
,
http2session
)
<<
"Failed to send control frame type="
<<
static_cast
<
uint32_t
>
(
frame
->
hd
.
type
)
<<
"lib_error_code="
<<
lib_error_code
<<
":"
<<
nghttp2_strerror
(
lib_error_code
);
}
if
(
frame
->
hd
.
type
==
NGHTTP2_HEADERS
&&
frame
->
headers
.
cat
==
NGHTTP2_HCAT_REQUEST
)
{
// To avoid stream hanging around, flag Downstream::MSG_RESET and
...
...
src/shrpx_http2_upstream.cc
View file @
41e72064
...
...
@@ -553,10 +553,12 @@ int on_frame_not_send_callback(nghttp2_session *session,
const
nghttp2_frame
*
frame
,
int
lib_error_code
,
void
*
user_data
)
{
auto
upstream
=
static_cast
<
Http2Upstream
*>
(
user_data
);
ULOG
(
WARN
,
upstream
)
<<
"Failed to send control frame type="
<<
static_cast
<
uint32_t
>
(
frame
->
hd
.
type
)
<<
", lib_error_code="
<<
lib_error_code
<<
":"
<<
nghttp2_strerror
(
lib_error_code
);
if
(
LOG_ENABLED
(
INFO
))
{
ULOG
(
INFO
,
upstream
)
<<
"Failed to send control frame type="
<<
static_cast
<
uint32_t
>
(
frame
->
hd
.
type
)
<<
", lib_error_code="
<<
lib_error_code
<<
":"
<<
nghttp2_strerror
(
lib_error_code
);
}
if
(
frame
->
hd
.
type
==
NGHTTP2_HEADERS
&&
frame
->
headers
.
cat
==
NGHTTP2_HCAT_RESPONSE
&&
lib_error_code
!=
NGHTTP2_ERR_STREAM_CLOSED
&&
...
...
src/shrpx_spdy_upstream.cc
View file @
41e72064
...
...
@@ -343,9 +343,11 @@ void on_ctrl_not_send_callback(spdylay_session *session,
spdylay_frame_type
type
,
spdylay_frame
*
frame
,
int
error_code
,
void
*
user_data
)
{
auto
upstream
=
static_cast
<
SpdyUpstream
*>
(
user_data
);
ULOG
(
WARN
,
upstream
)
<<
"Failed to send control frame type="
<<
type
<<
", error_code="
<<
error_code
<<
":"
<<
spdylay_strerror
(
error_code
);
if
(
LOG_ENABLED
(
INFO
))
{
ULOG
(
INFO
,
upstream
)
<<
"Failed to send control frame type="
<<
type
<<
", error_code="
<<
error_code
<<
":"
<<
spdylay_strerror
(
error_code
);
}
if
(
type
==
SPDYLAY_SYN_REPLY
&&
error_code
!=
SPDYLAY_ERR_STREAM_CLOSED
&&
error_code
!=
SPDYLAY_ERR_STREAM_CLOSING
)
{
// To avoid stream hanging around, issue RST_STREAM.
...
...
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