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

Function clientInstallAsyncWriteHandler

src/networking.cpp:265–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void clientInstallAsyncWriteHandler(client *c) {
266 serverAssert(GlobalLocksAcquired());
267 if (!(c->fPendingAsyncWrite)) {
268 c->fPendingAsyncWrite = TRUE;
269 listAddNodeHead(serverTL->clients_pending_asyncwrite,c);
270 }
271}
272
273/* This function is called every time we are going to transmit new data
274 * to the client. The behavior is the following:

Callers 2

flushDataMethod · 0.85
prepareClientToWriteFunction · 0.85

Calls 2

GlobalLocksAcquiredFunction · 0.85
listAddNodeHeadFunction · 0.85

Tested by

no test coverage detected