Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Commits

[master] e88413b Allocate HTTP.status from http's designated workspace.

 

 

Varnish commits RSS feed   Index | Next | Previous | View Threaded


phk at varnish-cache

Feb 8, 2012, 3:43 PM

Post #1 of 1 (27 views)
Permalink
[master] e88413b Allocate HTTP.status from http's designated workspace.

commit e88413bccbd000157da949eedc3ee4b0c6889dec
Author: Poul-Henning Kamp <phk [at] FreeBSD>
Date: Wed Feb 8 23:26:57 2012 +0000

Allocate HTTP.status from http's designated workspace.

diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index 0b0b926..cdf95f1 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -1069,7 +1069,7 @@ http_Write(struct worker *w, unsigned vsl_id, const struct http *hp, int resp)
l = WRW_WriteH(w, &hp->hd[HTTP_HDR_PROTO], " ");
WSLH(w, vsl_id, hp, HTTP_HDR_PROTO);

- hp->hd[HTTP_HDR_STATUS].b = WS_Alloc(w->ws, 4);
+ hp->hd[HTTP_HDR_STATUS].b = WS_Alloc(hp->ws, 4);
AN(hp->hd[HTTP_HDR_STATUS].b);

sprintf(hp->hd[HTTP_HDR_STATUS].b, "%3d", hp->status);

_______________________________________________
varnish-commit mailing list
varnish-commit [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit

Varnish commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.