]>
err.no Git - varnish/log
knutroy [Wed, 5 Sep 2007 14:53:25 +0000 (14:53 +0000)]
Forgot to update MANIFEST.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1938
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Wed, 5 Sep 2007 12:49:05 +0000 (12:49 +0000)]
* Added POD.
* Moved Varnish::Test::Server::Connection to its own module file.
* Removed TODO which was not too exciting anyway.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1937
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Tue, 4 Sep 2007 14:00:13 +0000 (14:00 +0000)]
* Added information about test framework to "Inside Varnish".
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1936
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Tue, 4 Sep 2007 10:55:25 +0000 (10:55 +0000)]
* Set statedir to /var/lib, to conform to debian packaging standards.
* Removed -n switch from varnish defaults file and varnishlog init script.
Use the default instance name instead. This makes sure varnish utilities work
without having to use the -n switch for the default instance.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1935
d4fa192b -c00b-0410-8231-
f00ffab90ce4
cecilihf [Tue, 4 Sep 2007 08:04:48 +0000 (08:04 +0000)]
Missing 0
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1934
d4fa192b -c00b-0410-8231-
f00ffab90ce4
cecilihf [Tue, 4 Sep 2007 08:03:43 +0000 (08:03 +0000)]
Copy-paste error.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1933
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Mon, 3 Sep 2007 10:12:29 +0000 (10:12 +0000)]
* Added Makefile.PL to test framework.
* Moved varnish-regress.pl to subdirectory "bin".
* Minor POD additions.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1932
d4fa192b -c00b-0410-8231-
f00ffab90ce4
cecilihf [Fri, 31 Aug 2007 12:14:06 +0000 (12:14 +0000)]
Added support for load balancing among backends in varnish. It is still experimental
and very basic, but it should be ready for testing. Two strategies for load balancing
are implemented: a simple round robin, and a simple weighted random. The following
is an example configuration in vcl. The weight parameter for random is optional. Default
is equal weight.
backend foo {
set backend.host = "foo.bar.com";
set backend.port = "http";
}
backend_round_robin rr {
set backend.set = {
{ "foo1.bar.com", "http" }
{ "foo2.bar.com", "http" }
{ "foo3.bar.com", "http" }
};
}
backend_random rrr {
set backend.set = {
{ "foo1.bar.com", "http", 0.3 }
{ "foo2.bar.com", "http", 0.6 }
{ "foo3.bar.com", "http", 0.1 }
};
}
sub vcl_recv {
if {req.http.host ~ "foo"} {
req.backend = foo;
} elseif {req.http.host ~ "bar"} {
req.backend = rr;
} else {
req.backend = rrr;
}
}
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1931
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 31 Aug 2007 07:03:32 +0000 (07:03 +0000)]
Fix typo that made worker process panic whenever a request came in without
a Host: header.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1930
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 29 Aug 2007 15:25:58 +0000 (15:25 +0000)]
Readability
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1928
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 29 Aug 2007 15:24:42 +0000 (15:24 +0000)]
Add missing files.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1927
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 29 Aug 2007 15:23:52 +0000 (15:23 +0000)]
Tabify
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1926
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 29 Aug 2007 15:21:59 +0000 (15:21 +0000)]
Improve readability.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1925
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 25 Aug 2007 21:35:11 +0000 (21:35 +0000)]
Add style information for <screen>, and fix marker placement for ordered
lists.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1924
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 25 Aug 2007 19:38:57 +0000 (19:38 +0000)]
Improve the rendering of titles.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1923
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 25 Aug 2007 13:57:32 +0000 (13:57 +0000)]
Adjust title sizes.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1922
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Fri, 24 Aug 2007 13:57:58 +0000 (13:57 +0000)]
Minor fix to avoid some potential warnings.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1921
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Fri, 24 Aug 2007 13:45:11 +0000 (13:45 +0000)]
Added first release of automatic build and test utility.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1920
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 21 Aug 2007 18:59:35 +0000 (18:59 +0000)]
Almost total rewrite, but same functionality, hopefully less the races
in ticket #144.
Use per backend mutex, do refcounts right, protect the address structures
with a sequence number.
Should close #144.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1919
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 21 Aug 2007 18:57:14 +0000 (18:57 +0000)]
Move the connection (data structure pool) into the generic backend
handling.
Add more asserts.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1918
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 21 Aug 2007 16:48:00 +0000 (16:48 +0000)]
Be much more paranoid about backends, now that they can go away.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1917
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 21 Aug 2007 15:37:17 +0000 (15:37 +0000)]
Synchronize with bin/varnishd/mgt_vcc.c.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1916
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 21 Aug 2007 15:36:59 +0000 (15:36 +0000)]
Try to make this comment a little more visible.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1915
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Tue, 21 Aug 2007 11:48:57 +0000 (11:48 +0000)]
* Connect to management socket after select-loop is started.
* Removed Varnish::Test::Varnish::kill() which we do not use.
(Varnish::Test::Varnish::shutdown() does kill() and more.)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1914
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 21 Aug 2007 09:23:31 +0000 (09:23 +0000)]
Make sure wrk->used is always set when we park on an object, we might be
unlucky multiple times in which case the responsibility falls back to
cnt_lookup().
Fixes 144.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1913
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 21:11:15 +0000 (21:11 +0000)]
Add a stylesheet that does a pretty good job of generating Trac-compatible
WikiText from a change log.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1912
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 19:49:38 +0000 (19:49 +0000)]
Even more files...
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1909
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 19:27:08 +0000 (19:27 +0000)]
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1907
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 19:20:25 +0000 (19:20 +0000)]
Rewrap (no content changes)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1905
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 19:17:49 +0000 (19:17 +0000)]
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>.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1904
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 19:16:08 +0000 (19:16 +0000)]
Really render <code> elements correctly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1903
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 19:13:37 +0000 (19:13 +0000)]
Render <code> elements.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1902
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 16:59:16 +0000 (16:59 +0000)]
Catch up with recent commits.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1898
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 15:18:49 +0000 (15:18 +0000)]
Correct the lock.l_type logic for platforms where O_RDONLY is 0.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1896
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 12:45:58 +0000 (12:45 +0000)]
Privatize the "simple" aspect of the simple backend.
Move the VRT initializer for simple backends home.
Add a backend method to get hostname. This may be a hack.
Move fields private to "simple" to its private structure.
Add cleanup method to backend, so we can collect the garbage.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1895
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 12:19:16 +0000 (12:19 +0000)]
Give backends a reference count and reuse any existing identical backend
when a new VCL instantiates a backend.
Drop backends when their reference count goes to zero.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1894
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 12:18:15 +0000 (12:18 +0000)]
prefix change vbe -> bes
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1893
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 11:46:26 +0000 (11:46 +0000)]
Separate the generic backend handling from the backend "method".
For now all we have is a "simple" method, but we want more complex
methods later on, round-robin, least-busy and so on.
For now, fall into the other ditch and move everything to
cache_backend_simple.c, we will move bits back as the gain generality.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1892
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 11:08:07 +0000 (11:08 +0000)]
Wait longer for Varnish to start.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1890
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 11:05:48 +0000 (11:05 +0000)]
Remove the unnecessary third argument to VBE_ClosedFd() and remove
a couple of now pointless debugging messages in pipe mode.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1889
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 11:05:07 +0000 (11:05 +0000)]
Fix a long-standing bug in pipe-mode: We must pass the protocol version
across unchanged, otherwise the semantics of the Connection: header cannot
be interpreted correctly by the server.
wget(1) could trigger this problem and would have to wait for the server
to close the (seemingly idle) connection before continuing.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1888
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 10:52:59 +0000 (10:52 +0000)]
polish
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1886
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 10:41:17 +0000 (10:41 +0000)]
Get number of '%' signs right in param.show message for cc_command.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1885
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 10:39:05 +0000 (10:39 +0000)]
remove debugging message
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1884
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 10:36:16 +0000 (10:36 +0000)]
Make the new FlexeLint 8.00w happy again.
It's a fine point of C-linguistics, but I have to admit that in
certain universes it would have a point. Not this one though.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1883
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 10:21:07 +0000 (10:21 +0000)]
Make the C-compiler command a paramter, and generally clean up the
code that invokes it.
If fmtcheck(3) is available, we refuse pedal target practice.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1882
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 10:20:09 +0000 (10:20 +0000)]
Look for fmtcheck(3) function.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1881
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 10:13:16 +0000 (10:13 +0000)]
Clarified change
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1880
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 10:10:19 +0000 (10:10 +0000)]
Nit in previous commit
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1879
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 09:52:51 +0000 (09:52 +0000)]
Use time-limited polling loops to verify parent and child startup and child
shutdown, instead of relying on unordered events. Ignore anything that
appears on varnishd's std{out,err} except for an unexpected "child died",
which we handle by dying instead of emitting an event.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1878
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 09:42:56 +0000 (09:42 +0000)]
Added group
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1877
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 09:42:01 +0000 (09:42 +0000)]
If the first and only argument is 'list', list all available test cases.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1876
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 09:40:54 +0000 (09:40 +0000)]
Fixed silly race
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1875
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 09:37:59 +0000 (09:37 +0000)]
Added forgotten shebang to postinst
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1874
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 09:33:50 +0000 (09:33 +0000)]
Add file to install man pages; call varnish_setup_user from postinst
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1873
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Mon, 20 Aug 2007 09:12:41 +0000 (09:12 +0000)]
A svn trunk build needs automake, autoconf and libtool to build. A release tarball can remove these requirements.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1872
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 08:58:24 +0000 (08:58 +0000)]
Isolate the C-compiler even more with env -i and -nostdinc
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1870
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 08:57:42 +0000 (08:57 +0000)]
Use uppercase VBE prefix for VBE_new_bereq() and VBE_free_bereq()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1869
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 08:56:40 +0000 (08:56 +0000)]
Comment on postinst user-creation
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1868
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 08:55:34 +0000 (08:55 +0000)]
Added creation of varnish user and group to postinst
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1867
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 08:55:13 +0000 (08:55 +0000)]
Assert that the timestats we need for VSL_StatSess are valid.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1866
d4fa192b -c00b-0410-8231-
f00ffab90ce4
bahner [Mon, 20 Aug 2007 08:38:29 +0000 (08:38 +0000)]
Added -u and -g to default setup. Bumped release.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1865
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 07:56:25 +0000 (07:56 +0000)]
Change the way the result from a command is reported. Instead of separate
ev_varnish_command_ok and ev_varnish_command_unknown events, we now emit
a single ev_varnish_result event accompanied by the result code and text.
Furthermore, Varnish::Test::Varnish::send_command() will now wait for this
event and return the code and text.
Note that this reintroduces a race between ev_varnish_child_stopped and
ev_varnish_result; this will be dealt with in a later commit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1864
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 20 Aug 2007 07:35:10 +0000 (07:35 +0000)]
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1862
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 20 Aug 2007 06:57:03 +0000 (06:57 +0000)]
Use a TCP connection for management commands, rather than std{in,out,err},
as the latter is polluted with "Child said" and similar messages.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1861
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 19 Aug 2007 21:20:48 +0000 (21:20 +0000)]
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1859
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 19 Aug 2007 21:19:46 +0000 (21:19 +0000)]
Feed my virtual whitespace habbit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1858
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 19 Aug 2007 18:18:11 +0000 (18:18 +0000)]
Whitespace cleanup.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1857
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 19 Aug 2007 18:12:03 +0000 (18:12 +0000)]
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1855
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 19 Aug 2007 17:26:45 +0000 (17:26 +0000)]
Improve style.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1854
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 19 Aug 2007 17:17:58 +0000 (17:17 +0000)]
Whitespace cleanup
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1853
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Fri, 17 Aug 2007 12:30:58 +0000 (12:30 +0000)]
* Use CRLF EOL-markers.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1852
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Fri, 17 Aug 2007 12:23:45 +0000 (12:23 +0000)]
* Work-around for VCL-loading issue (apparently a race condition somewhere).
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1851
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Thu, 16 Aug 2007 13:07:55 +0000 (13:07 +0000)]
* Added automatic shutdown of Client-objects used by a test.
* Added more diagnostic messages wrt. left-over input data/junk.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1850
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 15 Aug 2007 12:27:54 +0000 (12:27 +0000)]
Show elapsed time in milliseconds instead of microseconds, and shrink some
columns to give the test description more space.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1848
d4fa192b -c00b-0410-8231-
f00ffab90ce4
knutroy [Wed, 15 Aug 2007 08:28:58 +0000 (08:28 +0000)]
* Added handling of event handlers using die(), by queuing "die"
events.
* Issue warning when IO::Multiplex has been subject to die() which
where not caught and queued. (This is known to happen e.g. when
hitting die() in Varnish::Test::Server::Connection::mux_eof(), so a
more complete, long-term die()-wrapping solution is needed.)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1847
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Tue, 14 Aug 2007 21:57:58 +0000 (21:57 +0000)]
* 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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1846
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 19:39:12 +0000 (19:39 +0000)]
Add (as a comment for now) some information on the shared memory log that
phk jotted down in #44.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1845
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 18:37:26 +0000 (18:37 +0000)]
The syntax has changed.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1843
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 18:37:15 +0000 (18:37 +0000)]
Use assert_xid() in testPassPOST().
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1842
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 18:36:15 +0000 (18:36 +0000)]
Fix assert_xid() and add assert_no_xid() (useful for piped requests)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1841
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 18:31:39 +0000 (18:31 +0000)]
Document what seems to be a bug in the framework.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1840
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 18:30:15 +0000 (18:30 +0000)]
Not all responses have XIDs.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1839
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 18:00:50 +0000 (18:00 +0000)]
Correct three bits worth of line noise. This fixes #129.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1838
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 17:58:09 +0000 (17:58 +0000)]
Readability nit
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1837
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 16:34:26 +0000 (16:34 +0000)]
Disable tests which we aren't entirely sure should succeed.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1836
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 16:34:06 +0000 (16:34 +0000)]
Use set_param() to enable VCL tracing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1835
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 16:33:46 +0000 (16:33 +0000)]
Add set_param()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1834
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 13:53:10 +0000 (13:53 +0000)]
Typo in previous commit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1833
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 13 Aug 2007 13:52:29 +0000 (13:52 +0000)]
Improve timeout handling, and add a server timeout which starts running when
the server gets a partial response. Similarly, on the client side, cancel
the timeout as soon as we get data, but restart it if we have to wait for
more. Also stop logging the full content of requests and responses; it
clutters the output and can easily be obtained using varnishlog(1).
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1832
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Fri, 10 Aug 2007 14:05:32 +0000 (14:05 +0000)]
Added missing dependency on "libc6-dev | libc-dev" for vcl compilation
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1831
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 10 Aug 2007 10:28:08 +0000 (10:28 +0000)]
Don't call functions outside the VRT namespace, even if this means
that we have to wrap strcmp().
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1830
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 10 Aug 2007 09:51:16 +0000 (09:51 +0000)]
Fix an architectural mistake:
What the compiled VCL code contains is not "a backend" but more
like a specification of or a template of a backend.
This matters because it controls the ownership of the backend
structure, and to a lesser degree because it complicates the VRT
api with a lot of pointless functions.
When vcl.use switches to a different VCL program, the backends of
the old VCL program may still be in use, and, provided the backend
declarations of the two VCL programs are identical, should continue
be carried over to the new VCL code.
This requires the memory and state to be owned by the central backend
code, and the VCL programs to just hold references and becomes even
more important when we keep complex state for load balancing on
individual backends.
This commit changes the ownership of the backends to the central code,
and moves the specification used in the compiled VCL program to a
communication structure for just that.
This also paves the way for introducing directors/policies for backend
selection and for good measure, I have named the default (ie: current)
backend policy "simple" for now.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1829
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 10 Aug 2007 09:36:42 +0000 (09:36 +0000)]
Document purge_url / purge_hash
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1827
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 10 Aug 2007 09:22:49 +0000 (09:22 +0000)]
Remove the "purge" compat, we never shipped it in a release.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1824
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 10 Aug 2007 07:13:02 +0000 (07:13 +0000)]
Avoid mixing statements and declarations (#147)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1823
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 9 Aug 2007 17:11:35 +0000 (17:11 +0000)]
Add some text about the cli + the munin / nagios / webmin plugins, and some
greek to help the document validate.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1822
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 9 Aug 2007 17:04:50 +0000 (17:04 +0000)]
Format <command>, <literal> and <varname> in monospace.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1821
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 9 Aug 2007 14:58:56 +0000 (14:58 +0000)]
Explain the meaning of obj.valid and obj.cacheable.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1819
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 9 Aug 2007 11:19:20 +0000 (11:19 +0000)]
Rename libcompat to libvarnishcompat, and make it dynamic.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1817
d4fa192b -c00b-0410-8231-
f00ffab90ce4