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
4941431b
Unverified
Commit
4941431b
authored
Jul 21, 2020
by
jamesge
Committed by
GitHub
Jul 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1161 from heyuyi0906/fix_h2_req_check_failed
fix h2_req check failed when retry after ELIMIT error
parents
e9f6a58f
4f92e064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
channel.cpp
src/brpc/channel.cpp
+9
-9
No files found.
src/brpc/channel.cpp
View file @
4941431b
...
...
@@ -464,6 +464,15 @@ void Channel::CallMethod(const google::protobuf::MethodDescriptor* method,
// Share the lb with controller.
cntl
->
_lb
=
_lb
;
// Ensure that serialize_request is done before pack_request in all
// possible executions, including:
// HandleSendFailed => OnVersionedRPCReturned => IssueRPC(pack_request)
_serialize_request
(
&
cntl
->
_request_buf
,
cntl
,
request
);
if
(
cntl
->
FailedInline
())
{
// Handle failures caused by serialize_request, and these error_codes
// should be excluded from the retry_policy.
return
cntl
->
HandleSendFailed
();
}
if
(
FLAGS_usercode_in_pthread
&&
done
!=
NULL
&&
TooManyUserCode
())
{
...
...
@@ -471,15 +480,6 @@ void Channel::CallMethod(const google::protobuf::MethodDescriptor* method,
"-usercode_in_pthread is on"
);
return
cntl
->
HandleSendFailed
();
}
if
(
cntl
->
FailedInline
())
{
// probably failed before RPC, not called until all necessary
// parameters in `cntl' are set.
return
cntl
->
HandleSendFailed
();
}
_serialize_request
(
&
cntl
->
_request_buf
,
cntl
,
request
);
if
(
cntl
->
FailedInline
())
{
return
cntl
->
HandleSendFailed
();
}
if
(
cntl
->
_request_stream
!=
INVALID_STREAM_ID
)
{
// Currently we cannot handle retry and backup request correctly
...
...
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