]> err.no Git - varnish/log
varnish
18 years agoFix stylesheet path (botched in previous commit)
des [Thu, 20 Jul 2006 11:16:01 +0000 (11:16 +0000)]
Fix stylesheet path (botched in previous commit)

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

18 years agoAdd missing end tags + whitespace cleanup
des [Thu, 20 Jul 2006 11:15:16 +0000 (11:15 +0000)]
Add missing end tags + whitespace cleanup

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

18 years agoRewrite the "components" part to match reality.
phk [Thu, 20 Jul 2006 10:55:18 +0000 (10:55 +0000)]
Rewrite the "components" part to match reality.

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

18 years agoShow also average since start
phk [Thu, 20 Jul 2006 10:10:24 +0000 (10:10 +0000)]
Show also average since start

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

18 years agoHmm, that was a bad idea.
phk [Thu, 20 Jul 2006 09:58:11 +0000 (09:58 +0000)]
Hmm, that was a bad idea.

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

18 years agoLoop till we have everything.
phk [Thu, 20 Jul 2006 09:42:47 +0000 (09:42 +0000)]
Loop till we have everything.

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

18 years agoImplement "If-Modified-Since" conditional queries
phk [Thu, 20 Jul 2006 09:29:45 +0000 (09:29 +0000)]
Implement "If-Modified-Since" conditional queries

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

18 years agoRemove explicit worker thread arguments.
phk [Thu, 20 Jul 2006 08:29:14 +0000 (08:29 +0000)]
Remove explicit worker thread arguments.

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

18 years agoMove the delivery functions from acceptor to response
phk [Thu, 20 Jul 2006 08:25:53 +0000 (08:25 +0000)]
Move the delivery functions from acceptor to response

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

18 years agoRework the worker thread pool logic slightly, we were leaking
phk [Wed, 19 Jul 2006 21:16:03 +0000 (21:16 +0000)]
Rework the worker thread pool logic slightly, we were leaking
threads before.

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

18 years agoInclude a "start_time" timestamp in the stats and teach varnishstats
phk [Wed, 19 Jul 2006 21:14:41 +0000 (21:14 +0000)]
Include a "start_time" timestamp in the stats and teach varnishstats
to print it in curses mode.

Some polishing and cleanup.

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

18 years agoUse insert_pass in vcl_fetch() so we cache the uncacheability.
phk [Wed, 19 Jul 2006 20:07:16 +0000 (20:07 +0000)]
Use insert_pass in vcl_fetch() so we cache the uncacheability.

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

18 years agoDon't explode on trim's to zero size.
phk [Wed, 19 Jul 2006 20:06:18 +0000 (20:06 +0000)]
Don't explode on trim's to zero size.

Real fix should (maybe) be to callers

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

18 years agoUpdate only once per second.
phk [Wed, 19 Jul 2006 19:49:22 +0000 (19:49 +0000)]
Update only once per second.

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

18 years agoMake sure width and precision arguments to printf %*.*s are ints.
phk [Wed, 19 Jul 2006 19:48:23 +0000 (19:48 +0000)]
Make sure width and precision arguments to printf %*.*s are ints.

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

18 years agoDon't panic on NULL srcaddr, but revisit later when we know the
phk [Wed, 19 Jul 2006 19:47:29 +0000 (19:47 +0000)]
Don't panic on NULL srcaddr, but revisit later when we know the
details.  Is it the Prefetcher ?

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

18 years agoDelete the right list item.
phk [Wed, 19 Jul 2006 19:45:51 +0000 (19:45 +0000)]
Delete the right list item.

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

18 years agoDon't bother determining if we should close if we already have done so.
phk [Wed, 19 Jul 2006 19:45:14 +0000 (19:45 +0000)]
Don't bother determining if we should close if we already have done so.
Also: we may not have valid headers if cache_http.c threw a 400.

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

18 years agoMake sure hp->v is NUL terminated.
phk [Wed, 19 Jul 2006 19:43:39 +0000 (19:43 +0000)]
Make sure hp->v is NUL terminated.

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

18 years agoUse miniobj.h to catch pointer trouble
phk [Wed, 19 Jul 2006 12:37:03 +0000 (12:37 +0000)]
Use miniobj.h to catch pointer trouble

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

18 years agoAdd miniobj.h for debugging
phk [Wed, 19 Jul 2006 12:36:42 +0000 (12:36 +0000)]
Add miniobj.h for debugging

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

