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
d465115c
Commit
d465115c
authored
Oct 29, 2019
by
jamesge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a null deref in controller.cpp
parent
46cd9a0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
controller.cpp
src/brpc/controller.cpp
+2
-2
No files found.
src/brpc/controller.cpp
View file @
d465115c
...
...
@@ -830,7 +830,7 @@ void Controller::EndRPC(const CompletionInfo& info) {
<<
info
.
id
<<
" current_cid="
<<
current_id
()
<<
" initial_cid="
<<
_correlation_id
<<
" stream_user_data="
<<
_current_call
.
stream_user_data
<<
" sending_sock="
<<
*
_current_call
.
sending_sock
;
<<
" sending_sock="
<<
_current_call
.
sending_sock
.
get
()
;
}
_current_call
.
OnComplete
(
this
,
ECANCELED
,
false
,
false
);
if
(
_unfinished_call
!=
NULL
)
{
...
...
@@ -1039,7 +1039,7 @@ void Controller::IssueRPC(int64_t start_realtime_us) {
}
// Handle connection type
if
(
_connection_type
==
CONNECTION_TYPE_SINGLE
||
_stream_creator
!=
NULL
)
{
// let user decides the sending_sock
et
_stream_creator
!=
NULL
)
{
// let user decides the sending_sock
// in the callback(according to connection_type) directly
_current_call
.
sending_sock
.
reset
(
tmp_sock
.
release
());
// TODO(gejun): Setting preferred index of single-connected socket
...
...
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