httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <>
Subject Re: How to access client socket from a protocol handler
Date Sat, 23 Oct 2010 22:08:17 GMT
On Sun, Oct 24, 2010 at 00:00, Alexander Farber
<> wrote:
> I've created a module using bb (the source code at the bottom)
> and it suffers from the same problem (hijacks the port 80 too).
> Could it be that "SetHandler" is a wrong directive for protocol handler?

The wrong directive, yes. SetHandler handlers work at the request
level, protocol handlers at the connection level.

> Also, I do not know, how to check that the
> "handler is enabled for the current vhost".

>From mod_echo.c:

  static int process_echo_connection(conn_rec *c)
      EchoConfig *pConfig =
ap_get_module_config(c->base_server->module_config, &echo_module);
      if (!pConfig->bEnabled) {
          return DECLINED;

Hope that helps.

View raw message