18 years agoAvoid the Error path for now.
phk [Wed, 19 Jul 2006 11:53:06 +0000 (11:53 +0000)]
Avoid the Error path for now.

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

18 years agohandle 302 for now.
phk [Wed, 19 Jul 2006 11:11:48 +0000 (11:11 +0000)]
handle 302 for now.

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

18 years agoProperly zero the worker structure when we start a thread.
phk [Wed, 19 Jul 2006 08:33:10 +0000 (08:33 +0000)]
Properly zero the worker structure when we start a thread.

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

18 years agoeliminate debugging
phk [Tue, 18 Jul 2006 13:47:10 +0000 (13:47 +0000)]
eliminate debugging

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

18 years agoDelete binheap root by it's index.
phk [Tue, 18 Jul 2006 13:19:55 +0000 (13:19 +0000)]
Delete binheap root by it's index.

Expect a refcount of one (the one holding the object in the hash)

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

18 years agoFix the Parent calculation
phk [Tue, 18 Jul 2006 13:18:50 +0000 (13:18 +0000)]
Fix the Parent calculation

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

18 years agoSet the index of deleted elements to zero
phk [Tue, 18 Jul 2006 12:46:23 +0000 (12:46 +0000)]
Set the index of deleted elements to zero

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

18 years agoMove the root index from zero to one
phk [Tue, 18 Jul 2006 12:40:17 +0000 (12:40 +0000)]
Move the root index from zero to one

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

18 years agoRemove the deref/unbusy stuff from FetchBody() it's done in central.c
phk [Tue, 18 Jul 2006 12:29:11 +0000 (12:29 +0000)]
Remove the deref/unbusy stuff from FetchBody() it's done in central.c

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

18 years agoAssert that object is busy when we call unbusy
phk [Tue, 18 Jul 2006 12:28:32 +0000 (12:28 +0000)]
Assert that object is busy when we call unbusy

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

18 years agoUse a void * for http_Read()'s buffer
phk [Tue, 18 Jul 2006 12:27:57 +0000 (12:27 +0000)]
Use a void * for http_Read()'s buffer

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

18 years agoBraino this time.
phk [Tue, 18 Jul 2006 10:48:21 +0000 (10:48 +0000)]
Braino this time.

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

18 years agotypo
phk [Tue, 18 Jul 2006 10:45:57 +0000 (10:45 +0000)]
typo

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

18 years agoAdd http_Read() which reads from a socket but soaks up any prefeched
phk [Tue, 18 Jul 2006 10:45:15 +0000 (10:45 +0000)]
Add http_Read() which reads from a socket but soaks up any prefeched
tail first and use it all the places where this logic was explicit
before.

Fix Refcounting on objects when we insert/deliver

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

18 years agoUse bigger buffersizes for pass mode
phk [Tue, 18 Jul 2006 10:32:40 +0000 (10:32 +0000)]
Use bigger buffersizes for pass mode

Terminate the sbuf with the reply headers properly.

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

18 years agoRetire the http_GetReq(), http_GetURL() and http_GetProto() accessor
phk [Tue, 18 Jul 2006 09:02:56 +0000 (09:02 +0000)]
Retire the http_GetReq(), http_GetURL() and http_GetProto() accessor
functions now that struct http is out of the closet.

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

18 years agopolish
phk [Tue, 18 Jul 2006 08:52:07 +0000 (08:52 +0000)]
polish

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

18 years agozero means 'all' to http_GetTail()
phk [Tue, 18 Jul 2006 08:51:42 +0000 (08:51 +0000)]
zero means 'all' to http_GetTail()

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

18 years agouse space to separate host and port in -b
phk [Fri, 14 Jul 2006 13:54:41 +0000 (13:54 +0000)]
use space to separate host and port in -b

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

18 years agoUse space to separate host and port in backend spec.
phk [Fri, 14 Jul 2006 13:52:11 +0000 (13:52 +0000)]
Use space to separate host and port in backend spec.

Polish usage message a bit.

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

18 years agoWhen during a lookup we encounter a busy object, queue the session on
phk [Fri, 14 Jul 2006 13:33:26 +0000 (13:33 +0000)]
When during a lookup we encounter a busy object, queue the session on
the objects waitinglist and disembark the worker thread so it can do
something sensible in the mean time.

