]> err.no Git - varnish/log
varnish
18 years agoCorrect inverted test in If-Modified-Since logic. This should fix the
des [Tue, 15 Aug 2006 10:38:20 +0000 (10:38 +0000)]
Correct inverted test in If-Modified-Since logic.  This should fix the
"stale front page" problem that has plagued VG.

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

18 years agoFix a bug in previous commit: an extra CR LF was inserted after the Date
des [Tue, 15 Aug 2006 10:36:43 +0000 (10:36 +0000)]
Fix a bug in previous commit: an extra CR LF was inserted after the Date
header in a 304 response.

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

18 years agoBetter 304 responses: include a Date header, and send the correct
des [Tue, 15 Aug 2006 07:55:17 +0000 (07:55 +0000)]
Better 304 responses: include a Date header, and send the correct
Last-Modified value.

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

18 years agoImplement the "error" VCL keyword:
des [Sun, 13 Aug 2006 11:38:13 +0000 (11:38 +0000)]
Implement the "error" VCL keyword:

 - add fields to struct sess where VRT_error can store the error code and
   message
 - modify cnt_error() to pass these fields to RES_Error(), then clear them
 - modify RES_Error() (and the entire chain) to accept a third argument
   giving an explanation of the error.
 - have RES_Error() reset the worker before writing the error document, to
   make sure wfd is set.

fixes: #4

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

18 years agoWhen -b and -c given, supress "other" messages.
phk [Fri, 11 Aug 2006 20:47:28 +0000 (20:47 +0000)]
When -b and -c given, supress "other" messages.

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

18 years agofix formatting glitches in -o mode
phk [Fri, 11 Aug 2006 20:46:08 +0000 (20:46 +0000)]
fix formatting glitches in -o mode

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

18 years agoAlso mark as client on ReqStart
phk [Fri, 11 Aug 2006 20:43:45 +0000 (20:43 +0000)]
Also mark as client on ReqStart

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

18 years agoMake lack of -d option work as expected.
phk [Fri, 11 Aug 2006 20:34:20 +0000 (20:34 +0000)]
Make lack of -d option work as expected.

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

18 years agoDrop the -h option, it never really worked out.
phk [Fri, 11 Aug 2006 20:28:45 +0000 (20:28 +0000)]
Drop the -h option, it never really worked out.

Use the new libvarnishapi facilities to structure code better.

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

18 years agoImprove the shmlog facilities.
phk [Fri, 11 Aug 2006 20:24:40 +0000 (20:24 +0000)]
Improve the shmlog facilities.

Move the sleeping and timing out into the library so we do not
have to repeat it in all apps.  Should we ever find an app
that needs something else, we will cater for it then.

Add VSL_Dispatch() which calls a (supplied) function (pointer) for each
record.  Additional useful information is passed as arguments, such
as classification (backend/client/other) etc.

Add a default handler for printing a record.

Add VSL_Select() where the application can specify tags that are mandatory
and which should not be subject to -i/-x/-I/-X/-b/-c filtering.

Be more frugal with memory.

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

18 years agoDirty hack: strip the leading "::ffff:" from v4-to-v6-mapped addresses.
des [Fri, 11 Aug 2006 14:45:37 +0000 (14:45 +0000)]
Dirty hack: strip the leading "::ffff:" from v4-to-v6-mapped addresses.

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

18 years agoAssert regexp != NULL
phk [Fri, 11 Aug 2006 14:26:59 +0000 (14:26 +0000)]
Assert regexp != NULL

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

18 years agoA NULL pointer does not match a regexp
phk [Fri, 11 Aug 2006 14:21:55 +0000 (14:21 +0000)]
A NULL pointer does not match a regexp

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

18 years agoUse 1:1 for hashbucket:mutex ratio
phk [Fri, 11 Aug 2006 14:09:09 +0000 (14:09 +0000)]
Use 1:1 for hashbucket:mutex ratio

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

