]> err.no Git - varnish/log
varnish
16 years agoFix a brain-o in the backend identification string: We need to
phk [Tue, 1 Jul 2008 19:23:56 +0000 (19:23 +0000)]
Fix a brain-o in the backend identification string: We need to
explicitly and uniquely identify all backend stanzas because they
have individual metrics.

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

16 years agoMake sure to distribute tests as well
tfheen [Mon, 30 Jun 2008 09:08:01 +0000 (09:08 +0000)]
Make sure to distribute tests as well

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

16 years agoOld patch: greatly improve performance and memory usage by using per-thread
des [Mon, 30 Jun 2008 02:11:54 +0000 (02:11 +0000)]
Old patch: greatly improve performance and memory usage by using per-thread
pre-allocated buffers instead of malloc().

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

16 years agoConvert from FILE * to fd.
des [Mon, 30 Jun 2008 02:03:58 +0000 (02:03 +0000)]
Convert from FILE * to fd.

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

16 years agoThe correct return value when we reach the end is -1, not 0.
des [Mon, 30 Jun 2008 01:44:33 +0000 (01:44 +0000)]
The correct return value when we reach the end is -1, not 0.

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

16 years agoChange my email address.
des [Mon, 30 Jun 2008 01:40:12 +0000 (01:40 +0000)]
Change my email address.

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

16 years agoTest switching of VCLs
phk [Fri, 27 Jun 2008 13:31:27 +0000 (13:31 +0000)]
Test switching of VCLs

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

16 years agoTest busy then pass
phk [Fri, 27 Jun 2008 13:12:02 +0000 (13:12 +0000)]
Test busy then pass

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

16 years agotest busying subsequent requests on backend access.
phk [Fri, 27 Jun 2008 13:09:49 +0000 (13:09 +0000)]
test busying subsequent requests on backend access.

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

16 years agoOne second is too hysterical a timeout
phk [Fri, 27 Jun 2008 13:09:15 +0000 (13:09 +0000)]
One second is too hysterical a timeout

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

16 years agotest miss from pass
phk [Fri, 27 Jun 2008 12:58:46 +0000 (12:58 +0000)]
test miss from pass

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

16 years agoTest "hit for pass" (pass from vcl_fetch)
phk [Fri, 27 Jun 2008 12:51:47 +0000 (12:51 +0000)]
Test "hit for pass" (pass from vcl_fetch)

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

16 years agoTest pass from vcl_hit{}
phk [Fri, 27 Jun 2008 12:48:12 +0000 (12:48 +0000)]
Test pass from vcl_hit{}

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

16 years agoAdd test for simple restarts
phk [Fri, 27 Jun 2008 12:44:47 +0000 (12:44 +0000)]
Add test for simple restarts

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

16 years agoAdd testcase for partial pipelining/read-ahead
phk [Fri, 27 Jun 2008 12:32:02 +0000 (12:32 +0000)]
Add testcase for partial pipelining/read-ahead

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

16 years agoAdd testcase for pipelining
phk [Fri, 27 Jun 2008 12:30:42 +0000 (12:30 +0000)]
Add testcase for pipelining

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

16 years agoFix a minor issue in pipelining
phk [Fri, 27 Jun 2008 12:30:25 +0000 (12:30 +0000)]
Fix a minor issue in pipelining

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

16 years agoForgot to set resp.status
phk [Fri, 27 Jun 2008 11:33:29 +0000 (11:33 +0000)]
Forgot to set resp.status

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

16 years agoGet "line1" request/reponse fields under control.
phk [Fri, 27 Jun 2008 11:18:00 +0000 (11:18 +0000)]
Get "line1" request/reponse fields under control.

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

16 years agopolish
phk [Fri, 27 Jun 2008 11:16:58 +0000 (11:16 +0000)]
polish

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

16 years agoVCL/VRT testcase for proto/request/url/response fields.
phk [Fri, 27 Jun 2008 11:04:54 +0000 (11:04 +0000)]
VCL/VRT testcase for proto/request/url/response fields.

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

16 years agoadd req.grace handling as well
phk [Fri, 27 Jun 2008 10:37:23 +0000 (10:37 +0000)]
add req.grace handling as well

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

16 years agoAdd testcase for VCL/VRT obj.ttl and obj.grace
phk [Fri, 27 Jun 2008 10:15:55 +0000 (10:15 +0000)]
Add testcase for VCL/VRT obj.ttl and obj.grace

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

16 years agoBe even more careful with server fd's
phk [Thu, 26 Jun 2008 22:55:25 +0000 (22:55 +0000)]
Be even more careful with server fd's

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

16 years agoFix ESI:include tags: they have to be empty.
phk [Thu, 26 Jun 2008 22:45:49 +0000 (22:45 +0000)]
Fix ESI:include tags: they have to be empty.

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

