]> err.no Git - varnish/log
varnish
15 years agoAdd python class to emulate varnishadm master trunk
tfheen [Tue, 3 Mar 2009 14:14:23 +0000 (14:14 +0000)]
Add python class to emulate varnishadm

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3868 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoFlexelint nitpickery.
phk [Tue, 3 Mar 2009 12:29:55 +0000 (12:29 +0000)]
Flexelint nitpickery.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3867 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd minimal facility for dealing with TELNET option negotiation
phk [Tue, 3 Mar 2009 12:23:11 +0000 (12:23 +0000)]
Add minimal facility for dealing with TELNET option negotiation
in a way that telnet clients don't get confused about:

Return WONT on to all DO or DONT and ignore everything else.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3866 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd support for authenticating CLI telnet connections
phk [Tue, 3 Mar 2009 11:25:46 +0000 (11:25 +0000)]
Add support for authenticating CLI telnet connections

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3865 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd some polish to the graphs by using sensible font sizes and x ticks.
petter [Tue, 3 Mar 2009 11:18:41 +0000 (11:18 +0000)]
Add some polish to the graphs by using sensible font sizes and x ticks.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3864 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoRenamed the program to something more logical.
petter [Tue, 3 Mar 2009 09:48:43 +0000 (09:48 +0000)]
Renamed the program to something more logical.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3863 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdded the use of config file (at last),which is given as argument to web ui. If not...
petter [Tue, 3 Mar 2009 09:47:49 +0000 (09:47 +0000)]
Added the use of config file (at last),which is given as argument to web ui. If not given, it will check for /etc/varnish/webui.conf and then fall back to the default config.

Added a new config value, 'document_root', which is the root of the web server and contains the templates, images and CSS.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3862 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMinor bit of cleanup: initialize CLI from main() instead of mgt_run().
phk [Tue, 3 Mar 2009 09:33:27 +0000 (09:33 +0000)]
Minor bit of cleanup: initialize CLI from main() instead of mgt_run().

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3861 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoBe much more careful about volatile and locking
phk [Mon, 2 Mar 2009 17:29:45 +0000 (17:29 +0000)]
Be much more careful about volatile and locking

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3860 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoI was confused, always rush when we deref an *object*, it is the
phk [Mon, 2 Mar 2009 17:29:11 +0000 (17:29 +0000)]
I was confused, always rush when we deref an *object*, it is the
*objhead* we need to be careful about.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3859 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a missing refcnt in the case where we lost a collision while
phk [Mon, 2 Mar 2009 16:15:58 +0000 (16:15 +0000)]
Add a missing refcnt in the case where we lost a collision while
doing the lockless lookup.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3858 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoClarify the waitinglist handling a little bit
phk [Mon, 2 Mar 2009 14:38:55 +0000 (14:38 +0000)]
Clarify the waitinglist handling a little bit

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3857 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoCache the vcl_fetch{} result, in case vcl_discard{} (via LRU) overwrites
phk [Mon, 2 Mar 2009 13:39:09 +0000 (13:39 +0000)]
Cache the vcl_fetch{} result, in case vcl_discard{} (via LRU) overwrites
it during body fetch.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3856 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoGive coords for WRONG
phk [Mon, 2 Mar 2009 12:56:03 +0000 (12:56 +0000)]
Give coords for WRONG

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3855 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoFix compilation warnings
tfheen [Mon, 2 Mar 2009 12:54:10 +0000 (12:54 +0000)]
Fix compilation warnings

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3854 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoRename r00433.vcl to r00433.vtc
tfheen [Mon, 2 Mar 2009 12:04:04 +0000 (12:04 +0000)]
Rename r00433.vcl to r00433.vtc

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3853 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoDocumentation for vcl_pipe and connection: close
tfheen [Mon, 2 Mar 2009 12:01:33 +0000 (12:01 +0000)]
Documentation for vcl_pipe and connection: close

