]>
err.no Git - varnish/log
phk [Thu, 26 Jun 2008 21:42:05 +0000 (21:42 +0000)]
Oops, only enable $evilhack when we want to.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2838
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 21:09:32 +0000 (21:09 +0000)]
Testcase for ESI fragmented storage parsing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2837
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 21:07:07 +0000 (21:07 +0000)]
Add an undocumented debug facility that allows us to force a received
object to be fragmented into smaller bits are out command.
This is necessary to be able to write sensible testcases for the
abilities of the ESI parsing code to navigate storage boundaries.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2836
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 12:41:51 +0000 (12:41 +0000)]
Test for HTTP/1.0 (EOF) transmission
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2835
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 12:32:06 +0000 (12:32 +0000)]
Two slow testcases to test object expiry
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2834
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 12:12:29 +0000 (12:12 +0000)]
Test If-Modified-Since
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2833
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:55:39 +0000 (11:55 +0000)]
ESI testcase for including from different host (http://...)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2832
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:49:58 +0000 (11:49 +0000)]
ESI include with relative src
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2831
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:36:46 +0000 (11:36 +0000)]
Test banning a hash
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2830
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:36:07 +0000 (11:36 +0000)]
Test banning a URL
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2829
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:24:25 +0000 (11:24 +0000)]
A testcase for the simple_list hasher
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2828
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:17:03 +0000 (11:17 +0000)]
Testcase for the poll acceptor
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2827
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 11:15:22 +0000 (11:15 +0000)]
Allow the selector to be chosen by parameter "acceptor"
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2826
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:41:56 +0000 (10:41 +0000)]
Commented ESI:include
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2825
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:39:23 +0000 (10:39 +0000)]
ESI:include test case
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2824
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:36:54 +0000 (10:36 +0000)]
Test ESI CDATA quoting
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2823
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:29:07 +0000 (10:29 +0000)]
The first two incomplete ESI testcases
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2822
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:28:49 +0000 (10:28 +0000)]
Also receive chunked encoding bodies.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2821
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:27:44 +0000 (10:27 +0000)]
Oops: only whine when we do have an unterminated strin
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2820
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 10:26:12 +0000 (10:26 +0000)]
Better diagnostics
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2819
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 09:45:29 +0000 (09:45 +0000)]
Make -body automatically create a Content-Length header in txresp and txreq.
For lowerlevel syntax based tests, we can revert to send and chunked.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2818
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 09:22:46 +0000 (09:22 +0000)]
Use 10 second CLI timeout
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2817
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 08:53:51 +0000 (08:53 +0000)]
Add -chunked primitive for easier message composition.
Go over varnishtest with FlexeLint
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2816
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 22:09:00 +0000 (22:09 +0000)]
Test case for CLI help and parameter functions
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2815
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 21:57:56 +0000 (21:57 +0000)]
Add chunked encoding from backend test.
Fix copy&paste mistake in test b00006
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2814
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 21:52:55 +0000 (21:52 +0000)]
Add a -s malloc testcase
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2813
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 21:22:13 +0000 (21:22 +0000)]
A simple ACL testcase
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2812
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 21:12:04 +0000 (21:12 +0000)]
Test for match with leading and trailing space as well.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2811
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 21:06:40 +0000 (21:06 +0000)]
Remember to test the case with missing vary header
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2810
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 20:53:43 +0000 (20:53 +0000)]
Add a Vary testcase
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2809
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 15:56:05 +0000 (15:56 +0000)]
Grap reference count on backend used by name in directors.
Fixes ticket 263
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2808
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 15:54:52 +0000 (15:54 +0000)]
Testcase for ticket 263
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2807
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 15:36:28 +0000 (15:36 +0000)]
Fix a startup race condition: Make sure the threadpools are created
before the herder starts, in order that it will create the minimum
number of threads in the pool.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2806
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Wed, 25 Jun 2008 13:33:12 +0000 (13:33 +0000)]
Set version to trunk in configure.ac
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2805
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Wed, 25 Jun 2008 13:32:29 +0000 (13:32 +0000)]
Set version to 2.0-tp2 in configure.ac
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2803
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 10:04:49 +0000 (10:04 +0000)]
Compensate for \r being magic now.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2802
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 09:59:21 +0000 (09:59 +0000)]
Fix for ticket 262: When we trim leading whitespace that was
read-ahead, NUL the rxbuffer.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2801
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 09:58:43 +0000 (09:58 +0000)]
Add regression test for ticket 262
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2800
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 09:58:31 +0000 (09:58 +0000)]
Add "send" command for explicitly sending bytestrings
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2799
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 25 Jun 2008 09:57:54 +0000 (09:57 +0000)]
Handle \r in strings
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2798
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 21:39:04 +0000 (21:39 +0000)]
Fix Flexelint complaints
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2797
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 21:37:22 +0000 (21:37 +0000)]
Fix an interesting shortcoming in GCC's error checks which Flexelint
correctly spotted: deconsting through strchr().
A couple of other flexelint nits while here
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2796
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 21:30:24 +0000 (21:30 +0000)]
Don't whine about ../../config.h
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2795
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 21:29:56 +0000 (21:29 +0000)]
Also tally Notes
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2794
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 21:29:32 +0000 (21:29 +0000)]
Make the debug element conditional on DEBUG macro being defined.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2793
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 18:12:02 +0000 (18:12 +0000)]
Ooops, last commit got one file more than intended.
Here is the fix for the regsub() issue: Don't release negative bytecounts,
we have the special variant WS_ReleaseP() just for jobs like this.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2792
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 18:09:38 +0000 (18:09 +0000)]
Never release more bytes than there is room for.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2791
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 24 Jun 2008 11:46:24 +0000 (11:46 +0000)]
#260: make pidfile mode less restrictive.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2790
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Tue, 24 Jun 2008 10:57:59 +0000 (10:57 +0000)]
Add test to exercise the -s parameter
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2789
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Tue, 24 Jun 2008 10:53:56 +0000 (10:53 +0000)]
Fix segfault when reset_cmds is called for cmd_shell
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2788
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 10:35:15 +0000 (10:35 +0000)]
Add a "shell" keyword for executing shell commands with system(3).
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2787
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 10:15:17 +0000 (10:15 +0000)]
Catch two other return cases from smf_init() so we don't close
the storage file by accident.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2786
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 10:04:48 +0000 (10:04 +0000)]
Fix code, so varnish will still start as long as at least one listen
address works.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2785
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 24 Jun 2008 10:04:08 +0000 (10:04 +0000)]
Add a testcase for starting with some bad listen sockets.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2784
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Tue, 24 Jun 2008 08:21:42 +0000 (08:21 +0000)]
Move setting of TESTS inside the if ENABLE_TESTS block so as to make make distcheck happy
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2783
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Tue, 24 Jun 2008 08:18:10 +0000 (08:18 +0000)]
Add missing header files to make make distcheck happier
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2782
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Tue, 24 Jun 2008 07:45:56 +0000 (07:45 +0000)]
Drop debian/Makefile from configure.ac too
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2781
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 23 Jun 2008 16:49:48 +0000 (16:49 +0000)]
On FreeBSD at least "localhost" resolves to two address, one IPv4
and one IPv6, resort to "127.0.0.1"
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2780
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Mon, 23 Jun 2008 14:11:02 +0000 (14:11 +0000)]
Stop distributing debian/ in the tarball
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2779
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Mon, 23 Jun 2008 13:23:45 +0000 (13:23 +0000)]
Be explicit about listening to localhost
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2778
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 22:00:02 +0000 (22:00 +0000)]
Macroize the method function arguments
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2777
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 21:41:20 +0000 (21:41 +0000)]
Add a start/stop CLI command test
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2776
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 21:40:21 +0000 (21:40 +0000)]
A better solution than mutexes: give the thread that listens to
varnish debugging output a separate log handle.
(The point here is to maximize the amount of concurrency we can
simulate. Down the road, the logging may become pre thread with
a final sorting pass to get all the messages correctly interleaved.)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2775
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 21:34:50 +0000 (21:34 +0000)]
Hold a mutex for each log destination
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2774
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 14:20:31 +0000 (14:20 +0000)]
More work to polish the manager/client interaction, and get more
systematic messages into syslog.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2773
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 12:15:11 +0000 (12:15 +0000)]
Use instance name (-n) or "varnishd" for syslog identifier.
Log under facility LOCAL0
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2772
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 11:50:39 +0000 (11:50 +0000)]
Add a VBM bitmap for keeping track of which filedescriptors the worker
process should inherit, and close all other fd's in the child.
Rename variables used for the various fd's to more understandable names.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2771
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 11:46:00 +0000 (11:46 +0000)]
Polish this to the new more general usage:
Allocate smaller lumps.
Don't extend to clear bits.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2770
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 11:41:32 +0000 (11:41 +0000)]
Add VBM, a resizing bitmap implementation we previously had in kqueue.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2769
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 08:50:23 +0000 (08:50 +0000)]
Use VLU to assemble output from the C-compiler.
Close all fd's above stderr before exec'ing the C-compiler.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2768
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 08:10:38 +0000 (08:10 +0000)]
Add testcase for multiple thread pools
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2767
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 08:10:19 +0000 (08:10 +0000)]
Default to 2 thread pools again.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2766
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 22 Jun 2008 08:10:05 +0000 (08:10 +0000)]
Make sure all pools have their minimum complement of threads.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2765
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 21:04:59 +0000 (21:04 +0000)]
Change an assert() to diagnostic() since it negates the benefit we
seek from the HTTP header indentification speedup.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2764
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 21:03:27 +0000 (21:03 +0000)]
Add a diagnostic() wrapper around assert() for checks which are so expensive
that we may want to compile them out for performance at a latter date.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2763
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 20:56:14 +0000 (20:56 +0000)]
Avoid <ctype.h> entirely
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2762
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 20:51:58 +0000 (20:51 +0000)]
Use vct character classification instead of private table.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2761
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 18:57:44 +0000 (18:57 +0000)]
Regression test case for ticket 255
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2760
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 18:55:42 +0000 (18:55 +0000)]
editor-bogon: add missing ')'
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2759
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 18:55:13 +0000 (18:55 +0000)]
NB: some of this commit sneaked into #2757
Fix http_GetHdrField() to use the correct RFC2616 syntax for tokens
and separators.
Fixes ticket #255.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2758
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 18:51:29 +0000 (18:51 +0000)]
Add vct_issepctl()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2757
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 18:37:48 +0000 (18:37 +0000)]
Collapse the upper/lower alpha class until we need them separate.
Add "separator" class.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2756
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 17:18:15 +0000 (17:18 +0000)]
Go back to 1 pool by default, there is a startup problem if you only
get a single request.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2755
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 08:39:14 +0000 (08:39 +0000)]
Assert that deadlines are not NAN
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2754
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 21 Jun 2008 07:48:02 +0000 (07:48 +0000)]
Fix the default thread pool parameters to 2 pools, 500 threads and 300 seconds.
Add usage for -u while here.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2753
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Sat, 21 Jun 2008 06:42:34 +0000 (06:42 +0000)]
Use subtraction rather than digittoint since digittoint does not exist on non-BSDs
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2752
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 21:33:21 +0000 (21:33 +0000)]
Give BAN_Add() an (option) cli argument so errors can be reported
but also give it a return value since we don't have a cli in VCL.
However, I'm not sure how we will report the error in VCL, so still
log the trouble in shmlog.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2751
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 21:16:22 +0000 (21:16 +0000)]
Rename AddBan() to BAN_Add() for consistency.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2750
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 15:49:10 +0000 (15:49 +0000)]
Spell "content-length" correctly.
Add regresion test for ticket 102
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2749
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 15:34:14 +0000 (15:34 +0000)]
Add a TCP reuse testcase, and polish the a00006 case a bit
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2748
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 15:26:02 +0000 (15:26 +0000)]
More support for message bodies
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2747
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 14:51:51 +0000 (14:51 +0000)]
Mention that strings use %xx escapes in VCL.
Closes 252
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2746
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 14:47:50 +0000 (14:47 +0000)]
Add a boolean paramter "log_local_address" which enables logging of
the local socket address in the SessionOpen records in SHM.
This costs us an extra getsockname(2) call per connection, so default
to off.
SHM clients can tell the state of this option by the number of fields
in SessionOpen: 3 (off) or 4 (on).
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2745
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 13:08:52 +0000 (13:08 +0000)]
Add a param "log_hashstring" that controls logging of the completed
hash string in SHM log under the "Hash" tag.
Enabling this increases pressure on the SHM log considerably, so don't
enable it, unless you need it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2744
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 12:43:45 +0000 (12:43 +0000)]
Make regsub() return an empty string if it gets no input.
Fixes ticket 251 (regression test added)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2743
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 12:25:25 +0000 (12:25 +0000)]
forgot to svn add this one: logging functions for varnishtest
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2742
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 11:58:25 +0000 (11:58 +0000)]
NB: FLAGDAY!
Make an executive decision, and change the regsub() replacement specifiers to
get something which is consistent and nontroubling for URL and query strings.
Since $ and & both are heavily used in query strings, we (DES & I)
have chosen to use \0 ... \9 for replacement indicators, with \0
being the "all matched text" replacement and \1...\9 replacing
with tne N'th paranthesized subexpressions.
regsub("_barf_", "(b)(a)(r)(f)", "\0\4\3\2\\p") -> "_barffra\p_"
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2741
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 10:20:30 +0000 (10:20 +0000)]
Add regsub test case so I don't break it again.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2740
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 10:20:12 +0000 (10:20 +0000)]
Fix a number of issues and bugs with regsub():
Allow '\' to escape the next char.
Make '$$' be the same as '&': entire match
XXX: NB: Should we drop the sed(1) usage of '&' here, it means
XXX: a lot of backslashing in query string urls ?
Make $-digit work correctly.
Fixes ticket 249
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2739
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 20 Jun 2008 10:15:56 +0000 (10:15 +0000)]
Add a hand function to safely add text to a txt
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2738
d4fa192b -c00b-0410-8231-
f00ffab90ce4