16 years agoUse shutdown for both directions, TCP works correctly.
phk [Thu, 26 Jun 2008 22:27:37 +0000 (22:27 +0000)]
Use shutdown for both directions, TCP works correctly.

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

16 years agoDrop a _.ok file if we are all done.
phk [Thu, 26 Jun 2008 22:14:02 +0000 (22:14 +0000)]
Drop a _.ok file if we are all done.

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

16 years agoClose servers TCP connection more gracefully for EOF handling.
phk [Thu, 26 Jun 2008 22:12:23 +0000 (22:12 +0000)]
Close servers TCP connection more gracefully for EOF handling.

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

16 years agoOops, only enable $evilhack when we want to.
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

16 years agoTestcase for ESI fragmented storage parsing
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

16 years agoAdd an undocumented debug facility that allows us to force a received
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

16 years agoTest for HTTP/1.0 (EOF) transmission
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

16 years agoTwo slow testcases to test object expiry
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

16 years agoTest If-Modified-Since
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

16 years agoESI testcase for including from different host (http://...)
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

16 years agoESI include with relative src
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

16 years agoTest banning a hash
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

16 years agoTest banning a URL
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

16 years agoA testcase for the simple_list hasher
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

16 years agoTestcase for the poll acceptor
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

16 years agoAllow the selector to be chosen by parameter "acceptor"
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

16 years agoCommented ESI:include
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

16 years agoESI:include test case
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

16 years agoTest ESI CDATA quoting
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

16 years agoThe first two incomplete ESI testcases
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

16 years agoAlso receive chunked encoding bodies.
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

16 years agoOops: only whine when we do have an unterminated strin
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

16 years agoBetter diagnostics
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

16 years agoMake -body automatically create a Content-Length header in txresp and txreq.
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

16 years agoUse 10 second CLI timeout
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

16 years agoAdd -chunked primitive for easier message composition.
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

16 years agoTest case for CLI help and parameter functions
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

16 years agoAdd chunked encoding from backend test.
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

16 years agoAdd a -s malloc testcase
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

16 years agoA simple ACL testcase
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

16 years agoTest for match with leading and trailing space as well.
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

16 years agoRemember to test the case with missing vary header
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

16 years agoAdd a Vary testcase
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

16 years agoGrap reference count on backend used by name in directors.
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

16 years agoTestcase for ticket 263
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

16 years agoFix a startup race condition: Make sure the threadpools are created
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

16 years agoSet version to trunk in configure.ac
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

16 years agoSet version to 2.0-tp2 in configure.ac
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

16 years agoCompensate for \r being magic now.
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

16 years agoFix for ticket 262: When we trim leading whitespace that was
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

16 years agoAdd regression test for ticket 262
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

16 years agoAdd "send" command for explicitly sending bytestrings
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

16 years agoHandle \r in strings
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

16 years agoFix Flexelint complaints
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

16 years agoFix an interesting shortcoming in GCC's error checks which Flexelint
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

16 years agoDon't whine about ../../config.h
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

16 years agoAlso tally Notes
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

16 years agoMake the debug element conditional on DEBUG macro being defined.
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

16 years agoOoops, last commit got one file more than intended.
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

16 years agoNever release more bytes than there is room for.
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

16 years ago#260: make pidfile mode less restrictive.
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

16 years agoAdd test to exercise the -s parameter
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

16 years agoFix segfault when reset_cmds is called for cmd_shell
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

16 years agoAdd a "shell" keyword for executing shell commands with system(3).
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

16 years agoCatch two other return cases from smf_init() so we don't close
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

16 years agoFix code, so varnish will still start as long as at least one listen
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

16 years agoAdd a testcase for starting with some bad listen sockets.
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

16 years agoMove setting of TESTS inside the if ENABLE_TESTS block so as to make make distcheck...
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

16 years agoAdd missing header files to make make distcheck happier
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

16 years agoDrop debian/Makefile from configure.ac too
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

16 years agoOn FreeBSD at least "localhost" resolves to two address, one IPv4
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

16 years agoStop distributing debian/ in the tarball
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

16 years agoBe explicit about listening to localhost
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

16 years agoMacroize the method function arguments
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

16 years agoAdd a start/stop CLI command test
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

16 years agoA better solution than mutexes: give the thread that listens to
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

16 years agoHold a mutex for each log destination
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

16 years agoMore work to polish the manager/client interaction, and get more
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

16 years agoUse instance name (-n) or "varnishd" for syslog identifier.
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

16 years agoAdd a VBM bitmap for keeping track of which filedescriptors the worker
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

16 years agoPolish this to the new more general usage:
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

16 years agoAdd VBM, a resizing bitmap implementation we previously had in kqueue.
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

16 years agoUse VLU to assemble output from the C-compiler.
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

16 years agoAdd testcase for multiple thread pools
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

16 years agoDefault to 2 thread pools again.
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