This feature is unimportant in normal operation, but crucial to
resource management if a popular URL suddenly takes a long time to
reply from the backend.

Without this bit if semi-nasty code, we would tie up one worker
thread per client while waiting for the backend to come to it's
senses.

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

18 years agoHave the acceptor launch the session into STP_RECV
phk [Fri, 14 Jul 2006 12:47:09 +0000 (12:47 +0000)]
Have the acceptor launch the session into STP_RECV

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

18 years agoUse the fact that we have the worker thread in struct sess now.
phk [Fri, 14 Jul 2006 12:45:56 +0000 (12:45 +0000)]
Use the fact that we have the worker thread in struct sess now.

Move initial and final processing into cnt_recv() and cnt_done()

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

18 years agoHave the states tell us if we are done yet with their return value,
phk [Fri, 14 Jul 2006 12:30:49 +0000 (12:30 +0000)]
Have the states tell us if we are done yet with their return value,
so that we can implement disembarking the worker thread of the object
is busy.

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

18 years agoPut a starttime in shmem so varnishstat can show average rates.
phk [Fri, 14 Jul 2006 12:22:44 +0000 (12:22 +0000)]
Put a starttime in shmem so varnishstat can show average rates.

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

18 years agoFlexelint'ing, found a spurious ';'
phk [Fri, 14 Jul 2006 12:12:46 +0000 (12:12 +0000)]
Flexelint'ing, found a spurious ';'

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

18 years agoMore SHM creation polishing
phk [Fri, 14 Jul 2006 12:05:28 +0000 (12:05 +0000)]
More SHM creation polishing

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

18 years agoBetter and more paranoid SHMEM creation logic
phk [Fri, 14 Jul 2006 11:44:28 +0000 (11:44 +0000)]
Better and more paranoid SHMEM creation logic

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

18 years agopropset Id
phk [Fri, 14 Jul 2006 11:42:29 +0000 (11:42 +0000)]
propset Id

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

18 years agoChange "client" to "srcaddr", it's more descriptive.
phk [Fri, 14 Jul 2006 11:20:10 +0000 (11:20 +0000)]
Change "client" to "srcaddr", it's more descriptive.

Add srcaddr management and start charging bytes to the srcaddr.

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

18 years agoRework the way we do ascii representations of addresses
phk [Fri, 14 Jul 2006 10:34:06 +0000 (10:34 +0000)]
Rework the way we do ascii representations of addresses

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

18 years agoMove session management to new file (cache_session, SES prefix) in
phk [Fri, 14 Jul 2006 10:16:27 +0000 (10:16 +0000)]
Move session management to new file (cache_session, SES prefix) in
preparation of adding client tracking.

Move the iovec's from the session to the worker and give the session
a pointer to the worker so we can avoid passing it around as argument.

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

18 years agoMore Flexelinting
phk [Wed, 12 Jul 2006 23:30:49 +0000 (23:30 +0000)]
More Flexelinting

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

18 years agoMore flexelinting.
phk [Wed, 12 Jul 2006 22:52:08 +0000 (22:52 +0000)]
More flexelinting.

No bugs so far.

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

18 years agoFlexelint harder.
phk [Wed, 12 Jul 2006 22:07:00 +0000 (22:07 +0000)]
Flexelint harder.

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

18 years agoGive this file a flexelinting
phk [Wed, 12 Jul 2006 22:01:43 +0000 (22:01 +0000)]
Give this file a flexelinting

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

18 years agoImprove the INCOMPL() macro.
phk [Wed, 12 Jul 2006 22:01:15 +0000 (22:01 +0000)]
Improve the INCOMPL() macro.

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

18 years agoMore polishing.
phk [Wed, 12 Jul 2006 20:21:47 +0000 (20:21 +0000)]
More polishing.

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

18 years agoMove sessmtx to cache_vcl.c and call it vcl_mtx.
phk [Wed, 12 Jul 2006 19:28:06 +0000 (19:28 +0000)]
Move sessmtx to cache_vcl.c and call it vcl_mtx.

Clean up naming for consistency while here.

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

18 years agoImplement "insert_pass" mode where we cache that an entity must be passed.
phk [Wed, 12 Jul 2006 15:07:42 +0000 (15:07 +0000)]
Implement "insert_pass" mode where we cache that an entity must be passed.

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

