httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Is this a test framework bug?
Date Mon, 18 Apr 2011 08:36:13 GMT
On Sun, Apr 17, 2011 at 05:51:42PM +0200, Torsten Förtsch wrote:
> Hi,
> 
> t/modules/proxy.t of the test framework contains at line 32 the following 2 
> tests:
> 
>   $r = GET("/reverse/modules/cgi/nph-102.pl");
>   ok t_cmp($r->code, 200, "reverse proxy to nph-102");
>   ok t_cmp($r->content, "this is nph-stdout", "reverse proxy 102 response");
> 
> The test fails here and I think the test is wrong. When accessed via socat I 
> see this output:
...
> 
> But the test above tests for status 200 only. So, it will succeed if the proxy 
> module eats up the 102 message. This may be a problem with my libwww-perl. LWP 
> has recently experienced a major release upgrade. It reports $r->code as 102. 
> Perhaps older versions report the 2nd response only.

If you change the CGI script to send a 100 rather than 102, does it 
work?  LWP should treat all 1xx as interim responses so I'd say it is an 
LWP bug.

Regards, Joe

Mime
View raw message