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

Function h2_c2_hook_process

modules/http2/h2_c2.c:902–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902static int h2_c2_hook_process(conn_rec* c)
903{
904 h2_conn_ctx_t *ctx;
905
906 if (!c->master) {
907 return DECLINED;
908 }
909
910 ctx = h2_conn_ctx_get(c);
911 if (ctx->stream_id) {
912 ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
913 "h2_h2, processing request directly");
914 c2_process(ctx, c);
915 return DONE;
916 }
917 else {
918 ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
919 "secondary_conn(%ld): no h2 stream assing?", c->id);
920 }
921 return DECLINED;
922}
923
924void h2_c2_register_hooks(void)
925{

Callers

nothing calls this directly

Calls 1

c2_processFunction · 0.85

Tested by

no test coverage detected