Note in the default VCL that connection: close might be wanted.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3852 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoFix typo in varnishadm.c (variable name)
tfheen [Mon, 2 Mar 2009 12:01:30 +0000 (12:01 +0000)]
Fix typo in varnishadm.c (variable name)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3851 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMake varnishadm able to handle cli_banner=on
tfheen [Mon, 2 Mar 2009 11:54:27 +0000 (11:54 +0000)]
Make varnishadm able to handle cli_banner=on

Send a ping and ignore the first reply if it doesn't include a PONG.

Fixes: #457
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3850 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a debug facility for substituting digests with hand-created
phk [Mon, 2 Mar 2009 11:22:24 +0000 (11:22 +0000)]
Add a debug facility for substituting digests with hand-created
digests with edge-bit conditions and run the critbit through them.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3849 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd an assert to make sure 32 stays 32
phk [Mon, 2 Mar 2009 10:43:56 +0000 (10:43 +0000)]
Add an assert to make sure 32 stays 32

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3848 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoSolaris fix for VRT_error
tfheen [Mon, 2 Mar 2009 09:49:15 +0000 (09:49 +0000)]
Solaris fix for VRT_error

If VRT_error is called with reason==NULL, WSL() will eventually call
strlen(0), which will cause a SIGSEGV on (Open)Solaris.  Fix this by
checking if the reason is empty and just use (null) in that case.

Fixes: 458
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3847 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoUpdate this test to not rely of a known dynamic of varnishd
phk [Sat, 28 Feb 2009 22:06:39 +0000 (22:06 +0000)]
Update this test to not rely of a known dynamic of varnishd

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3846 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoPostpone allocating the actual object until we have received the
phk [Sat, 28 Feb 2009 21:56:49 +0000 (21:56 +0000)]
Postpone allocating the actual object until we have received the
headers and vcl_fetch{} has told os what to do with it.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3845 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoUse the right workspace for beresp.status
phk [Sat, 28 Feb 2009 21:21:14 +0000 (21:21 +0000)]
Use the right workspace for beresp.status

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3844 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoWhen we know that an object will not make it into the hash
phk [Sat, 28 Feb 2009 19:00:00 +0000 (19:00 +0000)]
When we know that an object will not make it into the hash
table permanently, use malloc(3) as backing store.

This affects mainly pass'ed requests.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3843 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoNow that we do not need the new object while holding the highly trafficed
phk [Sat, 28 Feb 2009 18:34:07 +0000 (18:34 +0000)]
Now that we do not need the new object while holding the highly trafficed
objhead lock, don't preallocate objects.

One unfortunate effect of this preallocation, only recently identified:

On systems with high number of worker threads and high hitrates, considerable
time could elapse between the preallocation of an object to a worker
thread and the use of that object.

This could make cache-misses use a much larger working set size than
really necessary.

I do not have access to any benchmarks that show a credible performance
difference, but reports are most welcome.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3842 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoOn a cache-miss, insert only the (busy) objcore, leave the actual
phk [Sat, 28 Feb 2009 18:18:23 +0000 (18:18 +0000)]
On a cache-miss, insert only the (busy) objcore, leave the actual
object allocation and insertion for later in cache_center.c

For now, do it right away in cache_center, before going to STP_MISS.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3841 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoEliminate the parent-child linkage between objects involved in grace.
phk [Sat, 28 Feb 2009 17:20:19 +0000 (17:20 +0000)]
Eliminate the parent-child linkage between objects involved in grace.

The original thinking was that only objects being prefetched were
relevant, but we take a more expansive view now.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3840 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoNow that ESI parsing is not done while we execute vcl_fetch{}, the
phk [Fri, 27 Feb 2009 16:09:03 +0000 (16:09 +0000)]
Now that ESI parsing is not done while we execute vcl_fetch{}, the
majority of the cache_vrt_esi.c file is no longer "VRT" relevant.

Move the one function which is VRT to cache_vrt.c and rename
cache_vrt_esi.c to cache_esi.c

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3839 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoTIMBER!
phk [Fri, 27 Feb 2009 15:20:57 +0000 (15:20 +0000)]
TIMBER!

Move the vcl_fetch{} execution up between fetching the headers and the
body of the backend response.

This makes obj.* unavailable in vcl_fetch{} and replaces it with a
new beresp.* family of variables.