18 years agoAdd -T <telnetport> option.
phk [Fri, 11 Aug 2006 13:41:28 +0000 (13:41 +0000)]
Add -T <telnetport> option.

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

18 years agoUse the already decoded CSTR where applicable and use
phk [Fri, 11 Aug 2006 11:23:12 +0000 (11:23 +0000)]
Use the already decoded CSTR where applicable and use
EncString() to encode strings for C source usage.

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

18 years agoUntil we know of a legitimate use for them, consider non !isgraph()
phk [Fri, 11 Aug 2006 11:22:33 +0000 (11:22 +0000)]
Until we know of a legitimate use for them, consider non !isgraph()
%xx escapes an error.

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

18 years agoDon't recognize '\' as magic in CSTR tokens, use %xx escapes instead.
phk [Fri, 11 Aug 2006 10:47:40 +0000 (10:47 +0000)]
Don't recognize '\' as magic in CSTR tokens, use %xx escapes instead.

Add decoded string element to struct token.

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

18 years agoImprove flexelint setup
phk [Fri, 11 Aug 2006 10:20:05 +0000 (10:20 +0000)]
Improve flexelint setup

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

18 years agoMore meat, and even more debug code. I am free()'ing stuff that does not exsist.
andersb [Fri, 11 Aug 2006 10:17:19 +0000 (10:17 +0000)]
More meat, and even more debug code. I am free()'ing stuff that does not exsist.

Strugling with the pointers and strings, since they obviously are "bleeding" from one to another.
I take that as a clear sign of not allocating and freeing right.

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

18 years agoRegenerate.
des [Fri, 11 Aug 2006 08:41:23 +0000 (08:41 +0000)]
Regenerate.

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

18 years agoWiden left and right margins, and add a blank line between the paths and
des [Fri, 11 Aug 2006 08:40:25 +0000 (08:40 +0000)]
Widen left and right margins, and add a blank line between the paths and
the message.

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

18 years agoPrint the message separately from the paths to avoid strange wrapping.
des [Fri, 11 Aug 2006 08:35:22 +0000 (08:35 +0000)]
Print the message separately from the paths to avoid strange wrapping.

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

18 years agoThis is the XSL stylesheet used to generate the ChangeLog.
des [Fri, 11 Aug 2006 08:34:43 +0000 (08:34 +0000)]
This is the XSL stylesheet used to generate the ChangeLog.

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

18 years agoInclude LICENSE and autogen.sh in the dist tarball.
des [Fri, 11 Aug 2006 08:25:20 +0000 (08:25 +0000)]
Include LICENSE and autogen.sh in the dist tarball.

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

18 years agoDon't install libcompat.a.
des [Fri, 11 Aug 2006 08:25:04 +0000 (08:25 +0000)]
Don't install libcompat.a.

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

18 years agoAdd a README and installation instructions.
des [Fri, 11 Aug 2006 08:24:47 +0000 (08:24 +0000)]
Add a README and installation instructions.

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

18 years agoDon't filter Cache-Control out in replies from backend.
phk [Fri, 11 Aug 2006 07:35:33 +0000 (07:35 +0000)]
Don't filter Cache-Control out in replies from backend.

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

18 years agoFix protocol family selection logic to also work on
phk [Fri, 11 Aug 2006 07:35:09 +0000 (07:35 +0000)]
Fix protocol family selection logic to also work on
a FreeBSD machine with now IPv6.

Remember to also free the addrinfo in case of success.

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

18 years agoBail if we don't get a listening socket.
phk [Fri, 11 Aug 2006 07:33:59 +0000 (07:33 +0000)]
Bail if we don't get a listening socket.

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

18 years agoMissed one: Only include compat headers if necessary
phk [Fri, 11 Aug 2006 07:12:24 +0000 (07:12 +0000)]
Missed one:  Only include compat headers if necessary

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

18 years agoPull in ../../config.h when running flexelint.
phk [Fri, 11 Aug 2006 07:11:32 +0000 (07:11 +0000)]
Pull in ../../config.h when running flexelint.

Only include compat headers if we need them.

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

