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

Function x_pre_connection

modules/examples/mod_example_hooks.c:1115–1127  ·  view source on GitHub ↗

* This routine is called just after the server accepts the connection, * but before it is handed off to a protocol module to be served. The point * of this hook is to allow modules an opportunity to modify the connection * as soon as possible. The core server uses this phase to setup the * connection record based on the type of connection that is being used. * * This is a RUN_ALL hook. */

Source from the content-addressed store, hash-verified

1113 * This is a RUN_ALL hook.
1114 */
1115static int x_pre_connection(conn_rec *c, void *csd)
1116{
1117 char *note;
1118
1119 /*
1120 * Log the call and exit.
1121 */
1122 note = apr_psprintf(c->pool, "x_pre_connection(c = %pp, p = %pp)",
1123 (void*) c, (void*) c->pool);
1124 trace_connection(c, note);
1125
1126 return OK;
1127}
1128
1129/* This routine is used to actually process the connection that was received.
1130 * Only protocol modules should implement this hook, as it gives them an

Callers

nothing calls this directly

Calls 1

trace_connectionFunction · 0.85

Tested by

no test coverage detected