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
ad00e356
Commit
ad00e356
authored
Dec 09, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis_server_protocol: fix sendbuf not setting bug
parent
684f4ed1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
redis_protocol.cpp
src/brpc/policy/redis_protocol.cpp
+2
-4
No files found.
src/brpc/policy/redis_protocol.cpp
View file @
ad00e356
...
...
@@ -124,6 +124,7 @@ int ConsumeTask(RedisConnContext* ctx, RedisTask* task, butil::IOBuf* sendbuf) {
if
(
!
ParseArgs
(
task
->
input_message
,
&
args
))
{
LOG
(
ERROR
)
<<
"ERR command not string"
;
output
.
SetError
(
"ERR command not string"
);
output
.
SerializeToIOBuf
(
sendbuf
);
return
-
1
;
}
if
(
ctx
->
handler_continue
)
{
...
...
@@ -172,10 +173,7 @@ int Consume(void* ctx, bthread::TaskIterator<RedisTask*>& iter) {
if
(
has_err
)
{
continue
;
}
if
(
ConsumeTask
(
qctx
,
*
iter
,
&
sendbuf
)
!=
0
)
{
has_err
=
true
;
continue
;
}
ConsumeTask
(
qctx
,
*
iter
,
&
sendbuf
);
// If there are too many tasks to execute, latency of the front
// responses will be increased by waiting the following tasks to
// be completed. To prevent this, if the current buf size is greater
...
...
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