- 20 Aug, 2007 11 commits
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1909 | des | 2007-08-20 21:49:38 +0200 (Mon, 20 Aug 2007) | 2 lines Even more files... ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1910 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1907 | des | 2007-08-20 21:27:08 +0200 (Mon, 20 Aug 2007) | 4 lines Distribute all the files that are needed to recreate the change logs, and add an explicit dependency so the logs are regenerated if the stylesheet changes. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1908 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1902 | des | 2007-08-20 21:13:37 +0200 (Mon, 20 Aug 2007) | 2 lines Render <code> elements. ........ r1903 | des | 2007-08-20 21:16:08 +0200 (Mon, 20 Aug 2007) | 2 lines Really render <code> elements correctly. ........ r1904 | des | 2007-08-20 21:17:49 +0200 (Mon, 20 Aug 2007) | 4 lines At some point along the line, I forgot that these files aren't actually DocBook, and that I don't have <filename>, <literal>, <varname> etc. - just <code>. ........ r1905 | des | 2007-08-20 21:20:25 +0200 (Mon, 20 Aug 2007) | 2 lines Rewrap (no content changes) ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1906 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1901 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1900 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1898 | des | 2007-08-20 18:59:16 +0200 (Mon, 20 Aug 2007) | 2 lines Catch up with recent commits. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1899 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1896 | des | 2007-08-20 17:18:49 +0200 (Mon, 20 Aug 2007) | 2 lines Correct the lock.l_type logic for platforms where O_RDONLY is 0. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1897 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1891 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Lars Bahner authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1865 | bahner | 2007-08-20 10:38:29 +0200 (Mon, 20 Aug 2007) | 2 lines Added -u and -g to default setup. Bumped release. ........ r1867 | bahner | 2007-08-20 10:55:34 +0200 (Mon, 20 Aug 2007) | 2 lines Added creation of varnish user and group to postinst ........ r1868 | bahner | 2007-08-20 10:56:40 +0200 (Mon, 20 Aug 2007) | 2 lines Comment on postinst user-creation ........ r1873 | bahner | 2007-08-20 11:33:50 +0200 (Mon, 20 Aug 2007) | 2 lines Add file to install man pages; call varnish_setup_user from postinst ........ r1874 | bahner | 2007-08-20 11:37:59 +0200 (Mon, 20 Aug 2007) | 2 lines Added forgotten shebang to postinst ........ r1875 | bahner | 2007-08-20 11:40:54 +0200 (Mon, 20 Aug 2007) | 2 lines Fixed silly race ........ r1877 | bahner | 2007-08-20 11:42:56 +0200 (Mon, 20 Aug 2007) | 2 lines Added group ........ r1880 | bahner | 2007-08-20 12:13:16 +0200 (Mon, 20 Aug 2007) | 2 lines Clarified change ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1887 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1871 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1862 | phk | 2007-08-20 09:35:10 +0200 (Mon, 20 Aug 2007) | 5 lines Add more asserts to try to find a cure for #150. Don't nuke t_end timestamp, we need it for StatSess logentry. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1863 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 19 Aug, 2007 2 commits
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1857 | des | 2007-08-19 20:18:11 +0200 (Sun, 19 Aug 2007) | 2 lines Whitespace cleanup. ........ r1858 | phk | 2007-08-19 23:19:46 +0200 (Sun, 19 Aug 2007) | 2 lines Feed my virtual whitespace habbit. ........ r1859 | phk | 2007-08-19 23:20:48 +0200 (Sun, 19 Aug 2007) | 4 lines Reset the cli buffer when we have soaked up all it contained. Otherwise we will for ever be repeating the same command over and over, no matter what the input to the cli might be. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1860 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1853 | des | 2007-08-19 19:17:58 +0200 (Sun, 19 Aug 2007) | 2 lines Whitespace cleanup ........ r1854 | des | 2007-08-19 19:26:45 +0200 (Sun, 19 Aug 2007) | 2 lines Improve style. ........ r1855 | des | 2007-08-19 20:12:03 +0200 (Sun, 19 Aug 2007) | 4 lines Restructure mgt_cli_callback(), and add comments to make it clear what's going on. Also take care of a bug where strchr() was used on a non-NUL- terminated buffer. This fixes #134. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1856 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 16 Aug, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1846 | ingvar | 2007-08-14 23:57:58 +0200 (Tue, 14 Aug 2007) | 6 lines * Tue Aug 14 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.svn - Update for 1.1 branch - Added the devel package for the header files and static library files - Added a varnish user, and fixed the init script accordingly ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1849 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 13 Aug, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1831 | ssm | 2007-08-10 16:05:32 +0200 (Fri, 10 Aug 2007) | 1 line Added missing dependency on "libc6-dev | libc-dev" for vcl compilation ........ r1837 | des | 2007-08-13 19:58:09 +0200 (Mon, 13 Aug 2007) | 2 lines Readability nit ........ r1838 | des | 2007-08-13 20:00:50 +0200 (Mon, 13 Aug 2007) | 2 lines Correct three bits worth of line noise. This fixes #129. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1844 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 10 Aug, 2007 3 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1828 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
file:///var/lib/svn/varnish/trunk/varnish-cache ........ r1794 | des | 2007-08-03 20:50:05 +0200 (Fri, 03 Aug 2007) | 3 lines Try harder to avoid integer overflows in cache file size calculations on 32-bit platforms. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1826 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
file:///var/lib/svn/varnish/trunk/varnish-cache ........ r1823 | des | 2007-08-10 09:13:02 +0200 (Fri, 10 Aug 2007) | 2 lines Avoid mixing statements and declarations (#147) ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1825 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 09 Aug, 2007 2 commits
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1819 | des | 2007-08-09 16:58:56 +0200 (Thu, 09 Aug 2007) | 2 lines Explain the meaning of obj.valid and obj.cacheable. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1820 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Merged revisions 1743-1744,1746-1749,1755-1775,1777,1779-1793,1795,1797-1798,1800-1808,1810-1815,1817 via svnmerge from svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1743 | ssm | 2007-07-20 14:43:54 +0200 (Fri, 20 Jul 2007) | 1 line Split debian package into varnish, libvarnish and libvarnish-dev ........ r1748 | des | 2007-07-24 15:51:58 +0200 (Tue, 24 Jul 2007) | 2 lines Correct a comment ........ r1749 | des | 2007-07-24 15:52:40 +0200 (Tue, 24 Jul 2007) | 2 lines Use strlen() directly. ........ r1761 | cecilihf | 2007-07-25 10:39:10 +0200 (Wed, 25 Jul 2007) | 9 lines Implemented http purge with regexp. Example vcl usage: sub vcl_recv { if (req.request == "REPURGE") { purge(req.url); error 404 "Purged"; } } ........ r1762 | cecilihf | 2007-07-25 10:53:16 +0200 (Wed, 25 Jul 2007) | 2 lines Updated man page ........ r1765 | cecilihf | 2007-07-25 13:09:06 +0200 (Wed, 25 Jul 2007) | 2 lines Use purge in function names instead of repurge and move VRT_purge to cache_vrt.c. ........ r1766 | cecilihf | 2007-07-25 13:10:59 +0200 (Wed, 25 Jul 2007) | 2 lines Style... ........ r1780 | des | 2007-07-28 12:03:29 +0200 (Sat, 28 Jul 2007) | 5 lines Reverse the logic for sp->wantbody: assume it is always wanted unless req.request is "HEAD". This is what broke the RePurge test case. Ideally, sp->wantbody would be controllable by VCL. ........ r1783 | des | 2007-07-30 10:03:42 +0200 (Mon, 30 Jul 2007) | 4 lines Avoid referencing <sys/cdefs.h> and __{BEGIN,END}_DECLS. Based on Theo Schlossnagle's Solaris portability patch. ........ r1784 | des | 2007-07-30 11:49:05 +0200 (Mon, 30 Jul 2007) | 2 lines Avoid using non-portable <err.h>. ........ r1785 | des | 2007-07-30 15:50:16 +0200 (Mon, 30 Jul 2007) | 3 lines Use mktime() rather than the unportable timegm(). The downside is that we're at the mercy of the TZ environment variable. ........ r1786 | des | 2007-07-30 15:54:48 +0200 (Mon, 30 Jul 2007) | 2 lines Explicitly set TZ to GMT. ........ r1787 | des | 2007-07-30 16:16:23 +0200 (Mon, 30 Jul 2007) | 4 lines Use fcntl(2)-style locks instead of non-portable flock(2)-style locks. Based on Theo Schlossnagle's Solaris portability patch. ........ r1788 | des | 2007-07-30 16:19:45 +0200 (Mon, 30 Jul 2007) | 2 lines pid_t is not necessarily compatible with int. ........ r1789 | des | 2007-07-30 16:22:00 +0200 (Mon, 30 Jul 2007) | 2 lines Bogons in previous commit. Pass me the pointy hat... ........ r1790 | des | 2007-07-30 16:31:16 +0200 (Mon, 30 Jul 2007) | 3 lines I accidentally committed the wrong patch in r1787; this corrects the logic used to determine which lock type (shared or exclusive) to use. ........ r1791 | des | 2007-07-30 16:39:03 +0200 (Mon, 30 Jul 2007) | 2 lines Note that MAX_IOVS is intentionally not equal to IOV_MAX. ........ r1792 | des | 2007-07-31 08:06:28 +0200 (Tue, 31 Jul 2007) | 2 lines Fine-tune the vhost example. ........ r1793 | des | 2007-08-03 20:46:43 +0200 (Fri, 03 Aug 2007) | 2 lines Synchronize these two files. ........ r1795 | phk | 2007-08-05 21:37:44 +0200 (Sun, 05 Aug 2007) | 9 lines Synchronize the paramters after we call their accessor functions rather than when we don't find one. This makes changing runtime paramters work again, without the need to ask for a nonexistent parameter to trigger the update. Ticket: 136 ........ r1797 | phk | 2007-08-05 22:17:49 +0200 (Sun, 05 Aug 2007) | 4 lines Make the nonexistence of "nobody" and "nogroup" users and groups nonfatal Ticket: 140 ........ r1798 | phk | 2007-08-05 22:26:09 +0200 (Sun, 05 Aug 2007) | 5 lines We need the math library on some systems. Ticket 138 ........ r1800 | phk | 2007-08-05 22:57:20 +0200 (Sun, 05 Aug 2007) | 2 lines Add a missing return: we always return after detecting the first error. ........ r1801 | phk | 2007-08-05 22:57:32 +0200 (Sun, 05 Aug 2007) | 2 lines vrt.h is not needed here. ........ r1802 | phk | 2007-08-05 23:06:41 +0200 (Sun, 05 Aug 2007) | 2 lines Add comment to remind myself. ........ r1803 | phk | 2007-08-06 10:07:18 +0200 (Mon, 06 Aug 2007) | 14 lines Have the VCL compiler provide a hint about the worst case number of operations on the req.hash variable. It is only a hint, because it merely counts how many times the parser saw something being added to the req.hash variable. If the operation was in a subroutine which was called multiple times, the hint will not reflect the number of actual operations. For now we will deal with that at runtime, at the expense of a failed transaction every time we run short. If this becomes an issue, an extensive topological analysis of the VCL program can give us a definitive count. ........ r1804 | phk | 2007-08-06 11:19:20 +0200 (Mon, 06 Aug 2007) | 3 lines Add piecemal crc32 function back, we will need it for the scatter/gather hash string. ........ r1805 | phk | 2007-08-06 11:25:20 +0200 (Mon, 06 Aug 2007) | 13 lines Rewrite the req.hash implmentation: Instead of assembling the entire hash-string in the workspace, use a scatter gather approach, hinted by the VCL compiler. This eliminates the workspace reservation which prevented regsub() from working in vcl_hash, and reduces the size of the necessary workspace a fair bit as well, at the cost of a little bit of complexity in the hash implmentations. Closes ticket 137 and possibly 141 ........ r1806 | phk | 2007-08-06 11:28:44 +0200 (Mon, 06 Aug 2007) | 4 lines Forgot an assert. WS_Return() is now unused, comment it out. ........ r1807 | phk | 2007-08-07 08:55:52 +0200 (Tue, 07 Aug 2007) | 4 lines When vcl_miss() take error action, remember to discard backend request. Ticket: 139 ........ r1808 | phk | 2007-08-07 09:23:10 +0200 (Tue, 07 Aug 2007) | 3 lines Implement "error" action in vcl_fetch() and vcl_deliver() ........ r1810 | phk | 2007-08-08 10:49:11 +0200 (Wed, 08 Aug 2007) | 5 lines Elminiate a spurious message when sigchild looses a race to popen(2). This fixed #143 ........ r1811 | des | 2007-08-08 12:01:50 +0200 (Wed, 08 Aug 2007) | 3 lines Remove FreeBSD workaround; the FreeBSD ports tree has had working autotools for two weeks now. Also fix inconsistent indentation. ........ r1817 | des | 2007-08-09 13:19:20 +0200 (Thu, 09 Aug 2007) | 2 lines Rename libcompat to libvarnishcompat, and make it dynamic. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1818 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 26 Jul, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1745 | des | 2007-07-24 13:39:55 +0200 (Tue, 24 Jul 2007) | 2 lines Implement VRT_r_obj_status(), without which obj.status can't be read. ........ r1750 | des | 2007-07-24 15:54:20 +0200 (Tue, 24 Jul 2007) | 3 lines Always generate a Connection: header, in case the client makes an incorrect assumption about which is the default. ........ r1751 | des | 2007-07-24 15:56:44 +0200 (Tue, 24 Jul 2007) | 3 lines RES_BuildHttp() must be called before RES_WriteObj() to prepare the response headers. This fixes #128. ........ r1752 | des | 2007-07-24 16:02:20 +0200 (Tue, 24 Jul 2007) | 2 lines #131: Honor DESTDIR when creating the state directory. ........ r1753 | des | 2007-07-24 16:10:28 +0200 (Tue, 24 Jul 2007) | 2 lines #130: false is spelles FALSE in curses-land. ........ r1754 | des | 2007-07-24 16:25:54 +0200 (Tue, 24 Jul 2007) | 6 lines Instead of incorrectly assuming that a pthread_t can be meaningfully cast to an unsigned int (which triggered warnings on some 64-bit platforms) and printed with %08lx, incorrectly assume that it can be meaningfully cast to a void * and printed with %p. While still incorrect in general terms, the latter turns out to be correct on the specific systems that we care about. ........ r1776 | des | 2007-07-26 15:53:41 +0200 (Thu, 26 Jul 2007) | 2 lines Add change log for 1.1.1 + various prop fixes ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1777 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 20 Jul, 2007 4 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1741 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1738 | des | 2007-07-20 13:25:21 +0200 (Fri, 20 Jul 2007) | 2 lines Set localstatedir explicitly, otherwise it ends up as /usr/var. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1739 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1737 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1727 | des | 2007-07-20 10:38:22 +0200 (Fri, 20 Jul 2007) | 2 lines Let the LRU code worry about this. ........ r1728 | des | 2007-07-20 10:39:45 +0200 (Fri, 20 Jul 2007) | 2 lines Paranoia. ........ r1729 | des | 2007-07-20 10:40:33 +0200 (Fri, 20 Jul 2007) | 2 lines Count backend requests. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1736 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 19 Jul, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1710 | des | 2007-07-17 12:33:46 +0200 (Tue, 17 Jul 2007) | 9 lines Fix child restart by always calling close_sockets() when the child dies; otherwise open_sockets() fails, which causes start_child() to fail silently. Furthermore, if open_sockets() fails and child_state is CH_DIED, it will not be possible to start it manually later; therefore, set child_state to CH_STOPPED when open_sockets() fails. Note: it wouldn't hurt if open_sockets() were a little more talkative. ........ r1711 | des | 2007-07-17 15:05:08 +0200 (Tue, 17 Jul 2007) | 6 lines Amend previous commit. The problem was that when a socket was already open, open_sockets() did not count it as "good". Having fixed this, revert to the previous behaviour of keeping the sockets open if auto_restart is on; this avoids having a brief window (until they are reopened) during which client connections are refused. ........ r1712 | des | 2007-07-17 18:56:21 +0200 (Tue, 17 Jul 2007) | 4 lines Remove object from LRU list before freeing it; this does not entirely eliminate races between the LRU code and the expiry code, but it does make them a lot less likely. ........ r1713 | des | 2007-07-17 18:58:40 +0200 (Tue, 17 Jul 2007) | 2 lines Return count like the comment says we do. ........ r1714 | des | 2007-07-17 19:06:12 +0200 (Tue, 17 Jul 2007) | 10 lines Assert that LRU_DiscardOne() returns 1, to avoid an unlikely but possible scenario where multiple clients each require different objects such that the sum of the sizes of the objects is larger than the cache (or, in the extreme case, one client requests an object which is larger than the cache) causing STV_alloc() to enter an infinite loop. This is not ideal - a better solution would be return NULL and have the caller deal with the problem, possibly by returning a 503 result, or by stalling the request for some time. ........ r1715 | des | 2007-07-19 12:58:31 +0200 (Thu, 19 Jul 2007) | 2 lines gettimeofday() is good enough for varnishstat. ........ r1716 | des | 2007-07-19 13:01:36 +0200 (Thu, 19 Jul 2007) | 2 lines If clock_gettime() is not available, use gettimeofday() directly. ........ r1717 | des | 2007-07-19 13:02:57 +0200 (Thu, 19 Jul 2007) | 2 lines Retire libcompat's clock_gettime(). ........ r1718 | des | 2007-07-19 13:03:55 +0200 (Thu, 19 Jul 2007) | 2 lines Missed one occurrence of clock_gettime(). ........ r1719 | des | 2007-07-19 13:11:20 +0200 (Thu, 19 Jul 2007) | 4 lines Make regexp variables static. This has the side effect of replacing tentative definitions with non-tentative ones, thus sidestepping one of the issues we have on MacOS X. ........ r1720 | des | 2007-07-19 13:17:59 +0200 (Thu, 19 Jul 2007) | 4 lines Adapt for use on MacOS X / Darwin, which has GNU libtool installed as glibtool, and has a version of automake 1.6 which does not exhibit the bug I've observed on other platforms. ........ r1721 | des | 2007-07-19 13:49:43 +0200 (Thu, 19 Jul 2007) | 3 lines Use the correct cc command line on MacOS. This is a gross hack. Also, ignore the result of dlclose(). ........ r1722 | des | 2007-07-19 14:18:57 +0200 (Thu, 19 Jul 2007) | 2 lines Document Mac OS X compatibility. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1723 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 17 Jul, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1694 | phk | 2007-07-13 17:31:37 +0200 (Fri, 13 Jul 2007) | 3 lines Fix 304 responses, they got messed up in the vcl_deliver() addition. ........ r1695 | phk | 2007-07-13 21:36:38 +0200 (Fri, 13 Jul 2007) | 4 lines Shave the previos commit a bit closer: don't write the HTTP response only to throw it away later and then rewrite it again after giving vcl_deliver() the chance to munge it. ........ r1696 | phk | 2007-07-15 09:51:36 +0200 (Sun, 15 Jul 2007) | 2 lines Tune a couple of library warnings out ........ r1697 | phk | 2007-07-15 09:52:11 +0200 (Sun, 15 Jul 2007) | 2 lines Make the header-gluing code more readable. ........ r1698 | phk | 2007-07-15 09:52:30 +0200 (Sun, 15 Jul 2007) | 2 lines A cast to make flexelint happy. ........ r1699 | phk | 2007-07-15 12:22:05 +0200 (Sun, 15 Jul 2007) | 2 lines Initialize all bits in the sigaction. ........ r1700 | phk | 2007-07-15 12:22:39 +0200 (Sun, 15 Jul 2007) | 2 lines Plug a memory-leak in the VCL compiler. ........ r1701 | phk | 2007-07-15 12:57:55 +0200 (Sun, 15 Jul 2007) | 2 lines Don't leak all the tokens. ........ r1702 | phk | 2007-07-15 12:58:11 +0200 (Sun, 15 Jul 2007) | 2 lines Plug minor memory leak. ........ r1703 | phk | 2007-07-15 13:04:52 +0200 (Sun, 15 Jul 2007) | 2 lines Don't leak the file contents either. ........ r1704 | phk | 2007-07-15 13:08:48 +0200 (Sun, 15 Jul 2007) | 2 lines Plug even more memory leaks in the VCL compiler. ........ r1705 | phk | 2007-07-15 13:25:27 +0200 (Sun, 15 Jul 2007) | 13 lines From the "What has the world come to ?" department: It used to be that sscanf(3) would walk along the proffered string and do what the format string was told, and as long as the format terminated before the input string, the NUL termination was not relevant. Sometime in the last 20 years, sscanf started doing a strlen on the passed argument changing this behaviour. Give sscanf the NUL it wants. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1709 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 13 Jul, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1657 | phk | 2007-07-05 23:08:15 +0200 (Thu, 05 Jul 2007) | 2 lines Clean up FlexeLint fluff. ........ r1658 | phk | 2007-07-06 12:07:30 +0200 (Fri, 06 Jul 2007) | 3 lines Don't rewrite pipe'ed requests to "GET". ........ r1659 | phk | 2007-07-09 22:23:41 +0200 (Mon, 09 Jul 2007) | 10 lines Make all protocol header fields writable, except obj.status and resp.status (which are numeric, they'll follow shortly) Unify the shmemlog tag used for failure to rewrite something, the Rx/Tx/Obj distinction is not helpful enough to warrant the complexity of it. ........ r1660 | phk | 2007-07-09 22:34:59 +0200 (Mon, 09 Jul 2007) | 2 lines Allow assignment to INT type variables ........ r1661 | phk | 2007-07-09 22:35:20 +0200 (Mon, 09 Jul 2007) | 2 lines Allow assignment to obj.status and resp.status ........ r1662 | phk | 2007-07-10 21:46:16 +0200 (Tue, 10 Jul 2007) | 6 lines Move string stuff to vcc_string.c, there's going to be a fair bit of it. Give vcc_StringVal() a return value to say if it did anything so we can emit better error messages when confused. ........ r1663 | phk | 2007-07-10 21:59:39 +0200 (Tue, 10 Jul 2007) | 5 lines Add conversion from IP to string format to allow things like: set bereq.http.HeyYou = client.ip " asked for " req.url; ........ r1664 | phk | 2007-07-10 22:07:07 +0200 (Tue, 10 Jul 2007) | 3 lines Properly emit the header name in VRT_SetHdr(); ........ r1665 | phk | 2007-07-10 22:08:39 +0200 (Tue, 10 Jul 2007) | 2 lines Fix VRT_SetHdr() prototype ........ r1666 | phk | 2007-07-10 22:43:24 +0200 (Tue, 10 Jul 2007) | 2 lines Add compiler side support for regsub() but only a dummy function in VRT. ........ r1667 | phk | 2007-07-10 23:30:47 +0200 (Tue, 10 Jul 2007) | 60 lines Add "regsub" support for string manipulation. Notice this facility is subject to change! "regsub" is short for regular expression substitution and it is probably easiest to explain with some examples: sub vcl_recv { set req.url = regsub(req.url, "#.*", ""); } This will replace the requests URL with the output of the regsub() function regsub() takes three arguments: the string to be examined, a regular expression and a replacement string. In this case, everything after the first '#' is removed (replaced with nothing). The replacement string recognizes the following magic sequences: & - insert everything matched by the regexp $0 - ditto. $1 - replace with the first submatch of the regexp $2 - replace with the second submatch of the regexp ... $9 - replace with the ninth submatch of the regexp (The $0..$9 syntax was chosen over the \0...\9 syntax in order to avoid a nightmare of escape characters in the VCL source code. Arguments and suggestions are welcome). A more advanced example: set bereq.http.ClientIP = regsub(client.ip, "(.*):(.*)", "$2 $1"); The client.ip variable expands to IP:port number, for instance 127.0.0.1:54662 The regular expression "(.*):(.*)" results in the the following matches: & + $0 "127.0.0.1:54662" $1 "127.0.0.1" $2 "54662" So the replacement string "$2 $1" results in "54662 127.0.0.1" And the completed header which is sent to the backend will look like: "ClientIP: 54662 127.0.0.1" An even more advanced example would be: set bereq.http.magic = "Client IP = " regsub(client.ip, ":", " port = "); Where we also exploint the string concatenation ability of the "set" statement. The result string is built in the request workspace, so you may need to increase the workspace size if you do a lot of regsub()'s. Currently there is no decent error handling for running out of workspace. ........ r1668 | phk | 2007-07-12 11:04:54 +0200 (Thu, 12 Jul 2007) | 6 lines Add TIM_mono() and TIM_real() which return double representations of timestamps on a monotonic and the UTC timescales respectively. Doubles are much more convenient than timespecs for comparisons etc. ........ r1669 | phk | 2007-07-12 11:25:07 +0200 (Thu, 12 Jul 2007) | 2 lines Replace ev_now() with TIM_mono(). ........ r1670 | phk | 2007-07-12 11:25:45 +0200 (Thu, 12 Jul 2007) | 2 lines Replace Uptime() with TIM_mono() ........ r1671 | phk | 2007-07-12 11:49:26 +0200 (Thu, 12 Jul 2007) | 6 lines Change all timekeeping to use doubles instead of time_t and struct timespec. Eliminate all direct calls to time(2) and clockgettime(2) and use TIM_real() and TIM_mono() exclusively. ........ r1672 | phk | 2007-07-12 12:00:13 +0200 (Thu, 12 Jul 2007) | 2 lines Document timescale of srcaddr->ttl ........ r1673 | phk | 2007-07-12 12:13:29 +0200 (Thu, 12 Jul 2007) | 2 lines Convert the last time(2) calls to TIM_real() ........ r1674 | cecilihf | 2007-07-12 12:20:33 +0200 (Thu, 12 Jul 2007) | 2 lines Added a new cli option, status, for checking the status of the varnish child process. This is for use in the webmin plugin. ........ r1675 | cecilihf | 2007-07-12 12:27:37 +0200 (Thu, 12 Jul 2007) | 2 lines Fixed typo ........ r1676 | des | 2007-07-12 18:00:04 +0200 (Thu, 12 Jul 2007) | 2 lines RT_LIBS dependency has moved from varnishd to libvarnish. ........ r1677 | des | 2007-07-12 18:02:47 +0200 (Thu, 12 Jul 2007) | 2 lines Add missing semicolon. ........ r1678 | des | 2007-07-12 19:37:44 +0200 (Thu, 12 Jul 2007) | 2 lines sockaddr.sa_len is not portable. ........ r1682 | phk | 2007-07-13 09:11:54 +0200 (Fri, 13 Jul 2007) | 2 lines Initialize all timestamps in the session to NAN ........ r1683 | phk | 2007-07-13 09:21:46 +0200 (Fri, 13 Jul 2007) | 4 lines Unify the recycle functionality of the acceptors, all three used the same method. ........ r1684 | phk | 2007-07-13 09:27:50 +0200 (Fri, 13 Jul 2007) | 2 lines Clean all but t_open timestamps to NAN at end of transaction. ........ r1685 | phk | 2007-07-13 09:47:45 +0200 (Fri, 13 Jul 2007) | 9 lines Rename the "idle" field of struct worker to "used", which is more precise. Don't use the "used" field to signal suicide for worker threads, use the "wrq" field which is much more natural. Set the "used" field to NAN before doing anything and assert that somebody updated during the task. ........ r1686 | phk | 2007-07-13 09:53:08 +0200 (Fri, 13 Jul 2007) | 2 lines Clarify XXX comment ........ r1687 | phk | 2007-07-13 09:58:11 +0200 (Fri, 13 Jul 2007) | 3 lines Move setting of t_resp up to before we build the response. ........ r1688 | phk | 2007-07-13 10:05:14 +0200 (Fri, 13 Jul 2007) | 2 lines Add an XXX comment ........ r1690 | des | 2007-07-13 13:42:02 +0200 (Fri, 13 Jul 2007) | 2 lines Add an entry for r1531. ........ r1691 | des | 2007-07-13 16:27:55 +0200 (Fri, 13 Jul 2007) | 2 lines Document regsub(). ........ r1692 | des | 2007-07-13 16:53:48 +0200 (Fri, 13 Jul 2007) | 2 lines Document recent changes. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1693 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 05 Jul, 2007 8 commits
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1651 | des | 2007-07-05 16:28:48 +0200 (Thu, 05 Jul 2007) | 2 lines Document server.ip. ........ r1652 | des | 2007-07-05 16:54:50 +0200 (Thu, 05 Jul 2007) | 2 lines Add a CSS stylesheet. ........ r1653 | des | 2007-07-05 17:31:25 +0200 (Thu, 05 Jul 2007) | 2 lines Document the -F option (introduced in r1557) ........ r1654 | des | 2007-07-05 18:09:45 +0200 (Thu, 05 Jul 2007) | 2 lines Change log for 1.1. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1656 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1655 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1650 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1649 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1648 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
sub vcl_deliver { set resp.http.phk = "Beastie" "Rules"; } Would result in a new header line: phk: BeastieRules Notice that strings are concatenated directly, you add spaces, commas etc where you want them. Other variables which have STRING format (or which can be converted to STRING format) can also be used: sub vcl_deliver { set resp.http.phk = "Server is: " resp.http.server ; } Could result in: phk: Server is: Apache/1.3.x LaHonda (Unix) git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1646 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
sub vcl_deliver { remove resp.http.etag ; remove resp.http.server ; } git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1645 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
default VCL git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1644 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 03 Jul, 2007 4 commits
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1640 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1639 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
the VCL methods vcl_miss and vcl_pass. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1638 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1637 d4fa192b-c00b-0410-8231-f00ffab90ce4
-