httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Dudov <>
Subject Re: [ANN] libapreq2-2.01-dev-rc1 release candidate #1
Date Thu, 06 Nov 2003 23:10:39 GMT

Joe Schaefer wrote:

>Vladimir Dudov <> writes:
>>I run into a strange problem...
>>My module calls apreq_request(r, NULL) from insert_filter handler.
>>Yesterday worked Ok (client received normal responds and
>>I was able to get request parameters).
>>But today browsers started getting "400 Bad request". As soon as I
>>disable browser gets normal data.
>>What's wrong?
>It's very hard to say at this point.  You need to provide more
>data points for us to make an intelligent guess.
>  1) Do the bad requests go away after restarting the server?

>  2) Do they reappear only after lots of requests have been
>     handled successfully?
No. All of them are bad.

>  3) Have set your server's LogLevel to "Debug"?  What does
>     the error log say during the Bad Requests?
access.log: - - [06/Nov/2003:13:40:48 -0700] "GET / HTTP/1.1" 400 314
[Thu Nov 06 16:00:15 2003] [debug] mod_apreq.c(267): [client] 
prefetching 65536 bytes

>  4) What exactly is an insert_filter handler? Do you mean
>     a filter_init function?  Is your module an input filter,
>     output filter, or a content handler?  What does it do?
It's a handler registered with  ap_hook_insert_filter(my_insert_filter, 
my_insert_filter adds output filter and calls apreq_request(r, NULL);
Output filter is not called because Apache detects error (400).
Output filter doesn't generate any data. There is no content handler in 
my module.


View raw message