[3.0] 9a27210 Set next state to STP_DONE also when an overflow error is encountered while parsing the HTTP request.

Martin Blix Grydeland martin at varnish-cache.org
Mon Apr 23 13:29:39 CEST 2012


commit 9a27210a77fbaaeb1678cf8756f0e2a7228ecc46
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Apr 23 13:23:44 2012 +0200

    Set next state to STP_DONE also when an overflow error is encountered
    while parsing the HTTP request.
    
    Patch by: mark

diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index c75f93d..b3d7237 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -115,11 +115,9 @@ cnt_wait(struct sess *sp)
 		sp->step = STP_START;
 		return (0);
 	}
-	if (i == -2) {
+	if (i == -2)
 		vca_close_session(sp, "overflow");
-		return (0);
-	}
-	if (i == -1 && Tlen(sp->htc->rxbuf) == 0 &&
+	else if (i == -1 && Tlen(sp->htc->rxbuf) == 0 &&
 	    (errno == 0 || errno == ECONNRESET))
 		vca_close_session(sp, "EOF");
 	else



More information about the varnish-commit mailing list