PIPE asserts

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Sep 25 08:38:22 CEST 2009


In message <4ABC6475.3000001 at 1art.cz>, =?UTF-8?B?VsOhY2xhdiBCw61sZWs=?= writes:

>Hello
>
>What is the difference  between
>
>  [...]
> 	req.request != "DELETE") {
> 	    /* Non-RFC2616 or CONNECT which is weird. */
> 	    error 503;

This sets the returned status to "503"

>and
>  [...]
> 	req.request != "DELETE") {
> 	    /* Non-RFC2616 or CONNECT which is weird. */
> 	     return (error);

This reuses whatever status you might already have received from
the backend, in the case of vcl_recv{} there were none, hence the panic.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list