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

Function tlsProcessPendingData

src/tls.cpp:1292–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290}
1291
1292int tlsProcessPendingData() {
1293 listIter li;
1294 listNode *ln;
1295 serverAssert(!GlobalLocksAcquired());
1296
1297 int processed = listLength(pending_list);
1298 listRewind(pending_list,&li);
1299 while((ln = listNext(&li))) {
1300 tls_connection *conn = (tls_connection*)listNodeValue(ln);
1301 tlsHandleEvent(conn, AE_READABLE);
1302 }
1303 return processed;
1304}
1305
1306/* Fetch the peer certificate used for authentication on the specified
1307 * connection and return it as a PEM-encoded sds.

Callers 1

beforeSleepFunction · 0.85

Calls 4

GlobalLocksAcquiredFunction · 0.85
listRewindFunction · 0.85
listNextFunction · 0.85
tlsHandleEventFunction · 0.85

Tested by

no test coverage detected