This paves the way for a lot of good stuff, such as streaming pass,
on-the-fly delivery of misses, storage selection based on headers
etc.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3838 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoChange assert to error
phk [Fri, 27 Feb 2009 13:29:58 +0000 (13:29 +0000)]
Change assert to error

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3837 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMove the http_conn into the bereq.
phk [Fri, 27 Feb 2009 12:17:52 +0000 (12:17 +0000)]
Move the http_conn into the bereq.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3836 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agomove object twiddling from FetchHdr() to cache_center.c
phk [Fri, 27 Feb 2009 12:10:01 +0000 (12:10 +0000)]
move object twiddling from FetchHdr() to cache_center.c

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3835 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a beresp.* variable family, which contains the backend response
phk [Fri, 27 Feb 2009 12:02:50 +0000 (12:02 +0000)]
Add a beresp.* variable family, which contains the backend response
before filtering.

Cut Fetch() into two, FetchHdr() and FetchBody(), for now, just call
them sequentially from cache_center.c

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3834 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoDon't pollute bereq.* in vcl_fetch{} with the reply
phk [Fri, 27 Feb 2009 11:36:16 +0000 (11:36 +0000)]
Don't pollute bereq.* in vcl_fetch{} with the reply

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3833 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoSorry, forgot to commit this file.
phk [Fri, 27 Feb 2009 10:06:49 +0000 (10:06 +0000)]
Sorry, forgot to commit this file.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3832 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years ago$delta_time should never be 0, but just in case...
petter [Thu, 26 Feb 2009 13:36:44 +0000 (13:36 +0000)]
$delta_time should never be 0, but just in case...

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3831 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd the two new stevedore entrypoints:
phk [Thu, 26 Feb 2009 12:53:28 +0000 (12:53 +0000)]
Add the two new stevedore entrypoints:

->object() is (to be) called when a cached object is ready
->close() is (to be) called on orderly stops of the worker.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3830 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a alloc/free function.
phk [Thu, 26 Feb 2009 12:22:50 +0000 (12:22 +0000)]
Add a alloc/free function.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3829 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoFix compilation problem on Solaris - missing include
tfheen [Thu, 26 Feb 2009 08:36:28 +0000 (08:36 +0000)]
Fix compilation problem on Solaris - missing include

Solaris appears to need #include <sys/wait.h> for WEXITSTATUS to be defined.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3828 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoReplace __inline with inline
tfheen [Wed, 25 Feb 2009 11:40:39 +0000 (11:40 +0000)]
Replace __inline with inline

C99 standardised "inline" and the Sun compiler doesn't like __inline,
so change to using inline consistently.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3827 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMake sure system "..." returns successfully
tfheen [Wed, 25 Feb 2009 10:50:49 +0000 (10:50 +0000)]
Make sure system "..." returns successfully

We didn't check the return status of system, making failures in a00009
go unnoticed.  Fix this and fix a00009 to not fail when run
uninstalled.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3826 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoStop segfaulting when trying to set a nonexistant waiter
tfheen [Wed, 25 Feb 2009 10:25:43 +0000 (10:25 +0000)]
Stop segfaulting when trying to set a nonexistant waiter

We failed to properly check for the end of the list of waiters.
Handle this correctly and add a test case

Fixes #428

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3825 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdded -x option to get XML output. As with the -1 option, it prints it once and quits...
petter [Wed, 25 Feb 2009 07:46:42 +0000 (07:46 +0000)]
Added -x option to get XML output. As with the -1 option, it prints it once and quits, and you can choose what fields to include with the -f option. Example XML output is

<?xml version="1.0"?>
<varnishstat timestamp="2009-02-25T08:45:02">
<stat>
<name>client_req</name>
<value>2656016</value>
<description>Client requests received</description>
</stat>
</varnishstat>

varnishstat.xsd contains the XML schema for the output.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3824 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoClean default.vcl on distclean
tfheen [Tue, 24 Feb 2009 12:00:05 +0000 (12:00 +0000)]
Clean default.vcl on distclean

