Commit eb3d70c7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename shmlog tags for headers to RxHeader and TxHeader that's more

logical.

Rename http_Init() to http_Setup() to avoid clash with HTTP_Init().

Remove unused variable


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@532 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 797aec02
......@@ -296,7 +296,7 @@ void HSH_Init(void);
/* cache_http.c */
void HTTP_Init(void);
void http_Init(struct http *ht, void *space, unsigned len);
void http_Setup(struct http *ht, void *space, unsigned len);
int http_GetHdr(struct http *hp, const char *hdr, char **ptr);
int http_GetHdrField(struct http *hp, const char *hdr, const char *field, char **ptr);
int http_GetStatus(struct http *hp);
......
......@@ -81,7 +81,7 @@ vbe_new_conn(void)
vbcm->vbe.magic = VBE_CONN_MAGIC;
vbcm->vbe.vbcm = vbcm;
vbcm->vbe.http = &vbcm->http;
http_Init(&vbcm->http, (void *)(vbcm + 1), heritage.mem_workspace);
http_Setup(&vbcm->http, (void *)(vbcm + 1), heritage.mem_workspace);
return (&vbcm->vbe);
}
......
......@@ -25,7 +25,7 @@
/*--------------------------------------------------------------------*/
void
http_Init(struct http *hp, void *space, unsigned len)
http_Setup(struct http *hp, void *space, unsigned len)
{
char *sp = space;
......@@ -213,7 +213,7 @@ http_dissect_hdrs(struct http *hp, int fd, char *p)
if (hp->nhd < MAX_HTTP_HDRS) {
hp->hd[hp->nhd][HTTP_START] = p;
hp->hd[hp->nhd][HTTP_END] = q;
VSLH(SLT_Header, fd, hp, hp->nhd);
VSLH(SLT_RxHeader, fd, hp, hp->nhd);
hp->nhd++;
} else {
VSL_stats->losthdr++;
......@@ -526,7 +526,7 @@ http_BuildSbuf(int fd, enum http_build mode, struct sbuf *sb, struct http *hp)
if (http_supress(hp->hd[u][HTTP_START], sup))
continue;
if (1)
VSL(SLT_BldHdr, fd, "%s", hp->hd[u][HTTP_START]);
VSL(SLT_TxHeader, fd, "%s", hp->hd[u][HTTP_START]);
sbuf_cat(sb, hp->hd[u][HTTP_START]);
sbuf_cat(sb, "\r\n");
}
......
......@@ -178,7 +178,7 @@ SES_New(struct sockaddr *addr, unsigned len)
sm->sess.magic = SESS_MAGIC;
sm->sess.mem = sm;
sm->sess.http = &sm->http;
http_Init(&sm->http, (void *)(sm + 1), heritage.mem_workspace);
http_Setup(&sm->http, (void *)(sm + 1), heritage.mem_workspace);
return (&sm->sess);
}
......
......@@ -56,7 +56,6 @@ VRT_GetHdr(struct sess *sp, const char *n)
char *
VRT_GetReq(struct sess *sp)
{
char *p;
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
assert(sp != NULL);
......
......@@ -29,8 +29,8 @@ SLTM(Length)
SLTM(Status)
SLTM(URL)
SLTM(Protocol)
SLTM(Header)
SLTM(BldHdr)
SLTM(RxHeader)
SLTM(TxHeader)
SLTM(LostHeader)
SLTM(VCL_call)
SLTM(VCL_trace)
......
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