Commit 24b0a1ab authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Unify logging in the response handling


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@314 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2fe5c29f
......@@ -91,6 +91,9 @@ vca_write_obj(struct sess *sp, char *b, unsigned l)
unsigned u = 0;
char *r;
VSL(SLT_Response, sp->fd, "%u", sp->obj->response);
VSL(SLT_Length, sp->fd, "%u", sp->obj->len);
if (l == 0)
l = strlen(b);
vca_write(sp, b, l);
......
......@@ -289,9 +289,6 @@ FetchSession(struct worker *w, struct sess *sp)
sbuf_finish(w->sb);
sp->obj->header = strdup(sbuf_data(w->sb));
VSL(SLT_Response, sp->fd, "%u", sp->obj->response);
VSL(SLT_Length, sp->fd, "%u", sp->obj->len);
vca_write_obj(sp, sp->obj->header, 0);
if (http_GetHdr(hp, "Connection", &b) && !strcasecmp(b, "close"))
......
......@@ -50,8 +50,6 @@ DeliverSession(struct worker *w, struct sess *sp)
{
VSL(SLT_Response, sp->fd, "%u", sp->obj->response);
VSL(SLT_Length, sp->fd, "%u", sp->obj->len);
vca_write_obj(sp, sp->obj->header, 0);
HSH_Deref(sp->obj);
sp->obj = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment