]> err.no Git - varnish/log
varnish
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

18 years agoAdd implementations of asprintf(3) and vasprintf(3).
des [Mon, 7 Aug 2006 15:24:24 +0000 (15:24 +0000)]
Add implementations of asprintf(3) and vasprintf(3).

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

18 years agoRelucantly include <time.h> for time_t. We'll have to clean up our header
des [Mon, 7 Aug 2006 15:09:53 +0000 (15:09 +0000)]
Relucantly include <time.h> for time_t.  We'll have to clean up our header
files at some point.

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

18 years agoRemove redundant definition of __assert().
des [Mon, 7 Aug 2006 15:08:35 +0000 (15:08 +0000)]
Remove redundant definition of __assert().

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

18 years agoTIM_{format,parse}() are used unconditionally, so declare them unconditionally.
des [Mon, 7 Aug 2006 15:00:55 +0000 (15:00 +0000)]
TIM_{format,parse}() are used unconditionally, so declare them unconditionally.

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

18 years agoSort includes, add <stdint.h> for uint64_t.
des [Mon, 7 Aug 2006 15:00:28 +0000 (15:00 +0000)]
Sort includes, add <stdint.h> for uint64_t.

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

18 years agoEliminate __unused.
des [Mon, 7 Aug 2006 14:55:51 +0000 (14:55 +0000)]
Eliminate __unused.

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

18 years agoSort includes, add <stdint.h> for uintptr_t.
des [Mon, 7 Aug 2006 14:52:42 +0000 (14:52 +0000)]
Sort includes, add <stdint.h> for uintptr_t.

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

18 years agoDefine str-Lb-libvarnish so ".Lb libvarnish" will work. This should be in
des [Mon, 7 Aug 2006 12:42:15 +0000 (12:42 +0000)]
Define str-Lb-libvarnish so ".Lb libvarnish" will work.  This should be in
a shared file somewhere with some soelim magic in the Makefile, but don't
bother right now - the file isn't installed anyway.

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

18 years agoAdd a -V option (display version and exit) to all programs.
des [Mon, 7 Aug 2006 12:35:50 +0000 (12:35 +0000)]
Add a -V option (display version and exit) to all programs.

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

18 years agoFold libsbuf into libvarnish, with s/sbuf/vsb/g.
des [Mon, 7 Aug 2006 11:09:30 +0000 (11:09 +0000)]
Fold libsbuf into libvarnish, with s/sbuf/vsb/g.

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

18 years agoTimeout pipe connections after 600 seconds.
phk [Mon, 7 Aug 2006 10:46:59 +0000 (10:46 +0000)]
Timeout pipe connections after 600 seconds.

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

18 years agoUse a 600 second timeout, 120 second is too little.
phk [Mon, 7 Aug 2006 10:40:19 +0000 (10:40 +0000)]
Use a 600 second timeout, 120 second is too little.

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

18 years agoSet SO_SNDTIMEO to 120 seconds
phk [Mon, 7 Aug 2006 09:21:54 +0000 (09:21 +0000)]
Set SO_SNDTIMEO to 120 seconds

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

18 years agoFirst step of slow client handling: Lose the stevedore function
phk [Mon, 7 Aug 2006 08:42:58 +0000 (08:42 +0000)]
First step of slow client handling:  Lose the stevedore function
for sending and instead record the fd+off_t in the storage object.

This eliminates sendfile from storage_file.c, next step is to put
it back in the generic code in cache_response.c

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

18 years agoUpdate #include directives.
des [Mon, 7 Aug 2006 05:52:50 +0000 (05:52 +0000)]
Update #include directives.

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

18 years agoExpand keywords.
des [Mon, 7 Aug 2006 05:49:51 +0000 (05:49 +0000)]
Expand keywords.

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

18 years agoMove common_cli.[ch] out of varnishd, and rename them to cli_common.[ch].
des [Mon, 7 Aug 2006 05:49:17 +0000 (05:49 +0000)]
Move common_cli.[ch] out of varnishd, and rename them to cli_common.[ch].

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

18 years agoList headers in noinst_HEADERS instead of SOURCES.
des [Mon, 7 Aug 2006 05:47:30 +0000 (05:47 +0000)]
List headers in noinst_HEADERS instead of SOURCES.

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

18 years agoFresh start after study of output from varnishlog -o.
andersb [Mon, 7 Aug 2006 00:21:34 +0000 (00:21 +0000)]
Fresh start after study of output from varnishlog -o.

First off is IP adress logging and clearing.

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

18 years agoAdd compile to svn:ignore.
des [Sun, 6 Aug 2006 17:00:18 +0000 (17:00 +0000)]
Add compile to svn:ignore.

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