18 years agoFix indentation
phk [Fri, 11 Aug 2006 07:03:19 +0000 (07:03 +0000)]
Fix indentation

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

18 years agoRemove unused variable.
phk [Fri, 11 Aug 2006 07:02:05 +0000 (07:02 +0000)]
Remove unused variable.

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

18 years agoPoint at KQUEUE version of acceptor by default.
phk [Fri, 11 Aug 2006 07:01:40 +0000 (07:01 +0000)]
Point at KQUEUE version of acceptor by default.

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

18 years agoFix an assert so it actually has a chance of firing: (an unsigned is
phk [Fri, 11 Aug 2006 07:01:13 +0000 (07:01 +0000)]
Fix an assert so it actually has a chance of firing: (an unsigned is
always >= 0)

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

18 years agoRewrite pass_chunked().
des [Thu, 10 Aug 2006 13:03:09 +0000 (13:03 +0000)]
Rewrite pass_chunked().

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

18 years agoGot the requesttime right this time.
andersb [Thu, 10 Aug 2006 11:48:24 +0000 (11:48 +0000)]
Got the requesttime right this time.

I am noticing free()'s that are freeing empty variables/pointers. Have to find where is happens.
Also noticing IP adresses not set correctly.

Still load of debugcode.

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

18 years agoUpdated to work with new inner workings (ReqStart, ReqEnd, sbuf replacement etc).
andersb [Thu, 10 Aug 2006 11:10:16 +0000 (11:10 +0000)]
Updated to work with new inner workings (ReqStart, ReqEnd, sbuf replacement etc).

Code now compiles.

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

18 years agoFreeBSD needs <netinet/in.h> for IPPROTO_IPV6 and IPV6_V6ONLY.
des [Thu, 10 Aug 2006 08:56:42 +0000 (08:56 +0000)]
FreeBSD needs <netinet/in.h> for IPPROTO_IPV6 and IPV6_V6ONLY.

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

18 years agoAdded some more meat to the program. Loads of debug code still on.
andersb [Thu, 10 Aug 2006 07:38:47 +0000 (07:38 +0000)]
Added some more meat to the program. Loads of debug code still on.

Next step is to add the correct time. It's a bit tricky, and I haven't gotten it right just yet.

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

18 years agoAdd an epoll()-based acceptor for Linux 2.6. Simple empirical tests indicate
des [Wed, 9 Aug 2006 14:49:49 +0000 (14:49 +0000)]
Add an epoll()-based acceptor for Linux 2.6.  Simple empirical tests indicate
that epoll() performs significantly better than poll() (less CPU usage).

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

18 years agoClear reference to backend when we release our VCL reference.
des [Wed, 9 Aug 2006 12:38:11 +0000 (12:38 +0000)]
Clear reference to backend when we release our VCL reference.

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

18 years agoAdd support for using separate backends for separate virtual hosts:
des [Wed, 9 Aug 2006 11:24:39 +0000 (11:24 +0000)]
Add support for using separate backends for separate virtual hosts:

 - remove the obj.backend variable, which is not connected to anything.
 - define a req.backend variable and implement l/r functions for it
 - complete / correct support for setting / comparing backend values

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

18 years agoCosmetic: redefine HTTP_HDR_* as an enum and rename MAX_HTTP_HDRS to
des [Wed, 9 Aug 2006 11:22:55 +0000 (11:22 +0000)]
Cosmetic: redefine HTTP_HDR_* as an enum and rename MAX_HTTP_HDRS to
HTTP_HDR_MAX.

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

18 years agoRewrite open_tcp(): use only one listening socket. Try for a combined
des [Wed, 9 Aug 2006 09:36:29 +0000 (09:36 +0000)]
Rewrite open_tcp(): use only one listening socket.  Try for a combined
IPv6 / IPv4 socket; if IPv6 is not available, fall back to an IPv4 socket.

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

18 years agoWhile FreeBSD defaults to MAP_SHARED, Linux requires either MAP_SHARED or
des [Tue, 8 Aug 2006 14:52:14 +0000 (14:52 +0000)]
While FreeBSD defaults to MAP_SHARED, Linux requires either MAP_SHARED or
MAP_PRIVATE to be specified.  Do so.

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

18 years agoAutodetect the need to link against libdl for dlopen().
des [Tue, 8 Aug 2006 14:00:28 +0000 (14:00 +0000)]
Autodetect the need to link against libdl for dlopen().

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

18 years agoAdd a setproctitle() stub to libcompat.
des [Tue, 8 Aug 2006 12:57:53 +0000 (12:57 +0000)]
Add a setproctitle() stub to libcompat.

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

18 years ago#include "compat/srandomdev.h" for srandomdev()
des [Tue, 8 Aug 2006 12:57:25 +0000 (12:57 +0000)]
#include "compat/srandomdev.h" for srandomdev()

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

18 years agoExpand keywords.
des [Tue, 8 Aug 2006 12:55:36 +0000 (12:55 +0000)]
Expand keywords.

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

18 years ago#include <sys/vfs.h> for fstatfs if it is available.
des [Tue, 8 Aug 2006 12:46:57 +0000 (12:46 +0000)]
#include <sys/vfs.h> for fstatfs if it is available.

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

18 years agoNow that we define _GNU_SOURCE, the asprintf() / vasprintf() hack is no
des [Tue, 8 Aug 2006 12:45:02 +0000 (12:45 +0000)]
Now that we define _GNU_SOURCE, the asprintf() / vasprintf() hack is no
longer required.

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

18 years agoDefining _GNU_SOURCE gives us native asprintf() and strptime() on glibc
des [Tue, 8 Aug 2006 12:42:49 +0000 (12:42 +0000)]
Defining _GNU_SOURCE gives us native asprintf() and strptime() on glibc
systems, and has no effect on FreeBSD.

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

18 years agoBring in FreeBSD's version of vis(3), strvis(3) and strvisx(3).
des [Tue, 8 Aug 2006 12:31:19 +0000 (12:31 +0000)]
Bring in FreeBSD's version of vis(3), strvis(3) and strvisx(3).

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

18 years agoAdd a simple srandomdev() implementation inspired by the one in FreeBSD.
des [Tue, 8 Aug 2006 12:15:22 +0000 (12:15 +0000)]
Add a simple srandomdev() implementation inspired by the one in FreeBSD.

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

18 years agoThe correct header for poll() is <poll.h>, not <sys/poll.h> like the Linux
des [Tue, 8 Aug 2006 09:15:18 +0000 (09:15 +0000)]
The correct header for poll() is <poll.h>, not <sys/poll.h> like the Linux
man page says (poll() is an XSI extension in SUSv[23])

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

18 years agoAutodetect the availability of kqueue() and / or poll().
des [Tue, 8 Aug 2006 07:47:52 +0000 (07:47 +0000)]
Autodetect the availability of kqueue() and / or poll().

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

18 years ago#include "libvarnish.h" for varnish_version().
des [Tue, 8 Aug 2006 07:47:12 +0000 (07:47 +0000)]
#include "libvarnish.h" for varnish_version().

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

18 years agoAdd back sendfile support (under #ifdef HAVE_SENDFILE) but don't engage
phk [Tue, 8 Aug 2006 07:36:00 +0000 (07:36 +0000)]
Add back sendfile support (under #ifdef HAVE_SENDFILE) but don't engage
it for small objects on the suspicion that it has highish setup cost.

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

18 years agoSplit compat.h into one header per function to avoid issues with e.g. the
des [Tue, 8 Aug 2006 07:17:10 +0000 (07:17 +0000)]
Split compat.h into one header per function to avoid issues with e.g. the
vasprintf() prototype needing <stdarg.h> even when it isn't used.

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

18 years agovarnish{ncsa,stat} also need librt.
des [Tue, 8 Aug 2006 07:15:56 +0000 (07:15 +0000)]
varnish{ncsa,stat} also need librt.

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

18 years agoAttempt to detect the availability of RSA's MD5 implementation, and the
des [Tue, 8 Aug 2006 07:03:35 +0000 (07:03 +0000)]
Attempt to detect the availability of RSA's MD5 implementation, and the
need to link against libmd to get it.
Attempt to detect the need for linking against librt to get clock_gettime().

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

18 years agoFix braino
phk [Tue, 8 Aug 2006 07:01:28 +0000 (07:01 +0000)]
Fix braino

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

18 years agoDefault to 4096 buckets and 256 mutexes
phk [Tue, 8 Aug 2006 06:39:52 +0000 (06:39 +0000)]
Default to 4096 buckets and 256 mutexes

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

18 years agoUse crc32 hash by default, MD5 is a compile time option
phk [Tue, 8 Aug 2006 06:38:45 +0000 (06:38 +0000)]
Use crc32 hash by default, MD5 is a compile time option

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

18 years agolbv_assert never returns
phk [Tue, 8 Aug 2006 06:37:27 +0000 (06:37 +0000)]
lbv_assert never returns

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

18 years ago64bit changes
phk [Mon, 7 Aug 2006 21:08:20 +0000 (21:08 +0000)]
64bit changes

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

18 years agoAdd -Wformat and remove -fno-inline which disables it.
phk [Mon, 7 Aug 2006 21:01:40 +0000 (21:01 +0000)]
Add -Wformat and remove -fno-inline which disables it.

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

18 years agoFix printf format error
phk [Mon, 7 Aug 2006 21:01:09 +0000 (21:01 +0000)]
Fix printf format error

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

18 years agoUpdate to new shmlog tag
phk [Mon, 7 Aug 2006 20:50:05 +0000 (20:50 +0000)]
Update to new shmlog tag

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

18 years agoEliminate use of extensible printf
phk [Mon, 7 Aug 2006 20:47:16 +0000 (20:47 +0000)]
Eliminate use of extensible printf

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

18 years agoImprove the "-d" and "-d -d" facilities.
phk [Mon, 7 Aug 2006 20:24:47 +0000 (20:24 +0000)]
Improve the "-d" and "-d -d" facilities.

When we close a CLI and it had fd# 0 and/or fd#1, reopen these
as /dev/null so the will not be reused for the CLI pipe to the
child on next restart, otherwise stdout/stderr output from the
manager would get sent there and confuse the clients CLI reader.

Don't double free a pointer to the CLI buffer.

Accept non-zero results from cli_readres() errors are non-fatal.

Use stderr more consistently for manager debugging.

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

18 years agoAn assert to catch silly errors.
phk [Mon, 7 Aug 2006 18:33:01 +0000 (18:33 +0000)]
An assert to catch silly errors.

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

18 years agoRename SHMlog tags for consistency
phk [Mon, 7 Aug 2006 17:27:16 +0000 (17:27 +0000)]
Rename SHMlog tags for consistency
XID -> ReqStart
ReqServTime -> ReqEnd

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

18 years agoRemove printf extensions used for development debugging
phk [Mon, 7 Aug 2006 17:18:58 +0000 (17:18 +0000)]
Remove printf extensions used for development debugging

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

18 years agoMake assert do the right thing
phk [Mon, 7 Aug 2006 17:18:42 +0000 (17:18 +0000)]
Make assert do the right thing

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

18 years agoClean up #includes
phk [Mon, 7 Aug 2006 17:15:10 +0000 (17:15 +0000)]
Clean up #includes

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

18 years agoCall __assert() lbv_assert() instead.
phk [Mon, 7 Aug 2006 17:10:26 +0000 (17:10 +0000)]
Call __assert() lbv_assert() instead.

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

18 years agoquench warnings related to libvarnish.h
phk [Mon, 7 Aug 2006 17:08:35 +0000 (17:08 +0000)]
quench warnings related to libvarnish.h

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

18 years agoDon't trust the documentation - when it says "additional headers", it
des [Mon, 7 Aug 2006 16:45:28 +0000 (16:45 +0000)]
Don't trust the documentation - when it says "additional headers", it
actually means "additional code to place before main() in the test program"

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

18 years agoAdd our own assert in libvarnish.h
phk [Mon, 7 Aug 2006 16:42:11 +0000 (16:42 +0000)]
Add our own assert in libvarnish.h

Include libvarnish.h from cache.h and mgt.h

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

18 years ago#include "libvarnish.h" for varnish_version().
des [Mon, 7 Aug 2006 16:29:42 +0000 (16:29 +0000)]
#include "libvarnish.h" for varnish_version().

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

18 years ago#include "compat.h" for asprintf().
des [Mon, 7 Aug 2006 16:26:54 +0000 (16:26 +0000)]
#include "compat.h" for asprintf().

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

18 years agovsb.h is not a system header.
des [Mon, 7 Aug 2006 16:24:54 +0000 (16:24 +0000)]
vsb.h is not a system header.

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

18 years ago#include "libvarnish.h" for varnish_version().
des [Mon, 7 Aug 2006 16:23:16 +0000 (16:23 +0000)]
#include "libvarnish.h" for varnish_version().

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

18 years ago#include "compat.h" for asprintf(). Sort includes.
des [Mon, 7 Aug 2006 16:23:02 +0000 (16:23 +0000)]
#include "compat.h" for asprintf().  Sort includes.

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

18 years agoDefine INFTIM if it isn't already.
des [Mon, 7 Aug 2006 16:20:16 +0000 (16:20 +0000)]
Define INFTIM if it isn't already.

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

18 years agoSpell SIZE_MAX correctly.
des [Mon, 7 Aug 2006 16:20:04 +0000 (16:20 +0000)]
Spell SIZE_MAX correctly.

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

18 years agoDefine INFTIM if it isn't already.
des [Mon, 7 Aug 2006 16:17:43 +0000 (16:17 +0000)]
Define INFTIM if it isn't already.

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

18 years ago#include <compat.h> for asprintf().
des [Mon, 7 Aug 2006 16:17:35 +0000 (16:17 +0000)]
#include <compat.h> for asprintf().

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

18 years agoHandle CLI trouble with the childproc
phk [Mon, 7 Aug 2006 16:15:00 +0000 (16:15 +0000)]
Handle CLI trouble with the childproc

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

18 years agoAdd CLIS_COMMS errno (400) and return an error text as well.
phk [Mon, 7 Aug 2006 16:14:37 +0000 (16:14 +0000)]
Add CLIS_COMMS errno (400) and return an error text as well.

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

18 years agoCheck whether we have accept filters before trying to use them.
des [Mon, 7 Aug 2006 16:11:29 +0000 (16:11 +0000)]
Check whether we have accept filters before trying to use them.

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

18 years agoHandle read errors on the cli pipes.
phk [Mon, 7 Aug 2006 16:05:21 +0000 (16:05 +0000)]
Handle read errors on the cli pipes.

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

18 years agoImprove descriptions of HAVE_ASPRINTF / HAVE_VASPRINTF.
des [Mon, 7 Aug 2006 15:54:51 +0000 (15:54 +0000)]
Improve descriptions of HAVE_ASPRINTF / HAVE_VASPRINTF.

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

18 years agoQuench warnings.
phk [Mon, 7 Aug 2006 15:54:34 +0000 (15:54 +0000)]
Quench warnings.

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

18 years agoMy idiocy knows no bounds. Make sure this actually builds.
des [Mon, 7 Aug 2006 15:51:32 +0000 (15:51 +0000)]
My idiocy knows no bounds.  Make sure this actually builds.

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

18 years agoImprove detection of the presence and usability of asprintf() / vasprintf().
des [Mon, 7 Aug 2006 15:47:39 +0000 (15:47 +0000)]
Improve detection of the presence and usability of asprintf() / vasprintf().

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

18 years agopaste-o.
des [Mon, 7 Aug 2006 15:42:46 +0000 (15:42 +0000)]
paste-o.

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