stas 2003/10/06 18:01:52
Modified: src/modules/perl modperl_filter.c Log: printout filter->f in the trace, plus some comments Revision Changes Path 1.71 +10 -3 modperl-2.0/src/modules/perl/modperl_filter.c Index: modperl_filter.c =================================================================== RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_filter.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -u -r1.70 -r1.71 --- modperl_filter.c 23 Sep 2003 23:52:49 -0000 1.70 +++ modperl_filter.c 7 Oct 2003 01:01:52 -0000 1.71 @@ -153,7 +153,7 @@ apr_bucket *bucket = apr_bucket_flush_create(ba); APR_BRIGADE_INSERT_TAIL(bb, bucket); } - + MP_TRACE_f(MP_FUNC, "\n\n\twrite out: %d bytes\n" "\t\tfrom %s\n\t\tto %s filter handler\n", len, @@ -248,11 +248,13 @@ } MP_TRACE_f(MP_FUNC, MP_FILTER_NAME_FORMAT - "new: %s %s filter (0x%lx)\n", + "new: %s %s filter (modperl_filter_t *0x%lx), " + "f (ap_filter_t *0x%lx)\n", MP_FILTER_NAME(f), MP_FILTER_TYPE(filter), MP_FILTER_MODE(filter), - (unsigned long)filter); + (unsigned long)filter, + (unsigned long)filter->f); return filter; } @@ -898,6 +900,11 @@ continue; } + /* XXX: I fail to see where this feature is used, since + * modperl_filter_add_connection doesn't register request + * filters. may be it'll be still useful when the same + * filter handler is configured to run more than once? + * e.g. snooping filter [stas] */ f = filters; while (f) { const char *fname = f->frec->name;