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

Function __redisAsyncHandleConnectFailure

deps/hiredis/async.c:594–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594static void __redisAsyncHandleConnectFailure(redisAsyncContext *ac) {
595 if (ac->onConnect) ac->onConnect(ac, REDIS_ERR);
596 __redisAsyncDisconnect(ac);
597}
598
599/* Internal helper function to detect socket status the first time a read or
600 * write event fires. When connecting was not successful, the connect callback

Callers 1

Calls 1

__redisAsyncDisconnectFunction · 0.85

Tested by

no test coverage detected