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

Function connKeepAlive

src/connection.cpp:441–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441int connKeepAlive(connection *conn, int interval) {
442 if (conn->fd == -1) return C_ERR;
443 return anetKeepAlive(NULL, conn->fd, interval);
444}
445
446int connSendTimeout(connection *conn, long long ms) {
447 return anetSendTimeout(NULL, conn->fd, ms);

Callers 2

clusterAcceptHandlerFunction · 0.85
createClientFunction · 0.85

Calls 1

anetKeepAliveFunction · 0.85

Tested by

no test coverage detected