diff options
Diffstat (limited to 'www/varnish/files')
-rw-r--r-- | www/varnish/files/patch-svn-r1745 | 19 | ||||
-rw-r--r-- | www/varnish/files/patch-svn-r1750 | 26 | ||||
-rw-r--r-- | www/varnish/files/patch-svn-r1751 | 12 | ||||
-rw-r--r-- | www/varnish/files/patch-svn-r1752 | 10 | ||||
-rw-r--r-- | www/varnish/files/patch-svn-r1753 | 39 | ||||
-rw-r--r-- | www/varnish/files/patch-svn-r1754 | 35 |
6 files changed, 141 insertions, 0 deletions
diff --git a/www/varnish/files/patch-svn-r1745 b/www/varnish/files/patch-svn-r1745 new file mode 100644 index 000000000000..3f265f43d82d --- /dev/null +++ b/www/varnish/files/patch-svn-r1745 @@ -0,0 +1,19 @@ +Index: bin/varnishd/cache_vrt.c +=================================================================== +--- bin/varnishd/cache_vrt.c (revision 1744) ++++ bin/varnishd/cache_vrt.c (revision 1745) +@@ -234,6 +234,14 @@ + http_SetH(&sp->obj->http, HTTP_HDR_STATUS, p); + } + ++int ++VRT_r_obj_status(struct sess *sp) ++{ ++ CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); ++ CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC); ++ return (atoi(sp->obj->http.hd[HTTP_HDR_STATUS].b)); ++} ++ + void + VRT_l_resp_status(struct sess *sp, int num) + { diff --git a/www/varnish/files/patch-svn-r1750 b/www/varnish/files/patch-svn-r1750 new file mode 100644 index 000000000000..f585d60de408 --- /dev/null +++ b/www/varnish/files/patch-svn-r1750 @@ -0,0 +1,26 @@ +Index: bin/varnishd/cache_response.c +=================================================================== +--- bin/varnishd/cache_response.c (revision 1749) ++++ bin/varnishd/cache_response.c (revision 1750) +@@ -76,8 +76,8 @@ + http_PrintfHeader(sp->wrk, sp->fd, sp->http, "X-Varnish: %u", sp->xid); + TIM_format(sp->obj->last_modified, lm); + http_PrintfHeader(sp->wrk, sp->fd, sp->http, "Last-Modified: %s", lm); +- if (sp->doclose != NULL) +- http_SetHeader(sp->wrk, sp->fd, sp->http, "Connection: close"); ++ http_PrintfHeader(sp->wrk, sp->fd, sp->http, "Connection: %s", ++ sp->doclose ? "close" : "keep-alive"); + sp->wantbody = 0; + } + +@@ -129,8 +129,8 @@ + http_PrintfHeader(sp->wrk, sp->fd, sp->http, "Age: %.0f", + sp->obj->age + sp->t_resp - sp->obj->entered); + http_SetHeader(sp->wrk, sp->fd, sp->http, "Via: 1.1 varnish"); +- if (sp->doclose != NULL) +- http_SetHeader(sp->wrk, sp->fd, sp->http, "Connection: close"); ++ http_PrintfHeader(sp->wrk, sp->fd, sp->http, "Connection: %s", ++ sp->doclose ? "close" : "keep-alive"); + } + + /*--------------------------------------------------------------------*/ diff --git a/www/varnish/files/patch-svn-r1751 b/www/varnish/files/patch-svn-r1751 new file mode 100644 index 000000000000..22eb2938b56a --- /dev/null +++ b/www/varnish/files/patch-svn-r1751 @@ -0,0 +1,12 @@ +Index: bin/varnishd/cache_response.c +=================================================================== +--- bin/varnishd/cache_response.c (revision 1750) ++++ bin/varnishd/cache_response.c (revision 1751) +@@ -50,6 +50,7 @@ + + /* synthesize error page and send it */ + SYN_ErrorPage(sp, code, reason, 0); ++ RES_BuildHttp(sp); + RES_WriteObj(sp); + + /* GC the error page */ diff --git a/www/varnish/files/patch-svn-r1752 b/www/varnish/files/patch-svn-r1752 new file mode 100644 index 000000000000..0e2fd98452cb --- /dev/null +++ b/www/varnish/files/patch-svn-r1752 @@ -0,0 +1,10 @@ +Index: Makefile.am +=================================================================== +--- Makefile.am (revision 1751) ++++ Makefile.am (revision 1752) +@@ -10,4 +10,4 @@ + EXTRA_DIST = LICENSE autogen.sh varnishapi.pc.in + + install-data-local: +- $(install_sh) -d -m 0755 $(localstatedir)/varnish ++ $(install_sh) -d -m 0755 $(DESTDIR)$(localstatedir)/varnish diff --git a/www/varnish/files/patch-svn-r1753 b/www/varnish/files/patch-svn-r1753 new file mode 100644 index 000000000000..ad906879afc3 --- /dev/null +++ b/www/varnish/files/patch-svn-r1753 @@ -0,0 +1,39 @@ +Index: bin/varnishhist/varnishhist.c +=================================================================== +--- bin/varnishhist/varnishhist.c (revision 1752) ++++ bin/varnishhist/varnishhist.c (revision 1753) +@@ -247,7 +247,7 @@ + raw(); + noecho(); + nonl(); +- intrflush(stdscr, false); ++ intrflush(stdscr, FALSE); + curs_set(0); + erase(); + for (;;) { +Index: bin/varnishstat/varnishstat.c +=================================================================== +--- bin/varnishstat/varnishstat.c (revision 1752) ++++ bin/varnishstat/varnishstat.c (revision 1753) +@@ -78,7 +78,7 @@ + raw(); + noecho(); + nonl(); +- intrflush(stdscr, false); ++ intrflush(stdscr, FALSE); + curs_set(0); + erase(); + +Index: bin/varnishtop/varnishtop.c +=================================================================== +--- bin/varnishtop/varnishtop.c (revision 1752) ++++ bin/varnishtop/varnishtop.c (revision 1753) +@@ -201,7 +201,7 @@ + raw(); + noecho(); + nonl(); +- intrflush(stdscr, false); ++ intrflush(stdscr, FALSE); + curs_set(0); + erase(); + for (;;) { diff --git a/www/varnish/files/patch-svn-r1754 b/www/varnish/files/patch-svn-r1754 new file mode 100644 index 000000000000..b2cdf2015edb --- /dev/null +++ b/www/varnish/files/patch-svn-r1754 @@ -0,0 +1,35 @@ +Index: bin/varnishreplay/varnishreplay.c +=================================================================== +--- bin/varnishreplay/varnishreplay.c (revision 1753) ++++ bin/varnishreplay/varnishreplay.c (revision 1754) +@@ -145,7 +145,7 @@ + if (lvl > debug) + return; + pthread_mutex_lock(&log_mutex); +- fprintf(stderr, "%08x ", (unsigned int)pthread_self()); ++ fprintf(stderr, "%p ", (void *)pthread_self()); + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); +@@ -183,8 +183,8 @@ + mailbox_destroy(&threads[fd]->mbox); + freez(threads[fd]); + } +- thread_log(1, "thread %08x started\n", +- (unsigned int)threads[fd]->thread_id); ++ thread_log(1, "thread %p started\n", ++ (void *)threads[fd]->thread_id); + } + return (threads[fd]); + } +@@ -204,8 +204,8 @@ + return; + mailbox_close(&threads[fd]->mbox); + pthread_join(threads[fd]->thread_id, NULL); +- thread_log(1, "thread %08x stopped\n", +- (unsigned int)threads[fd]->thread_id); ++ thread_log(1, "thread %p stopped\n", ++ (void *)threads[fd]->thread_id); + mailbox_destroy(&threads[fd]->mbox); + freez(threads[fd]); + } |