Distclean (in the build directory) should clean out default.vcl in the
build directory.  This fixes a strange FTBFS on FreeBSD.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3823 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoExplain what functions do.
phk [Mon, 23 Feb 2009 15:58:39 +0000 (15:58 +0000)]
Explain what functions do.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3822 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoRead and Write the segment list.
phk [Mon, 23 Feb 2009 15:48:33 +0000 (15:48 +0000)]
Read and Write the segment list.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3821 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMake sure we ship persistent.h too
tfheen [Mon, 23 Feb 2009 15:10:35 +0000 (15:10 +0000)]
Make sure we ship persistent.h too

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3819 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd defines for MAP_NOCORE / MAP_NOSYNC so this compiles on Linux
tfheen [Mon, 23 Feb 2009 15:10:33 +0000 (15:10 +0000)]
Add defines for MAP_NOCORE / MAP_NOSYNC so this compiles on Linux

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3818 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoDon't use a 500 status as a hint to quit the data collector thread. Tell it by a...
petter [Mon, 23 Feb 2009 14:51:43 +0000 (14:51 +0000)]
Don't use a 500 status as a hint to quit the data collector thread. Tell it by a shared variable.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3816 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoget close to reading segment table
phk [Mon, 23 Feb 2009 14:12:33 +0000 (14:12 +0000)]
get close to reading segment table

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3815 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMinor HTML-clean ups
petter [Mon, 23 Feb 2009 13:43:06 +0000 (13:43 +0000)]
Minor HTML-clean ups

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3814 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoFixed issue with response not containing correct headers. CSS was sent as text/plain...
petter [Mon, 23 Feb 2009 13:42:32 +0000 (13:42 +0000)]
Fixed issue with response not containing correct headers. CSS was sent as text/plain, causing firefox to ignore it.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3813 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoFetching ALL the columns when generating graphs is stupid and time consuming. Now...
petter [Mon, 23 Feb 2009 12:44:13 +0000 (12:44 +0000)]
Fetching ALL the columns when generating graphs is stupid and time consuming. Now we only fetch the required fields.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3812 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMove on to the worker process side of persistent storage
phk [Mon, 23 Feb 2009 11:31:08 +0000 (11:31 +0000)]
Move on to the worker process side of persistent storage

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3811 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoThe SHA256 is outside the signature struct
phk [Mon, 23 Feb 2009 11:07:06 +0000 (11:07 +0000)]
The SHA256 is outside the signature struct

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3810 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoA bit of FlexeLint nitpicking
phk [Mon, 23 Feb 2009 11:04:19 +0000 (11:04 +0000)]
A bit of FlexeLint nitpicking

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3809 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoCreate/validate the three signed tables (ban1+2, segments)
phk [Mon, 23 Feb 2009 10:46:50 +0000 (10:46 +0000)]
Create/validate the three signed tables (ban1+2, segments)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3808 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd symbolic SHA256_LEN for the size of the digest.
phk [Mon, 23 Feb 2009 10:46:07 +0000 (10:46 +0000)]
Add symbolic SHA256_LEN for the size of the digest.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3807 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoCode to create, map and ident the storage silo
phk [Mon, 23 Feb 2009 10:07:51 +0000 (10:07 +0000)]
Code to create, map and ident the storage silo

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3806 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoGain some speed by at least creating index on the stat table
petter [Mon, 23 Feb 2009 07:17:20 +0000 (07:17 +0000)]
Gain some speed by at least creating index on the stat table

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3805 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoBring in the first inkling of the persistent storage module
phk [Sun, 22 Feb 2009 17:48:24 +0000 (17:48 +0000)]
Bring in the first inkling of the persistent storage module

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3804 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMove the catalogs of storage and hash modules closer to home.
phk [Sun, 22 Feb 2009 16:36:37 +0000 (16:36 +0000)]
Move the catalogs of storage and hash modules closer to home.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3803 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoSome constifications
phk [Fri, 20 Feb 2009 19:06:07 +0000 (19:06 +0000)]
Some constifications

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3802 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoHandle worker thread on subrequests correctly
phk [Fri, 20 Feb 2009 18:41:57 +0000 (18:41 +0000)]
Handle worker thread on subrequests correctly

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3801 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoDon't clean on every request, that was for debugging only.
phk [Fri, 20 Feb 2009 18:13:42 +0000 (18:13 +0000)]
Don't clean on every request, that was for debugging only.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3800 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoDon't try to rush waiting sessions of refcount is zero, there cannot be
phk [Fri, 20 Feb 2009 18:05:34 +0000 (18:05 +0000)]
Don't try to rush waiting sessions of refcount is zero, there cannot be
any (they would hold a reference).

