httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John David Duncan <...@sun.com>
Subject Why is r->handler a garbled string?
Date Tue, 30 Dec 2008 05:06:06 GMT
Hi,

I have a module that runs correctly on some platforms (e.g. Apache  
2.2.8 on Mac OS X 10.5) but not on others (e.g. Apache 2.2.9 on  
OpenSolaris).

The problem revolves around the "handler name check" in a handler:

    if(strcmp(r->handler,my_name)) return DECLINED;

On the problem machine, the name check fails and the handler never  
runs.  In the log from the good platform, I see this:

[Mon Dec 29 20:39:13 2008] [debug] handlers.cc(46): r->handler is "ndb- 
cluster"

But on the bad platform I see this instead:

[Mon Dec 29 20:46:25 2008] [debug] handlers.cc(46): r->handler is "P 
\xfa&\b\x0c"

Does anyone have any idea how I might start to unravel this?

Thanks,

JD



Mime
View raw message