]>
err.no Git - varnish/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
phk [Sat, 5 Aug 2006 12:17:26 +0000 (12:17 +0000)]
style fix
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@656
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 12:16:48 +0000 (12:16 +0000)]
Rename struct vcls to vclprog
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@655
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 11:44:37 +0000 (11:44 +0000)]
remove old file
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@654
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 11:16:03 +0000 (11:16 +0000)]
Change manager to use mgt_event.h instead of threads to be lazy thread
developer compatible.
POSIX, no surprise, doesn't really tell what should happen to a threaded
process which forks and consequently implemenations vary somewhat,
from Solaris which seems to Do The Right Thing, via Linux where it
works "most of the time" and to FreeBSD which more or less actively
sabotages any such attempt.
Grin and live with it...
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@653
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 11:13:42 +0000 (11:13 +0000)]
Remove pthread.h include, it's included in cache.h
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@652
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 11:12:44 +0000 (11:12 +0000)]
Remove debugging printfs
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@651
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 11:08:26 +0000 (11:08 +0000)]
More bugfixes
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@650
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 11:07:49 +0000 (11:07 +0000)]
Add assert
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@649
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 10:31:30 +0000 (10:31 +0000)]
bugfixes
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@648
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 09:27:57 +0000 (09:27 +0000)]
Add signal support.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@647
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 08:49:54 +0000 (08:49 +0000)]
bugfixes
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@646
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 5 Aug 2006 08:19:41 +0000 (08:19 +0000)]
Add a miniature event engine based on poll(2).
It's general enough to find other uses, but right now it's only for
the manager process.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@645
d4fa192b -c00b-0410-8231-
f00ffab90ce4
andersb [Sat, 5 Aug 2006 01:17:47 +0000 (01:17 +0000)]
Got the IP, Request and User-Agent sorted out. Working on the time
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@644
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 20:03:36 +0000 (20:03 +0000)]
Initialize all directions to "opposite" for -b and -c to avoid
spurious first entries.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@643
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 19:42:37 +0000 (19:42 +0000)]
Use id for printing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@642
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 19:36:50 +0000 (19:36 +0000)]
Stats field changes
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@641
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 19:36:35 +0000 (19:36 +0000)]
More comprehensive performance stats and a few asserts, just in case.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@640
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 11:10:57 +0000 (11:10 +0000)]
Now that we keep track of loaded VCLs in the manager, we might
as well allow their manipulation also when the child is not
running.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@639
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 10:54:30 +0000 (10:54 +0000)]
Redo VCL program handling.
Keep track of all loaded VCL programs in the manager and tell the
child to load them via VCL.
Don't start he acceptor thread until a "start" command cones down
the CLI.
XXX: Right now we leak stuff when a VCL program is dicarded
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@638
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 10:23:51 +0000 (10:23 +0000)]
Redo our management of compiled VCL programs:
Take default_vcl out of heritage.
Keep track of all compiled VCL files and delete them at
exit.
After starting child, use CLI to load all vcl programs
and then issue "start" via the CLI.
In the cacher, don't start the acceptor until we get
a start command.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@637
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 09:19:40 +0000 (09:19 +0000)]
Move VCL compiler related stuff to mgt_vcc.c
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@636
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 09:06:40 +0000 (09:06 +0000)]
Remove old cli related stuff, it now lives elsewhere
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@635
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 09:06:07 +0000 (09:06 +0000)]
reimplement CLI stats
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@634
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 07:21:50 +0000 (07:21 +0000)]
Implement CLI ping in manager, this is a "per hop" command.
Add mgt_cli_askchild() function to poke the CLI interface to
the child.
Use it to ping the child every second.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@633
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 07:20:49 +0000 (07:20 +0000)]
Move cli_func_ping to common_cli
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@632
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 07:19:51 +0000 (07:19 +0000)]
SIGCHLD has already been taken care of earlier.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@631
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 06:53:26 +0000 (06:53 +0000)]
Change the CLI protocol in a subtle but useful way:
The first line of the response has a fixed format ("%-3d %-8u\n")
and consequently fixed length (CLI_LINE0_LEN == 13).
This makes parsing responses more efficient. Add a function
in common_cli to do so.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@630
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 06:23:08 +0000 (06:23 +0000)]
(Re)Implement passthru of cli commands, we can now talk with the
cache process again.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@629
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 06:21:56 +0000 (06:21 +0000)]
Add CLIS_CANT status code for when something is valid but currently
impossible.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@628
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 4 Aug 2006 06:21:32 +0000 (06:21 +0000)]
Typo: write cli result to correct pipe.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@627
d4fa192b -c00b-0410-8231-
f00ffab90ce4
andersb [Thu, 3 Aug 2006 23:42:47 +0000 (23:42 +0000)]
Placed a new sbuf_clear at a more strategic place. It got cluttered when a host left without SessionClose of SessionReuse.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@626
d4fa192b -c00b-0410-8231-
f00ffab90ce4
andersb [Thu, 3 Aug 2006 22:01:51 +0000 (22:01 +0000)]
Got a workaround for IP adress fetching. If we connect logger while Varnish is running, we won't catch the IP from SessionOpen since it's already done that. Workaround is to catch the IP from SessionReuse if IP of session is NULL
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@625
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 19:21:55 +0000 (19:21 +0000)]
Fix copy&paste bug in fetch_chunked.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@624
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 19:20:02 +0000 (19:20 +0000)]
Sanitycheck that the length of an object adds up, right when we
fetch it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@623
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 11:46:52 +0000 (11:46 +0000)]
Imlement stopping and restarting of child process.
Not as useful as it will be yet, see ticket 22
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@622
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 11:45:23 +0000 (11:45 +0000)]
Make the pipe-stunt debug process smarter.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@621
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 10:37:22 +0000 (10:37 +0000)]
Take varnishtester out of the loop until it can be de-libevented
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@620
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 10:37:01 +0000 (10:37 +0000)]
Add stop command as well.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@619
d4fa192b -c00b-0410-8231-
f00ffab90ce4
andersb [Thu, 3 Aug 2006 10:16:20 +0000 (10:16 +0000)]
Think I have found a program structure that works. Filling in bits to build logline.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@618
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 09:45:36 +0000 (09:45 +0000)]
Remove libevent from the picture.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@617
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 09:45:14 +0000 (09:45 +0000)]
Rip out the old CLI handling and start over, more or less.
Still bits missing.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@616
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 3 Aug 2006 06:45:58 +0000 (06:45 +0000)]
Rework the cache process CLI handling:
We are only accepting CLI from the pipes in heritage, so simply
run a loop reading those, dispatching lines as we see them.
Export CLI_cmds[] so that the management process can see it,
we might as well take advantage of the shared binary where we can.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@615
d4fa192b -c00b-0410-8231-
f00ffab90ce4
andersb [Wed, 2 Aug 2006 22:53:56 +0000 (22:53 +0000)]
Added SessionReuse so I now write a logline for SessionClose and SessionReuse.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@614
d4fa192b -c00b-0410-8231-
f00ffab90ce4
andersb [Wed, 2 Aug 2006 22:33:31 +0000 (22:33 +0000)]
Starting to get the structure right (I think). Thx for the NULL on each string Poul-Hennning :)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@613
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 20:59:46 +0000 (20:59 +0000)]
Add an assert, just in case.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@612
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 20:54:40 +0000 (20:54 +0000)]
Fix a bug when deleting items in the binheap
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@611
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 19:12:01 +0000 (19:12 +0000)]
log StatAddr with fd=0 to avoid out-of-order confusion
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@610
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 18:17:49 +0000 (18:17 +0000)]
Allow ENOENT on removing kqueue events, a close will have drained
them already.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@609
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 18:12:42 +0000 (18:12 +0000)]
Tell daemon(3) to not chdir in debugging mode so we can find our core dumps.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@608
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 17:45:02 +0000 (17:45 +0000)]
Enter pass mode through the front door.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@607
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 17:27:33 +0000 (17:27 +0000)]
More asserts, sp->vbc this time.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@606
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 15:55:06 +0000 (15:55 +0000)]
Remember to clear sp->vbc
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@605
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 13:28:14 +0000 (13:28 +0000)]
Don my plumbers outfit and twist a lot of pipes into shape:
When -d(ebug) is specified we fork before calling daemon.
The parent process becomes a miniature cat(1) program which connects
stdin/stdout with the management process stdin/stdout.
It also knows that SIGINT should be passed on to the management process
in order to make it DTRT.
Any other cause of death for this "debugger" process will (once I
teach the CLI about it) not affect the running varnish and therefore
it will be possible to start varnish in debugging mode, tweak things
a bit and CTRL-D and leave it running in the properly daemon(3)'ed
background.
The reason for this rather complicated bit of pipework is that we
can not call daemon(3) once we have started any threads (only the
calling thread survives) and we would loose our parent relationship
to the cache process also.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@604
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 12:05:19 +0000 (12:05 +0000)]
Typo: Also monitor remote sockets with the poll based acceptor.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@603
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 11:58:54 +0000 (11:58 +0000)]
Remove the libevent from the backend pool manager.
Simplify the logic here while we're at it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@602
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 11:18:11 +0000 (11:18 +0000)]
Add <stdarg.h> include
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@601
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 11:17:53 +0000 (11:17 +0000)]
Remove unused struct.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@600
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 10:53:49 +0000 (10:53 +0000)]
Simplify backend connection memory management.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@599
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 10:40:22 +0000 (10:40 +0000)]
Replace libevent based acceptor with poll(2) based acceptor.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@598
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 09:34:40 +0000 (09:34 +0000)]
Bite the bullet and write an alternate acceptor which uses kqueue
directly instead of libevent.
Degeneralize the header reading code in cache_http.c which seems to
be cleaner anyway.
An #ifdef at the top of cache_acceptor.c selects which implementation
you want: libevent or kqueue.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@597
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 07:23:45 +0000 (07:23 +0000)]
Convert pipe to use poll(2) on the two filedescriptors it cares about
and eliminate the per-workerthread event engine entirely.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@596
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 07:07:56 +0000 (07:07 +0000)]
I have nothing but circumstantial evidence that libevent is involved
in the current stack corruption I see, but we might as well avoid
using it where we can:
Don't engage the eventengine when we talk to the backend, just call
read(2) directly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@595
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 2 Aug 2006 04:57:58 +0000 (04:57 +0000)]
More miniobj paranoia
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@594
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Aug 2006 19:48:36 +0000 (19:48 +0000)]
More miniobj checks
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@593
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Aug 2006 17:54:34 +0000 (17:54 +0000)]
More miniobj checks
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@592
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Aug 2006 16:42:37 +0000 (16:42 +0000)]
More miniobj checks
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@591
d4fa192b -c00b-0410-8231-
f00ffab90ce4