18 years agoMake
phk [Sun, 6 Aug 2006 16:55:58 +0000 (16:55 +0000)]
Make
-w -
work as expected.

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

18 years agoSystematically include config.h.
des [Sun, 6 Aug 2006 15:02:57 +0000 (15:02 +0000)]
Systematically include config.h.

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

18 years agoForcibly include config.h.
des [Sun, 6 Aug 2006 14:33:08 +0000 (14:33 +0000)]
Forcibly include config.h.

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

18 years agoChange version to "trunk" until I can figure out a way to have it reflect
des [Sun, 6 Aug 2006 13:51:48 +0000 (13:51 +0000)]
Change version to "trunk" until I can figure out a way to have it reflect
the current date.

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

18 years agoInclude -pipe in CFLAGS.
des [Sun, 6 Aug 2006 13:49:58 +0000 (13:49 +0000)]
Include -pipe in CFLAGS.
Reduce optimization level to -O when debugging.

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

18 years agoAdjust directory properties.
des [Sun, 6 Aug 2006 12:51:02 +0000 (12:51 +0000)]
Adjust directory properties.

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

18 years agoAdjust directory properties.
des [Sun, 6 Aug 2006 12:49:41 +0000 (12:49 +0000)]
Adjust directory properties.

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

18 years agoAdd missing headers and man pages.
des [Sun, 6 Aug 2006 12:26:22 +0000 (12:26 +0000)]
Add missing headers and man pages.

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

18 years agoWe no longer have any CONFIG_SUBDIRS.
des [Sun, 6 Aug 2006 12:26:12 +0000 (12:26 +0000)]
We no longer have any CONFIG_SUBDIRS.

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

18 years agoAdd missing headers.
des [Sun, 6 Aug 2006 12:25:29 +0000 (12:25 +0000)]
Add missing headers.

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

18 years agoUmm, *really* retire libevent.
des [Sun, 6 Aug 2006 12:23:45 +0000 (12:23 +0000)]
Umm, *really* retire libevent.

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

18 years agoRetire libevent.
des [Sun, 6 Aug 2006 12:23:06 +0000 (12:23 +0000)]
Retire libevent.

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

18 years agoFully disconnect varnishtester.
des [Sun, 6 Aug 2006 12:20:56 +0000 (12:20 +0000)]
Fully disconnect varnishtester.

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

18 years agoI have realized that I have major structure problems. I will have to study varnishlog...
andersb [Sun, 6 Aug 2006 00:44:10 +0000 (00:44 +0000)]
I have realized that I have major structure problems. I will have to study varnishlog output a bit more to understand it better.

May wanna start clean again, and use hardearned knowledge to make better and more robust structure.

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

18 years agoChecks show that my IP adress checker is very restrictive and probably deletes other...
andersb [Sat, 5 Aug 2006 22:43:01 +0000 (22:43 +0000)]
Checks show that my IP adress checker is very restrictive and probably deletes other loglines. We still bleeds null lines also.

This will have to be cleaned up.

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

18 years agoLoglines with no IP should no longer appear. That also cleared all lines containing...
andersb [Sat, 5 Aug 2006 22:12:28 +0000 (22:12 +0000)]
Loglines with no IP should no longer appear. That also cleared all lines containing a null. Not sure if my check for IP is to harsly implemented and cleans to much.

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

18 years agoCentralized the stringwriting at last, also started memory cleanup.
andersb [Sat, 5 Aug 2006 21:35:54 +0000 (21:35 +0000)]
Centralized the stringwriting at last, also started memory cleanup.

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

18 years agoAdded user, loginname, statuscode (200, 304 etc.), byte and referer to make a logline...
andersb [Sat, 5 Aug 2006 21:11:50 +0000 (21:11 +0000)]
Added user, loginname, statuscode (200, 304 etc.), byte and referer to make a logline compliant. User and loginname is hardcoded. Referer and User-agen is unclean. Timecode is not working. This version leaks memory bigtime, and is not ready for alpha yet.

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

18 years agoFor consistency: Go to deliver state instead of delivering locally.
phk [Sat, 5 Aug 2006 20:52:05 +0000 (20:52 +0000)]
For consistency: Go to deliver state instead of delivering locally.

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

18 years agoMake vcl methods call their defaults as a last resort.
phk [Sat, 5 Aug 2006 18:11:31 +0000 (18:11 +0000)]
Make vcl methods call their defaults as a last resort.

Fix the location table so it knows about the default code too.

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

18 years agoAnd that is not a good idea either.
phk [Sat, 5 Aug 2006 17:30:54 +0000 (17:30 +0000)]
And that is not a good idea either.

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