Should be merged to 2.0.3

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3799 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a lot more paranoia asserts
phk [Fri, 20 Feb 2009 18:00:06 +0000 (18:00 +0000)]
Add a lot more paranoia asserts

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3798 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoPut the cleanup next to the preallocation and remember to release
phk [Fri, 20 Feb 2009 17:21:30 +0000 (17:21 +0000)]
Put the cleanup next to the preallocation and remember to release
the preallocated objcore

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3797 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a delta-stats structure to worker threads and keep
phk [Fri, 20 Feb 2009 15:25:06 +0000 (15:25 +0000)]
Add a delta-stats structure to worker threads and keep
track of n_object and n_objecthead in them.

Accumulate into global stats after work is done if the lock is
free and always before going idle.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3796 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMake "hcb.dump" a CLI command
phk [Fri, 20 Feb 2009 15:18:46 +0000 (15:18 +0000)]
Make "hcb.dump" a CLI command

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3795 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd a argument to the stat_field macro, to be used with locking evilness
phk [Fri, 20 Feb 2009 14:00:16 +0000 (14:00 +0000)]
Add a argument to the stat_field macro, to be used with locking evilness
shortly.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3794 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoOpen the socket non-blocking so we can time out if the management console doesn't...
petter [Fri, 20 Feb 2009 13:45:35 +0000 (13:45 +0000)]
Open the socket non-blocking so we can time out if the management console doesn't print a banner

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3793 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdded possibility to add nodes to a group without have the settings of the group...
petter [Fri, 20 Feb 2009 11:45:30 +0000 (11:45 +0000)]
Added possibility to add nodes to a group without have the settings of the group or node altered, which can be usefull to group node logically if the web GUI is used as a monitoring tool. Also fixed a logical bug in the settings inheritance code.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3792 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoBe more defensive around objhead retirement.
phk [Fri, 20 Feb 2009 11:05:14 +0000 (11:05 +0000)]
Be more defensive around objhead retirement.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3791 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoRemove unused hoh_digest
phk [Fri, 20 Feb 2009 09:56:49 +0000 (09:56 +0000)]
Remove unused hoh_digest

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3790 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoForgot to escape \ when sending VCL to management port
petter [Fri, 20 Feb 2009 06:53:55 +0000 (06:53 +0000)]
Forgot to escape \ when sending VCL to management port

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3789 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoSplit a couple of generally useful routines out of storage_file
phk [Thu, 19 Feb 2009 16:00:22 +0000 (16:00 +0000)]
Split a couple of generally useful routines out of storage_file

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3788 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoSome minor cosmetics and bugs discovered during documentation writing.
petter [Thu, 19 Feb 2009 14:10:35 +0000 (14:10 +0000)]
Some minor cosmetics and bugs discovered during documentation writing.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3787 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoA mojor update to the web GUI, unfortunately all done in one go. Nevertheless, here...
petter [Wed, 18 Feb 2009 15:36:25 +0000 (15:36 +0000)]
A mojor update to the web GUI, unfortunately all done in one go. Nevertheless, here it is, and has many improvements to the christmas edition commited in december:

- the GUI now uses a sqlite3 database for storage, so all configuratons are stored
- aggregated statistics for groups
- graphs on demand for raw data
- CSV export of stat data
- 'Restricted mode' to get a web GUI which prevent you from doing changes
- logging of changes performed in the GUI
- generall minor improvements in the GUI

Additional perl module dependencies are Algorithm::Diff and DBD::Sqlite3

