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

Function resetClient

src/keydb-diagnostic-tool.cpp:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static void resetClient(client c) {
301 aeEventLoop *el = CLIENT_GET_EVENTLOOP(c);
302 aeDeleteFileEvent(el,c->context->fd,AE_WRITABLE);
303 aeDeleteFileEvent(el,c->context->fd,AE_READABLE);
304 aeCreateFileEvent(el,c->context->fd,AE_WRITABLE,writeHandler,c);
305 c->written = 0;
306 c->pending = config.pipeline;
307}
308
309static void randomizeClientKey(client c) {
310 size_t i;

Callers 1

readHandlerFunction · 0.70

Calls 2

aeDeleteFileEventFunction · 0.85
aeCreateFileEventFunction · 0.85

Tested by

no test coverage detected