Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7ea870c0
Commit
7ea870c0
authored
Nov 19, 2009
by
antirez
Browse files
Use writev(2) if glue output buffers is disabled
parent
89ee361e
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
7ea870c0
...
@@ -1385,14 +1385,13 @@ static void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask)
...
@@ -1385,14 +1385,13 @@ static void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask)
/* Use writev() if we have enough buffers to send */
/* Use writev() if we have enough buffers to send */
#if 0
if
(
!
server
.
glueoutputbuf
&&
if (
listLength(c->reply) > REDIS_WRITEV_THRESHOLD &&
listLength
(
c
->
reply
)
>
REDIS_WRITEV_THRESHOLD
&&
!(c->flags & REDIS_MASTER))
!
(
c
->
flags
&
REDIS_MASTER
))
{
{
sendReplyToClientWritev
(
el
,
fd
,
privdata
,
mask
);
sendReplyToClientWritev
(
el
,
fd
,
privdata
,
mask
);
return
;
return
;
}
}
#endif
while
(
listLength
(
c
->
reply
))
{
while
(
listLength
(
c
->
reply
))
{
if
(
server
.
glueoutputbuf
&&
listLength
(
c
->
reply
)
>
1
)
if
(
server
.
glueoutputbuf
&&
listLength
(
c
->
reply
)
>
1
)
...
...
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