MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / redisAsyncRead

Function redisAsyncRead

deps/hiredis/async.c:627–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627void redisAsyncRead(redisAsyncContext *ac) {
628 redisContext *c = &(ac->c);
629
630 if (redisBufferRead(c) == REDIS_ERR) {
631 __redisAsyncDisconnect(ac);
632 } else {
633 /* Always re-schedule reads */
634 _EL_ADD_READ(ac);
635 redisProcessCallbacks(ac);
636 }
637}
638
639/* This function should be called when the socket is readable.
640 * It processes all replies that can be read and executes their callbacks.

Callers

nothing calls this directly

Calls 3

redisBufferReadFunction · 0.85
__redisAsyncDisconnectFunction · 0.85
redisProcessCallbacksFunction · 0.85

Tested by

no test coverage detected