]>
err.no Git - varnish/log
des [Wed, 23 May 2007 08:14:11 +0000 (08:14 +0000)]
From FreeBSD: if (flags & O_TRUNC), don't truncate the file until we've
successfully locked it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1467
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Tue, 22 May 2007 16:05:55 +0000 (16:05 +0000)]
We want to restart varnishd on upgrade
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1466
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 22 May 2007 16:02:15 +0000 (16:02 +0000)]
Fix compilation on OpenBSD 4.1.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1465
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Tue, 22 May 2007 15:35:54 +0000 (15:35 +0000)]
Add exit status 1 if we fail to start, or reload.
Remove "oknodo" to actually provide an error message if we cannot stop the service.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1464
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Tue, 22 May 2007 15:33:41 +0000 (15:33 +0000)]
Add log rotation for /var/log/varnish/varnish.log
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1463
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 22 May 2007 10:20:57 +0000 (10:20 +0000)]
Initialize storage modules magic element.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1462
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Mon, 21 May 2007 04:57:09 +0000 (04:57 +0000)]
Spell my name right, and use a more convenient mail address
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1461
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 20 May 2007 22:22:24 +0000 (22:22 +0000)]
Silence a compiler warning that occurs with gcc 4.2.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1460
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 20 May 2007 18:12:33 +0000 (18:12 +0000)]
Set mime-type.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1459
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 20 May 2007 16:19:03 +0000 (16:19 +0000)]
Copy NFILES knob from redhat/varnish.initrc.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1456
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Fri, 18 May 2007 14:14:53 +0000 (14:14 +0000)]
Add init script for varnishlog
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1455
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 18 May 2007 09:14:11 +0000 (09:14 +0000)]
Add entry for r1450.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1451
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 18 May 2007 08:15:23 +0000 (08:15 +0000)]
reopen needs to be volatile, or the compiler might optimize it away.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1450
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Thu, 17 May 2007 21:49:45 +0000 (21:49 +0000)]
Our default.vcl has a minor change: It uses localhost:80 (thus not
default anymore, but whatever, it will work with apache httpd out of
the box, and that's better for easy testing) as the backend. sysconfig
file changed to reflect this.
Minor cosmetic changes in the specfile
Ingvar
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1449
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Thu, 17 May 2007 21:11:37 +0000 (21:11 +0000)]
:- is simpler than reverse negation
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1448
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Thu, 17 May 2007 18:17:12 +0000 (18:17 +0000)]
just some output cleanup
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1447
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 17 May 2007 16:50:49 +0000 (16:50 +0000)]
Ignore generated files.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1445
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 17 May 2007 12:21:50 +0000 (12:21 +0000)]
Merged revisions 1437-1442 via svnmerge from
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache
........
r1437 | ssm | 2007-05-16 17:20:47 +0200 (Wed, 16 May 2007) | 1 line
debian changelog, so far
........
r1438 | des | 2007-05-16 22:02:08 +0200 (Wed, 16 May 2007) | 7 lines
Tweak some of the defaults:
- bind to all interfaces
- use a 1 gibibyte
- remove hash setting, it's not safe
- tweak some variable names and comments
........
r1439 | des | 2007-05-16 22:03:32 +0200 (Wed, 16 May 2007) | 2 lines
Improve the descriptions of some of the options and parameters.
........
r1440 | ingvar | 2007-05-16 23:08:43 +0200 (Wed, 16 May 2007) | 6 lines
* Wed May 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-
20070516
- Wrapping up for 1.0.4
- Changes in sysconfig and init scripts. Syncing with files in
trunk/debian
........
r1441 | des | 2007-05-17 13:48:35 +0200 (Thu, 17 May 2007) | 3 lines
Add an XML+XSLT-based change log. Unlike the change logs for previous
releases, this one was written by hand, which makes it user-readable.
........
r1442 | des | 2007-05-17 13:51:46 +0200 (Thu, 17 May 2007) | 2 lines
We won't use this any more.
........
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1443
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 17 May 2007 11:51:46 +0000 (11:51 +0000)]
We won't use this any more.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1442
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 17 May 2007 11:48:35 +0000 (11:48 +0000)]
Add an XML+XSLT-based change log. Unlike the change logs for previous
releases, this one was written by hand, which makes it user-readable.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1441
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Wed, 16 May 2007 21:08:43 +0000 (21:08 +0000)]
* Wed May 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-
20070516
- Wrapping up for 1.0.4
- Changes in sysconfig and init scripts. Syncing with files in
trunk/debian
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1440
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 16 May 2007 20:03:32 +0000 (20:03 +0000)]
Improve the descriptions of some of the options and parameters.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1439
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 16 May 2007 20:02:08 +0000 (20:02 +0000)]
Tweak some of the defaults:
- bind to all interfaces
- use a 1 gibibyte
- remove hash setting, it's not safe
- tweak some variable names and comments
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1438
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Wed, 16 May 2007 15:20:47 +0000 (15:20 +0000)]
debian changelog, so far
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1437
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 16 May 2007 14:29:46 +0000 (14:29 +0000)]
Include zope-plone.vcl in the tarball.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1434
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 16 May 2007 12:45:53 +0000 (12:45 +0000)]
Explain in more detail how the storage file size is specified.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1432
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Wed, 16 May 2007 11:38:08 +0000 (11:38 +0000)]
Init-script:
* Move user-adjustable parts from init script to defaults file, expect
$DAEMON_OPTS instead of a whole forest of variables.
* We have a pid file argument, wheee. :D
Defaults file:
* Created alternative default templates, selected a one-backend default
without VCL file.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1431
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Wed, 16 May 2007 10:59:13 +0000 (10:59 +0000)]
Use etc/default.vcl instead of debian/vcl.conf
Register etc/zope-plone.vcl as an example configuration file
Typo patrol
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1430
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Wed, 16 May 2007 10:54:38 +0000 (10:54 +0000)]
Ship with etc/default.vcl instead, no need for a separate configuration file
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1429
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Wed, 16 May 2007 10:53:30 +0000 (10:53 +0000)]
fix upgrade issue in postrm script, and rename it to <package>.postrm to match other debian control files
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1428
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Wed, 16 May 2007 10:52:15 +0000 (10:52 +0000)]
Added example vcl to use in front of zope+plone (this could perhaps go in a contrib/ directory instead)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1427
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 16 May 2007 09:35:18 +0000 (09:35 +0000)]
Distribute default.vcl.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1426
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 16 May 2007 09:34:26 +0000 (09:34 +0000)]
Expand tags
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1425
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 15 May 2007 19:38:56 +0000 (19:38 +0000)]
Rename vcl.conf to default.vcl, update and comment the sample code.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1424
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 15 May 2007 11:35:44 +0000 (11:35 +0000)]
Attempt to fix the bind-to-any problem:
- Introduce a "struct tcp_addr" which is a lightweight form of struct
addrinfo for our own internal use.
- Add a TCP_resolve() function which takes the output from TCP_parse()
and fills in a list of pointers to struct tcp_addr, one for each
address returned by getaddrinfo().
- Modify all TCP_open() callers to use TCP_resolve() and call TCP_open()
once for every address returned.
- Add some explanatory comments to tcp.c.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1423
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 15 May 2007 11:15:49 +0000 (11:15 +0000)]
Revert accidental commit of unfinished negative-caching patch.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1421
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 15 May 2007 11:01:34 +0000 (11:01 +0000)]
AN() and XXXAN() are also useful for non-pointer results.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1420
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 14 May 2007 09:42:16 +0000 (09:42 +0000)]
Merged revisions 1394,1400-1418 via svnmerge from
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache
........
r1394 | phk | 2007-05-09 12:55:33 +0200 (Wed, 09 May 2007) | 8 lines
After compilation of a VCL program, do a test-load into the management
process to catch any implementation-discrepancies between symbols used
by the compiler and those implemented in the runtime.
The situation will happen from time to time and there is no need to
issue a panic when we can test sensibly for it.
........
r1403 | ingvar | 2007-05-11 09:51:11 +0200 (Fri, 11 May 2007) | 5 lines
* Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-
20070511
- Threw latest changes into svn trunk
- Removed the conversion of manpages into utf8. They are all utf8 in trunk
........
r1404 | ingvar | 2007-05-11 10:13:03 +0200 (Fri, 11 May 2007) | 1 line
........
r1406 | des | 2007-05-11 13:06:03 +0200 (Fri, 11 May 2007) | 2 lines
Comment out comparisons which are always true (unsigned >= 0)
........
r1407 | des | 2007-05-11 13:06:38 +0200 (Fri, 11 May 2007) | 2 lines
Tweak DEVELOPER_CFLAGS.
........
r1408 | des | 2007-05-11 13:14:32 +0200 (Fri, 11 May 2007) | 2 lines
Pull flopen() and pidfile_*() (renamed to vpf_*()) from FreeBSD.
........
r1409 | des | 2007-05-11 13:15:46 +0200 (Fri, 11 May 2007) | 2 lines
Expand tags.
........
r1410 | des | 2007-05-11 13:17:09 +0200 (Fri, 11 May 2007) | 2 lines
No use expanding tags unless there *are* tags...
........
r1411 | des | 2007-05-11 13:34:42 +0200 (Fri, 11 May 2007) | 2 lines
Add -D (daemonize) and -P (pid file) options.
........
r1412 | des | 2007-05-11 13:35:59 +0200 (Fri, 11 May 2007) | 2 lines
Remove unused header.
........
r1413 | des | 2007-05-11 14:01:47 +0200 (Fri, 11 May 2007) | 2 lines
Avoid gcc4-specific compiler options.
........
r1414 | des | 2007-05-11 14:05:02 +0200 (Fri, 11 May 2007) | 2 lines
Forgotten commit: check for <vis.h> and daemon(3) availability.
........
r1415 | des | 2007-05-11 14:17:26 +0200 (Fri, 11 May 2007) | 2 lines
Add -P (pid file) option.
........
r1416 | des | 2007-05-11 14:19:48 +0200 (Fri, 11 May 2007) | 2 lines
Minor style issues.
........
r1417 | phk | 2007-05-11 15:15:16 +0200 (Fri, 11 May 2007) | 7 lines
Make the sendfile threshold inifinity for now, we have evidence of
sendfile not doing it's job in a number of operating system (-versions ?)
This change is unlikely to cause a performance hit anywhere, because
writev() is pretty effective in the first place.
........
r1418 | des | 2007-05-14 11:02:23 +0200 (Mon, 14 May 2007) | 2 lines
Document the inadvisability of enabling sendfile.
........
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1419
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 14 May 2007 09:02:23 +0000 (09:02 +0000)]
Document the inadvisability of enabling sendfile.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1418
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 May 2007 13:15:16 +0000 (13:15 +0000)]
Make the sendfile threshold inifinity for now, we have evidence of
sendfile not doing it's job in a number of operating system (-versions ?)
This change is unlikely to cause a performance hit anywhere, because
writev() is pretty effective in the first place.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1417
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 12:19:48 +0000 (12:19 +0000)]
Minor style issues.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1416
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 12:17:26 +0000 (12:17 +0000)]
Add -P (pid file) option.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1415
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 12:05:02 +0000 (12:05 +0000)]
Forgotten commit: check for <vis.h> and daemon(3) availability.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1414
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 12:01:47 +0000 (12:01 +0000)]
Avoid gcc4-specific compiler options.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1413
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:35:59 +0000 (11:35 +0000)]
Remove unused header.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1412
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:34:42 +0000 (11:34 +0000)]
Add -D (daemonize) and -P (pid file) options.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1411
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:17:09 +0000 (11:17 +0000)]
No use expanding tags unless there *are* tags...
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1410
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:15:46 +0000 (11:15 +0000)]
Expand tags.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1409
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:14:32 +0000 (11:14 +0000)]
Pull flopen() and pidfile_*() (renamed to vpf_*()) from FreeBSD.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1408
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:06:38 +0000 (11:06 +0000)]
Tweak DEVELOPER_CFLAGS.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1407
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 11 May 2007 11:06:03 +0000 (11:06 +0000)]
Comment out comparisons which are always true (unsigned >= 0)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1406
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Fri, 11 May 2007 08:13:03 +0000 (08:13 +0000)]
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1404
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ingvar [Fri, 11 May 2007 07:51:11 +0000 (07:51 +0000)]
* Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-
20070511
- Threw latest changes into svn trunk
- Removed the conversion of manpages into utf8. They are all utf8 in trunk
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1403
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 9 May 2007 14:37:04 +0000 (14:37 +0000)]
Correctly detect more incompatible automake versions.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1399
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 14:28:50 +0000 (14:28 +0000)]
Implement runtime part of VCL controlled hashing.
The vcl_hash() is now used to control which fields go
into the hash algorithm, and the default is stil,
as previously, the URL + Host: header.
But now it is controlled by the vcl code, with the
default vcl_hash() being:
sub vcl_hash {
req.hash += req.url;
req.hash += req.http.host;
hash;
}
Once I get a bit further, this will be changed to
sub vcl_hash {
req.hash += req.url;
if (req.http.host) {
req.hash += req.http.host;
} else {
req.hash += server.ip;
}
hash;
}
So that we correctly hash HTTP requests without Host:
headers, that go to a machine with multiple IP numbers.
If you want to add fields to the hash, just write
a vcl_hash that does not end in "hash;":
sub vcl_hash {
req.hash += req.http.cookie;
}
If you want to override the default vcl_hash, just
say so:
sub vcl_hash {
req.hash += req.url;
hash; // do not continue into default vcl_hash
}
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1398
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 13:55:39 +0000 (13:55 +0000)]
Make req.hash have the right internal type: char *
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1397
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 12:08:41 +0000 (12:08 +0000)]
Use struct sockaddr_storage instead of our own homegrown hack.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1396
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 11:07:59 +0000 (11:07 +0000)]
Mark variables/objects as having a string representation or not
and create a function to figure this out, if present.
Add the req.hash variable and the += operator for it, so we
can put the actual hash contents under vcl control.
The runtime half of this stuff is not done yet.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1395
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 10:55:33 +0000 (10:55 +0000)]
After compilation of a VCL program, do a test-load into the management
process to catch any implementation-discrepancies between symbols used
by the compiler and those implemented in the runtime.
The situation will happen from time to time and there is no need to
issue a panic when we can test sensibly for it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1394
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 09:45:01 +0000 (09:45 +0000)]
Don't use sockaddr->sa_len, it was too advanced for POSIX people
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1393
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 09:44:35 +0000 (09:44 +0000)]
Don't use sockaddr->sa_len, it was too advanced for POSIX people.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1392
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 08:44:28 +0000 (08:44 +0000)]
Add back a check that was lost: You must have at least one backend.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1391
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 08:39:50 +0000 (08:39 +0000)]
Add support for checking "server.ip" in addition to "client.ip".
The definition of "server.ip" is what getsockname(2) returns
for our end of the connection.
Don't report ACL matches for acls created as a result of '==' or
'!=' usage on IP number variables.
Move storage for sess->sockaddr away from sessmem and expose
more code to <sys/socket.h>. This is a network application
after all.
XXX: somebody with IPv6 connectivity needs to look at
ACLs in IPv6 context.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1390
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 08:06:00 +0000 (08:06 +0000)]
Implement '==' and '!=' for IP number variables (presently only client.ip)
It works by building a one-entry ACL of the subsequent tokens
and matching this ACL just like '~' would have done.
This means that it is possible to use the '!', '(...)', '/width'
constructs and domain-names in these comparisons.
Examples:
if (client.ip == ( "www.freebsd.org" )) {
if (client.ip == (! "localhost" )) {
if (client.ip == (! "10.0.0.0"/8 )) {
or even
if (client.ip != "somehost" / 28) {
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1389
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 May 2007 07:59:22 +0000 (07:59 +0000)]
Sanitize generation of white-space in generated C code.
(It is my intent that the compiled-to C-source should have sensible
readability)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1388
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 6 May 2007 18:57:26 +0000 (18:57 +0000)]
Update the default configuration.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1387
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 5 May 2007 14:44:37 +0000 (14:44 +0000)]
Look for s-maxage before max-age. This may need to be revisited.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1386
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 5 May 2007 14:35:58 +0000 (14:35 +0000)]
Remove superfluous vsb_printf() argument
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1385
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 5 May 2007 14:09:23 +0000 (14:09 +0000)]
Typo in comment
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1384
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 5 May 2007 14:08:01 +0000 (14:08 +0000)]
Whitespace nits
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1383
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 4 May 2007 12:28:56 +0000 (12:28 +0000)]
Apply the workaround suggested in #102.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1382
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 May 2007 12:25:23 +0000 (12:25 +0000)]
Fix error reporting with -C
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1381
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 3 May 2007 08:48:51 +0000 (08:48 +0000)]
s/expl/explicit/ to circumvent a bug in gcc 3.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1380
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 3 May 2007 08:48:43 +0000 (08:48 +0000)]
s/expl/reason/ to circumvent a bug in gcc 3.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1379
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 3 May 2007 08:45:33 +0000 (08:45 +0000)]
s/expl/reason/ to circumvent a bug in gcc 3.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1378
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 3 May 2007 08:41:01 +0000 (08:41 +0000)]
s/expl/reason/ to circumvent a bug in gcc 3.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1377
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 2 May 2007 14:37:42 +0000 (14:37 +0000)]
Don't try to lock the objhead mutex if we don't have an objhead. Doing so
caused the Varnish child to die immediately after sending its 503 response
if the backend didn't respond.
Reviewed by: phk
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1376
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 2 May 2007 13:56:24 +0000 (13:56 +0000)]
Correct the URL in the error page.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1375
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 2 May 2007 12:20:43 +0000 (12:20 +0000)]
Try fixing #95 again. The trick is that if we get a new SLT_VCL_call
while the F_INVCL flag is set, we need to insert a newline before the
entry for the new VCL_call.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1374
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 1 May 2007 18:21:53 +0000 (18:21 +0000)]
Add and document a ping_interval parameter which controls the interval at
which the parent pings the child. Also document pipe_timeout, which was
left out of the man page by accident.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1373
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 1 May 2007 17:55:31 +0000 (17:55 +0000)]
Two minor logging fixes:
- change the type of vsl_handler()'s tag argument from unsigned int to
enum shmlogtag to allow gcc to check switch statements and gdb to show
its value by name rather than by number.
- fix the "missing newline after VCL_call" bug in varnishlog (#95)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1372
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 1 May 2007 17:55:13 +0000 (17:55 +0000)]
Improve the readability and debuggability of our tag conversion tricks.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1371
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 1 May 2007 17:48:56 +0000 (17:48 +0000)]
Add protective #ifdef.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1370
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 26 Apr 2007 10:39:19 +0000 (10:39 +0000)]
Force CONFIG_SHELL to /bin/sh.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1369
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Apr 2007 06:54:58 +0000 (06:54 +0000)]
Add compat trick for clock_gettime()
Submitted by: Pierre Queinnec <pierre.queinnec@zenika.com>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1368
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 24 Apr 2007 12:37:58 +0000 (12:37 +0000)]
Eliminate warnings.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1367
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 24 Apr 2007 12:36:58 +0000 (12:36 +0000)]
Move CFLAGS configuration to the bottom so it doesn't affect other tests.
This makes --enable-werror work again.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1366
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 24 Apr 2007 12:23:37 +0000 (12:23 +0000)]
Move CFLAGS configuration to the bottom so it doesn't affect other tests.
This makes --enable-werror work again.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1365
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 24 Apr 2007 09:39:12 +0000 (09:39 +0000)]
Correctly detect the presence and location of all external library we use
(except for the C math library, which the C standard guarantees is always
available as -lm) and more importantly, use them only where needed.
This should fix the compilation issues on SuSE.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1364
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 22 Apr 2007 13:09:59 +0000 (13:09 +0000)]
Further eliminate fixed-size buffers.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1363
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 21 Apr 2007 21:48:56 +0000 (21:48 +0000)]
Major rewrite of the VSL handler for increased robustness and clarity:
- Treat all request fields in a similar manner.
- Mostly eliminate fixed-size buffers.
- Don't print or format anything until we see ReqEnd.
- If we saw a Host: header, use it to generate an absolute URI,
resulting in far more useful output when processing logs from a
server which handles multiple virtual hosts.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1362
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 21 Apr 2007 17:52:44 +0000 (17:52 +0000)]
Style and whitespace cleanup + clarify comment explaining the log format
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1361
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 21 Apr 2007 17:48:21 +0000 (17:48 +0000)]
Clarify synopsis / description
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1360
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 19 Apr 2007 15:17:35 +0000 (15:17 +0000)]
When we have some amount of a chunk header, but not all of it, we
need to read more from the fd. The semantics we _really_ want for
that read operation is "wait until at least one char is available,
then return as many as N to us".
This can be done with a combination of system calls, but it is likely
just as cheap to just read one char at a time, so we do that.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1359
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 19 Apr 2007 10:00:37 +0000 (10:00 +0000)]
Emit acl matching code to the function body.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1315
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 19 Apr 2007 09:34:45 +0000 (09:34 +0000)]
Standards compliance: fputs(3) returns non-negative on success.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1314
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 11 Apr 2007 09:16:13 +0000 (09:16 +0000)]
Need to find other way to shut up flexelint.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1313
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 11 Apr 2007 09:09:00 +0000 (09:09 +0000)]
Remember to initialize C_flag and don't exit in far away code.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1312
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 9 Apr 2007 21:08:21 +0000 (21:08 +0000)]
Add scripts to run flexelint over VCL compiler output
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1311
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 9 Apr 2007 21:03:12 +0000 (21:03 +0000)]
Fix stylistic Flexelint unhappiness with the compiled C source.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1310
d4fa192b -c00b-0410-8231-
f00ffab90ce4