r902 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Aug 23 09:29:29 CEST 2006


Author: phk
Date: 2006-08-23 09:29:28 +0200 (Wed, 23 Aug 2006)
New Revision: 902

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Fill shmem log with the reply


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2006-08-23 07:22:28 UTC (rev 901)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2006-08-23 07:29:28 UTC (rev 902)
@@ -124,7 +124,10 @@
 	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);
 }
 




More information about the varnish-commit mailing list