18 years agoMake Pass possible from vcl_hit()
phk [Wed, 12 Jul 2006 14:13:50 +0000 (14:13 +0000)]
Make Pass possible from vcl_hit()

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

18 years agoEnable Id keyword
phk [Wed, 12 Jul 2006 13:28:57 +0000 (13:28 +0000)]
Enable Id keyword

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

18 years agoFirst stab at implementing pass in vcl_miss()
phk [Wed, 12 Jul 2006 13:28:26 +0000 (13:28 +0000)]
First stab at implementing pass in vcl_miss()

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

18 years agoAdd explanation for locking, some minor polishing.
phk [Wed, 12 Jul 2006 13:27:42 +0000 (13:27 +0000)]
Add explanation for locking, some minor polishing.

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

18 years agoHash on both URL and Host header. If no host header, hash on URL twice.
phk [Wed, 12 Jul 2006 12:04:28 +0000 (12:04 +0000)]
Hash on both URL and Host header.  If no host header, hash on URL twice.

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

18 years agoMake Pass work again
phk [Wed, 12 Jul 2006 11:48:07 +0000 (11:48 +0000)]
Make Pass work again

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

18 years agoMake pipe work again
phk [Wed, 12 Jul 2006 11:45:53 +0000 (11:45 +0000)]
Make pipe work again

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

18 years agoFix CLI "config.load"
phk [Wed, 12 Jul 2006 08:56:09 +0000 (08:56 +0000)]
Fix CLI "config.load"

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

18 years agoAlways insert a backend when vcl is compiled.
phk [Wed, 12 Jul 2006 08:44:56 +0000 (08:44 +0000)]
Always insert a backend when vcl is compiled.

Respect '#' comments in script file.

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

18 years agoTeach the VCL compiler about default functions, so that users will
phk [Wed, 12 Jul 2006 08:34:48 +0000 (08:34 +0000)]
Teach the VCL compiler about default functions, so that users will
not have to copy&paste the default methods if they have no special
requirements for a particular method.

No such facility exists for backends, so a backend description is
now the minumum VCL program.

When we initialize the VCL compiler we hand it a piece of source code
with the "default code", this must include definitions of all methods
named with a "default_" prefix (ie: "default_vcl_recv" etc).

During compilation we always compile this piece of source code in (after
the user supplied VCL source).

If the user did not provide a particular method, the default method is
used instead.  The user can also call the default method directly,
for instance by:

sub vcl_recv {
if (req.http.Expect) {
error;
}
call default_vcl_recv;
}

Later on, this could be expanded to allow other subroutines to be
included in the default VCL for the users calling convenience.

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

18 years agoPause after 'vcl' command
phk [Wed, 12 Jul 2006 07:45:59 +0000 (07:45 +0000)]
Pause after 'vcl' command

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

18 years agoEOF detection in libevent is buggy ?? Add exit cmd.
phk [Tue, 11 Jul 2006 21:35:31 +0000 (21:35 +0000)]
EOF detection in libevent is buggy ??  Add exit cmd.

Pause after cli until we see "OK"

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

18 years agoadd a req command, various adjustments
phk [Tue, 11 Jul 2006 21:30:38 +0000 (21:30 +0000)]
add a req command, various adjustments

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

18 years agoAdd Pause() and Resume() to pace script execution
phk [Tue, 11 Jul 2006 21:04:45 +0000 (21:04 +0000)]
Add Pause() and Resume() to pace script execution

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

18 years agoAdd a printf when cached is ready for the benefit of varnishtester
phk [Tue, 11 Jul 2006 21:01:07 +0000 (21:01 +0000)]
Add a printf when cached is ready for the benefit of varnishtester

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

18 years agoopen and close commands
phk [Tue, 11 Jul 2006 20:49:18 +0000 (20:49 +0000)]
open and close commands

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

18 years agoA vcl keyword for loading a new config
phk [Tue, 11 Jul 2006 20:37:43 +0000 (20:37 +0000)]
A vcl keyword for loading a new config

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

18 years agoAdd "cli" to tell varnishd things
phk [Tue, 11 Jul 2006 19:29:16 +0000 (19:29 +0000)]
Add "cli" to tell varnishd things

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

18 years agoIf the first char of the serve string is '!', close connection after
phk [Tue, 11 Jul 2006 19:16:42 +0000 (19:16 +0000)]
If the first char of the serve string is '!', close connection after
sending string.

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

