mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Return ASAP from checkClientOutputBufferLimits() if c->reply_bytes is zero.
This commit is contained in:
parent
48a32944e6
commit
6e09ad1c15
@ -1329,7 +1329,7 @@ int checkClientOutputBufferLimits(redisClient *c) {
|
|||||||
* called from contexts where the client can't be freed safely, i.e. from the
|
* called from contexts where the client can't be freed safely, i.e. from the
|
||||||
* lower level functions pushing data inside the client output buffers. */
|
* lower level functions pushing data inside the client output buffers. */
|
||||||
void asyncCloseClientOnOutputBufferLimitReached(redisClient *c) {
|
void asyncCloseClientOnOutputBufferLimitReached(redisClient *c) {
|
||||||
if (c->flags & REDIS_CLOSE_ASAP) return;
|
if (c->reply_bytes == 0 || c->flags & REDIS_CLOSE_ASAP) return;
|
||||||
if (checkClientOutputBufferLimits(c)) {
|
if (checkClientOutputBufferLimits(c)) {
|
||||||
sds client = getClientInfoString(c);
|
sds client = getClientInfoString(c);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user