MCPcopy Create free account
hub / github.com/apache/httpd / ap_pre_connection

Function ap_pre_connection

server/core.c:5361–5384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5359}
5360
5361AP_DECLARE(int) ap_pre_connection(conn_rec *c, void *csd)
5362{
5363 int rc = OK;
5364
5365 rc = ap_run_pre_connection(c, csd);
5366 if (rc != OK && rc != DONE) {
5367 c->aborted = 1;
5368 /*
5369 * In case we errored, the pre_connection hook of the core
5370 * module maybe did not run (it is APR_HOOK_REALLY_LAST) and
5371 * hence we missed to
5372 *
5373 * - Put the socket in c->conn_config
5374 * - Setup core output and input filters
5375 * - Set socket options and timeouts
5376 *
5377 * Hence call it in this case.
5378 */
5379 if (!ap_get_conn_socket(c)) {
5380 core_pre_connection(c, csd);
5381 }
5382 }
5383 return rc;
5384}
5385
5386AP_DECLARE(int) ap_state_query(int query)
5387{

Callers 2

ap_process_connectionFunction · 0.85
process_socketFunction · 0.85

Calls 2

ap_get_conn_socketFunction · 0.85
core_pre_connectionFunction · 0.85

Tested by

no test coverage detected