httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Farber <alexander.far...@gmail.com>
Subject Re: How to access client socket from a protocol handler
Date Sat, 23 Oct 2010 22:04:48 GMT
No, SetHandler should be ok, because mod_echo works fine.

I've added the port number to my logs:

ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, conn->base_server,
            "served socket policy to %s via %d",
             conn->remote_ip, conn->base_server->port);

And now I see in the error_log:

 [notice] served socket policy to 127.0.0.1 via 843
 [notice] served socket policy to 127.0.0.1 via 80

- depending on which port I called the "telnet localhost XXX" with.

So should I check for the port != 843 and return DECLINED?

It seems a bit awkward to me

Regards
Alex

Mime
View raw message