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
7d894e55
Unverified
Commit
7d894e55
authored
May 23, 2019
by
Ge Jun
Committed by
GitHub
May 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #773 from zyearn/fix_backup_using_h2
Fix backup req using h2
parents
8fe8640e
7384bf7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
controller.cpp
src/brpc/controller.cpp
+1
-1
http2_rpc_protocol.cpp
src/brpc/policy/http2_rpc_protocol.cpp
+2
-2
stream_creator.h
src/brpc/stream_creator.h
+2
-2
No files found.
src/brpc/controller.cpp
View file @
7d894e55
...
...
@@ -690,7 +690,7 @@ inline bool does_error_affect_main_socket(int error_code) {
error_code
==
EINVAL
/*returned by connect "0.0.0.1"*/
;
}
//Note: A RPC call is probably consisted by se
r
veral individual Calls such as
//Note: A RPC call is probably consisted by several individual Calls such as
// retries and backup requests. This method simply cares about the error of
// this very Call (specified by |error_code|) rather than the error of the
// entire RPC (specified by c->FailedInline()).
...
...
src/brpc/policy/http2_rpc_protocol.cpp
View file @
7d894e55
...
...
@@ -1449,10 +1449,10 @@ private:
void
H2UnsentRequest
::
DestroyStreamUserData
(
SocketUniquePtr
&
sending_sock
,
Controller
*
cntl
,
int
/*error_code*/
,
int
error_code
,
bool
/*end_of_rpc*/
)
{
RemoveRefOnQuit
deref_self
(
this
);
if
(
sending_sock
!=
NULL
&&
cntl
->
ErrorCode
()
!=
0
)
{
if
(
sending_sock
!=
NULL
&&
error_code
!=
0
)
{
CHECK_EQ
(
cntl
,
_cntl
);
std
::
unique_lock
<
butil
::
Mutex
>
mu
(
_mutex
);
_cntl
=
NULL
;
...
...
src/brpc/stream_creator.h
View file @
7d894e55
...
...
@@ -66,8 +66,8 @@ public:
// Params:
// sending_sock: The socket chosen by OnCreatingStream(), if an error
// happens during choosing, the enclosed socket is NULL.
// cntl: contexts of the RPC
// error_code: Use this instead of cntl->ErrorCode()
// cntl: contexts of the RPC
.
// error_code: Use this instead of cntl->ErrorCode()
.
// end_of_rpc: true if the RPC is about to destroyed.
virtual
void
DestroyStreamUserData
(
SocketUniquePtr
&
sending_sock
,
Controller
*
cntl
,
...
...
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