18 years agoThis was not a valid test.
phk [Sat, 5 Aug 2006 17:30:08 +0000 (17:30 +0000)]
This was not a valid test.

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

18 years agoAdd some undocumented code to look for something that worries me.
phk [Sat, 5 Aug 2006 17:04:25 +0000 (17:04 +0000)]
Add some undocumented code to look for something that worries me.

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

18 years agoIssue error message for CLI::start and CLI::stop if child is
phk [Sat, 5 Aug 2006 16:41:11 +0000 (16:41 +0000)]
Issue error message for CLI::start and CLI::stop if child is
not in a legal state for command.

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

18 years agoAlso trap SIGTERM
phk [Sat, 5 Aug 2006 16:32:19 +0000 (16:32 +0000)]
Also trap SIGTERM

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

18 years agoMore work on the debug stunt
phk [Sat, 5 Aug 2006 16:31:24 +0000 (16:31 +0000)]
More work on the debug stunt

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

18 years agoPlug memory leaks related to starting/stopping child.
phk [Sat, 5 Aug 2006 15:55:34 +0000 (15:55 +0000)]
Plug memory leaks related to starting/stopping child.

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

18 years agoReplace client_should_run with a 5 state enum to avoid races if multiple
phk [Sat, 5 Aug 2006 15:40:41 +0000 (15:40 +0000)]
Replace client_should_run with a 5 state enum to avoid races if multiple
CLI sources yell at the same time.

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

18 years agoBail if the cli pipe is not ready
phk [Sat, 5 Aug 2006 15:38:51 +0000 (15:38 +0000)]
Bail if the cli pipe is not ready

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

18 years agoPolish the debugstunt and make it possible to avoid it.
phk [Sat, 5 Aug 2006 15:38:27 +0000 (15:38 +0000)]
Polish the debugstunt and make it possible to avoid it.

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

18 years agoWe don't disturb ourselves.
phk [Sat, 5 Aug 2006 15:35:41 +0000 (15:35 +0000)]
We don't disturb ourselves.

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

18 years agoMore defensive coding and a couple of bugs less.
phk [Sat, 5 Aug 2006 14:24:21 +0000 (14:24 +0000)]
More defensive coding and a couple of bugs less.

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

18 years agoMore defensive coding.
phk [Sat, 5 Aug 2006 14:22:33 +0000 (14:22 +0000)]
More defensive coding.

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

18 years agoAdd a timeout to reads from the child CLI pipe so we don't hang
phk [Sat, 5 Aug 2006 12:45:45 +0000 (12:45 +0000)]
Add a timeout to reads from the child CLI pipe so we don't hang
for ever.

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

18 years agoImprove.
phk [Sat, 5 Aug 2006 12:24:37 +0000 (12:24 +0000)]
Improve.

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

18 years agoStyle cleanup.
phk [Sat, 5 Aug 2006 12:24:25 +0000 (12:24 +0000)]
Style cleanup.

remove two unused variables.

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

18 years agoRemove unused include
phk [Sat, 5 Aug 2006 12:24:05 +0000 (12:24 +0000)]
Remove unused include

Fix function arg type

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

18 years agoMake sanity check of binheap permanent and fix style accordingly.
phk [Sat, 5 Aug 2006 12:23:44 +0000 (12:23 +0000)]
Make sanity check of binheap permanent and fix style accordingly.

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

18 years agoRemove unused include
phk [Sat, 5 Aug 2006 12:23:09 +0000 (12:23 +0000)]
Remove unused include

free buffer on error.

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

18 years agoMake sure we don't overflow the line buffer
phk [Sat, 5 Aug 2006 12:22:46 +0000 (12:22 +0000)]
Make sure we don't overflow the line buffer

Remove unused #include

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

18 years agoRemove unused "ip" from backend.
phk [Sat, 5 Aug 2006 12:20:13 +0000 (12:20 +0000)]
Remove unused "ip" from backend.

Make VCL_Load static, and give it a NULL check.

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

18 years agoCleanup unused stuff
phk [Sat, 5 Aug 2006 12:19:33 +0000 (12:19 +0000)]
Cleanup unused stuff

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

18 years agoRemove prototypes for no longer existing functions
phk [Sat, 5 Aug 2006 12:19:03 +0000 (12:19 +0000)]
Remove prototypes for no longer existing functions

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

18 years agoRemove unused includes
phk [Sat, 5 Aug 2006 12:18:45 +0000 (12:18 +0000)]
Remove unused includes

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

18 years agodon't search libevent for includes
phk [Sat, 5 Aug 2006 12:17:56 +0000 (12:17 +0000)]
don't search libevent for includes

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