httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bloom" <>
Subject RE: questions from my trivial patch
Date Sat, 15 Jun 2002 01:43:02 GMT
> From: Brian Degenhardt []
> The functions for ap_hook_open_logs, ap_hook_post_config, and
> ap_hook_pre_config will fail if DECLINE is returned.  Is that
> intentional?

Yes.  This is because those are configuration phases.  If a module tries
to do something in those phases and can't, then the server should not
continue to run, because something wasn't configured properly.  If the
server did continue, then it would most likely not behave the way it was
expected to.

> In the quick_handler, returning HTTP_mumble will result in that status
> being returned in a real request, but it will fallback to the real
> handler in a subrequest.  Is that intentional?

I don't know, but it sounds completely incorrect.  Bill, can you shed
any light here?

> What's the difference between adding your filters inside your
> ap_hook_insert_filter hook versus calling ap_register_*_filter right
> inside of the register_hooks callback?

You are confusing registering and adding hooks.  You should always
register the hooks in register_hooks, but adding the hook to the request
should be done during request processing.  Basically registering a
filter lets the server know that the filter exists, but it doesn't
enable it for any requests.  Adding the filter enables it for that


View raw message