Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
692e70aa
Commit
692e70aa
authored
Sep 28, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move some remote_side info to the end of logs
parent
e3118696
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
http2_rpc_protocol.cpp
src/brpc/policy/http2_rpc_protocol.cpp
+6
-6
No files found.
src/brpc/policy/http2_rpc_protocol.cpp
View file @
692e70aa
...
...
@@ -470,7 +470,7 @@ ParseResult H2Context::Consume(
Socket
::
WriteOptions
wopt
;
wopt
.
ignore_eovercrowded
=
true
;
if
(
socket
->
Write
(
&
buf
,
&
wopt
)
!=
0
)
{
LOG
(
WARNING
)
<<
socket
->
remote_side
()
<<
": Fail to respond http2-client with settings"
;
LOG
(
WARNING
)
<<
"Fail to respond http2-client with settings to "
<<
socket
->
remote_side
()
;
return
MakeParseError
(
PARSE_ERROR_ABSOLUTELY_WRONG
);
}
}
else
{
...
...
@@ -502,7 +502,7 @@ ParseResult H2Context::Consume(
Socket
::
WriteOptions
wopt
;
wopt
.
ignore_eovercrowded
=
true
;
if
(
_socket
->
Write
(
&
sendbuf
,
&
wopt
)
!=
0
)
{
LOG
(
WARNING
)
<<
_socket
->
remote_side
()
<<
": Fail to send RST_STREAM"
;
LOG
(
WARNING
)
<<
"Fail to send RST_STREAM to "
<<
_socket
->
remote_side
()
;
return
MakeParseError
(
PARSE_ERROR_ABSOLUTELY_WRONG
);
}
return
MakeMessage
(
NULL
);
...
...
@@ -516,7 +516,7 @@ ParseResult H2Context::Consume(
Socket
::
WriteOptions
wopt
;
wopt
.
ignore_eovercrowded
=
true
;
if
(
_socket
->
Write
(
&
sendbuf
,
&
wopt
)
!=
0
)
{
LOG
(
WARNING
)
<<
_socket
->
remote_side
()
<<
": Fail to send GOAWAY"
;
LOG
(
WARNING
)
<<
"Fail to send GOAWAY to "
<<
_socket
->
remote_side
()
;
return
MakeParseError
(
PARSE_ERROR_ABSOLUTELY_WRONG
);
}
return
MakeMessage
(
NULL
);
...
...
@@ -748,7 +748,7 @@ H2ParseResult H2StreamContext::OnData(
Socket
::
WriteOptions
wopt
;
wopt
.
ignore_eovercrowded
=
true
;
if
(
_conn_ctx
->
_socket
->
Write
(
&
sendbuf
,
&
wopt
)
!=
0
)
{
LOG
(
WARNING
)
<<
_conn_ctx
->
_socket
->
remote_side
()
<<
": Fail to send WINDOW_UPDATE"
;
LOG
(
WARNING
)
<<
"Fail to send WINDOW_UPDATE to "
<<
_conn_ctx
->
_socket
->
remote_side
()
;
return
MakeH2Error
(
H2_INTERNAL_ERROR
);
}
}
...
...
@@ -881,7 +881,7 @@ H2ParseResult H2Context::OnSettings(
Socket
::
WriteOptions
wopt
;
wopt
.
ignore_eovercrowded
=
true
;
if
(
_socket
->
Write
(
&
sendbuf
,
&
wopt
)
!=
0
)
{
LOG
(
WARNING
)
<<
_socket
->
remote_side
()
<<
": Fail to respond settings with ack"
;
LOG
(
WARNING
)
<<
"Fail to respond settings with ack to "
<<
_socket
->
remote_side
()
;
return
MakeH2Error
(
H2_PROTOCOL_ERROR
);
}
return
MakeH2Message
(
NULL
);
...
...
@@ -921,7 +921,7 @@ H2ParseResult H2Context::OnPing(
Socket
::
WriteOptions
wopt
;
wopt
.
ignore_eovercrowded
=
true
;
if
(
_socket
->
Write
(
&
sendbuf
,
&
wopt
)
!=
0
)
{
LOG
(
WARNING
)
<<
_socket
->
remote_side
()
<<
": Fail to send ack of PING"
;
LOG
(
WARNING
)
<<
"Fail to send ack of PING to "
<<
_socket
->
remote_side
()
;
return
MakeH2Error
(
H2_PROTOCOL_ERROR
);
}
return
MakeH2Message
(
NULL
);
...
...
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