]> err.no Git - varnish/commitdiff
Fill shmem log with the reply
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Aug 2006 07:29:28 +0000 (07:29 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Aug 2006 07:29:28 +0000 (07:29 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@902 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_response.c

index 137470c3b974022bcf6faa2dd09fdd57c29e372d..01c4ff4c77598dfdeffe0a59be30306ccc4c9ff7 100644 (file)
@@ -124,7 +124,10 @@ RES_Error(struct sess *sp, int code, const char *expl)
        WRK_Reset(sp->wrk, &sp->fd);
        WRK_Write(sp->wrk, vsb_data(sb), vsb_len(sb));
        WRK_Flush(sp->wrk);
-       vca_close_session(sp, msg);
+       VSL(SLT_TxResponse, sp->id, "%d", code);
+       VSL(SLT_TxProtocol, sp->id, "HTTP/1.1");
+       VSL(SLT_TxStatus, sp->id, msg);
+       vca_close_session(sp, expl);
        vsb_delete(sb);
 }