18 years agoAdd a server facility to act as backend for varnish
phk [Tue, 11 Jul 2006 19:10:05 +0000 (19:10 +0000)]
Add a server facility to act as backend for varnish

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

18 years agoMinimal ability to start and stop a varnishd
phk [Tue, 11 Jul 2006 18:21:06 +0000 (18:21 +0000)]
Minimal ability to start and stop a varnishd

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

18 years agoGive 'exit' CLI command some bite. we may want to be more careful
phk [Tue, 11 Jul 2006 18:16:13 +0000 (18:16 +0000)]
Give 'exit' CLI command some bite.  we may want to be more careful
later on.

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

18 years agoUnbuffer stdout/stderr
phk [Tue, 11 Jul 2006 17:53:44 +0000 (17:53 +0000)]
Unbuffer stdout/stderr

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

18 years agoAdd stub varnishtester program
phk [Tue, 11 Jul 2006 17:23:41 +0000 (17:23 +0000)]
Add stub varnishtester program

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

18 years agoStart the cache process automatically, I've gotten tired of typing "start" :-)
phk [Tue, 11 Jul 2006 16:31:05 +0000 (16:31 +0000)]
Start the cache process automatically, I've gotten tired of typing "start" :-)

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

18 years agoAllow backend to be specified as "host:port" to -b
phk [Tue, 11 Jul 2006 16:25:49 +0000 (16:25 +0000)]
Allow backend to be specified as "host:port" to -b

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

18 years agoadd short descriptive comments to each state
phk [Tue, 11 Jul 2006 16:17:13 +0000 (16:17 +0000)]
add short descriptive comments to each state

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

18 years agoDistribute code from FetchSession almost correctly
phk [Tue, 11 Jul 2006 16:10:10 +0000 (16:10 +0000)]
Distribute code from FetchSession almost correctly

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

18 years agoAdd "insert_pass" action in VCL
phk [Tue, 11 Jul 2006 16:03:25 +0000 (16:03 +0000)]
Add "insert_pass" action in VCL

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

18 years agoMake things work again by stuffing the old functions into the new
phk [Tue, 11 Jul 2006 15:54:05 +0000 (15:54 +0000)]
Make things work again by stuffing the old functions into the new
state engine.

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

18 years agoThis commit breaks warnish temporarily:
phk [Tue, 11 Jul 2006 15:18:54 +0000 (15:18 +0000)]
This commit breaks warnish temporarily:

Insert the new master state engine.

A dot(1) graph is embedded in the source code and can be extracted
with:

sed -n '/^DOT/s///p' cache_center.c | dot -Tps > /tmp/_.ps

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

18 years agoAdd enum for major procesing steps
phk [Tue, 11 Jul 2006 13:31:14 +0000 (13:31 +0000)]
Add enum for major procesing steps

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

18 years agoStart centralizing the flow of requests through varnish so we get
phk [Tue, 11 Jul 2006 12:31:44 +0000 (12:31 +0000)]
Start centralizing the flow of requests through varnish so we get
one source file with the highest level of policy.

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

18 years agoMake -b and -c less nonsensical when not specified
phk [Tue, 11 Jul 2006 12:30:23 +0000 (12:30 +0000)]
Make -b and -c less nonsensical when not specified

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

18 years agoPipe requests which come with an Expect header.
phk [Tue, 11 Jul 2006 12:00:22 +0000 (12:00 +0000)]
Pipe requests which come with an Expect header.

XXX: document that
error 417 "expectation failed"
might be a more sensible policy.

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

18 years agoDocument -b and -c, and bump date.
des [Tue, 11 Jul 2006 11:41:31 +0000 (11:41 +0000)]
Document -b and -c, and bump date.

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

18 years agoAdd -b[ackend] and -c[lient] generic options to logtailers
phk [Tue, 11 Jul 2006 11:36:14 +0000 (11:36 +0000)]
Add -b[ackend] and -c[lient] generic options to logtailers

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

18 years agoAdd 500 messages.
phk [Tue, 11 Jul 2006 07:38:42 +0000 (07:38 +0000)]
Add 500 messages.

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

18 years agoSplit http_Dissect() into http_DissectRequest() and http_DissectResponse()
phk [Tue, 11 Jul 2006 07:30:53 +0000 (07:30 +0000)]
Split http_Dissect() into http_DissectRequest() and http_DissectResponse()

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