MCPcopy Create free account
hub / github.com/F-Stack/f-stack / unprotectClient

Function unprotectClient

app/redis-6.2.6/src/networking.c:1707–1715  ·  view source on GitHub ↗

This will undo the client protection done by protectClient() */

Source from the content-addressed store, hash-verified

1705
1706/* This will undo the client protection done by protectClient() */
1707void unprotectClient(client *c) {
1708 if (c->flags & CLIENT_PROTECTED) {
1709 c->flags &= ~CLIENT_PROTECTED;
1710 if (c->conn) {
1711 connSetReadHandler(c->conn,readQueryFromClient);
1712 if (clientHasPendingReplies(c)) clientInstallWriteHandler(c);
1713 }
1714 }
1715}
1716
1717/* Like processMultibulkBuffer(), but for the inline protocol instead of RESP,
1718 * this function consumes the client query buffer and creates a command ready

Callers 2

evalGenericCommandFunction · 0.85
debugCommandFunction · 0.85

Calls 3

connSetReadHandlerFunction · 0.85
clientHasPendingRepliesFunction · 0.85

Tested by

no test coverage detected