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

Function connTLSSetReadHandler

src/tls.cpp:1153–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151}
1152
1153int connTLSSetReadHandler(connection *conn, ConnectionCallbackFunc func, bool fThreadSafe) {
1154 serverAssert(((tls_connection*)conn)->el == serverTL->el);
1155 conn->read_handler = func;
1156
1157 if (fThreadSafe)
1158 conn->flags |= CONN_FLAG_READ_THREADSAFE;
1159 else
1160 conn->flags &= ~CONN_FLAG_READ_THREADSAFE;
1161
1162 updateSSLEvent((tls_connection *) conn);
1163 return C_OK;
1164}
1165
1166static void setBlockingTimeout(tls_connection *conn, long long timeout) {
1167 anetBlock(NULL, conn->c.fd);

Callers

nothing calls this directly

Calls 1

updateSSLEventFunction · 0.85

Tested by

no test coverage detected