A proper documentation will appear on the wiki in a couple of days to describe all that can be done with the web GUI.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3786 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMake sure we have a C99 compiler
tfheen [Wed, 18 Feb 2009 08:15:44 +0000 (08:15 +0000)]
Make sure we have a C99 compiler

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3785 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoCorrect and complete description of -a.
des [Tue, 17 Feb 2009 17:10:29 +0000 (17:10 +0000)]
Correct and complete description of -a.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3784 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agowith the prefetch timer out of the way, we do not need the ttl
phk [Tue, 17 Feb 2009 11:11:57 +0000 (11:11 +0000)]
with the prefetch timer out of the way, we do not need the ttl
in objcore, only when the timer fires.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3783 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoNow that we only have one timer firing, remove stuff to deal with
phk [Tue, 17 Feb 2009 10:50:42 +0000 (10:50 +0000)]
Now that we only have one timer firing, remove stuff to deal with
different events.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3782 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoEliminate prefetch, grace was a much better idea.
phk [Tue, 17 Feb 2009 10:29:20 +0000 (10:29 +0000)]
Eliminate prefetch, grace was a much better idea.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3781 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAssert that we got an objcore
phk [Tue, 17 Feb 2009 10:12:21 +0000 (10:12 +0000)]
Assert that we got an objcore

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3780 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMove the ttl from object up to the objcore
phk [Tue, 17 Feb 2009 10:06:19 +0000 (10:06 +0000)]
Move the ttl from object up to the objcore

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3779 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMove the pass flag from the object to the objcore.
phk [Tue, 17 Feb 2009 09:50:05 +0000 (09:50 +0000)]
Move the pass flag from the object to the objcore.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3778 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoRemove __BEGIN_DECLS and __END_DECLS as those do not exist on Solaris (and we do...
tfheen [Tue, 17 Feb 2009 09:48:10 +0000 (09:48 +0000)]
Remove __BEGIN_DECLS and __END_DECLS as those do not exist on Solaris (and we do not need them)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3777 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoConvert assert to error report
phk [Tue, 17 Feb 2009 09:46:33 +0000 (09:46 +0000)]
Convert assert to error report

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3776 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd documentation for cli_banner
tfheen [Tue, 17 Feb 2009 09:09:08 +0000 (09:09 +0000)]
Add documentation for cli_banner

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3775 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAllow for pass opbjects not having a objcore
phk [Mon, 16 Feb 2009 15:34:00 +0000 (15:34 +0000)]
Allow for pass opbjects not having a objcore

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3774 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMove the object busy flag up to the objcore.
phk [Mon, 16 Feb 2009 15:06:18 +0000 (15:06 +0000)]
Move the object busy flag up to the objcore.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3773 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoCompress objcore a bit more by squezing 32 bit fields to 8 bit, still
phk [Mon, 16 Feb 2009 14:22:00 +0000 (14:22 +0000)]
Compress objcore a bit more by squezing 32 bit fields to 8 bit, still
leaving plenty of space.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3772 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoCorrect copyright and attribution.
des [Mon, 16 Feb 2009 13:40:29 +0000 (13:40 +0000)]
Correct copyright and attribution.

Approved by: phk, ssm

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3771 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoReduce objhead size by overloading.
phk [Mon, 16 Feb 2009 13:38:39 +0000 (13:38 +0000)]
Reduce objhead size by overloading.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3770 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoTo prevent masking bugs, disable auto_restart by default.
phk [Fri, 13 Feb 2009 13:43:30 +0000 (13:43 +0000)]
To prevent masking bugs, disable auto_restart by default.

Enable it explicitly in the one testcase where we check that it works.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3769 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMake sure to clean the VBE properly before releasing it.
phk [Fri, 13 Feb 2009 13:42:44 +0000 (13:42 +0000)]
Make sure to clean the VBE properly before releasing it.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3768 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd two hidden CLI commands for panic'ing the master and worker process.
phk [Fri, 13 Feb 2009 12:16:34 +0000 (12:16 +0000)]
Add two hidden CLI commands for panic'ing the master and worker process.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3767 d4fa192b-c00b-0410-8231-f00ffab90ce4