]>
err.no Git - varnish/log
phk [Fri, 21 Jul 2006 12:06:36 +0000 (12:06 +0000)]
Better name
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@536
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 21 Jul 2006 11:55:17 +0000 (11:55 +0000)]
Convert fetch, insert and deliver to use new HTTP header munging code.
Remove sbuf from workerthread, it is only used in the Error handling
now and it will probably not even survive that in the long run.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@535
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 21 Jul 2006 10:44:12 +0000 (10:44 +0000)]
Make pipe use the new http manipulation.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@534
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 21 Jul 2006 09:32:09 +0000 (09:32 +0000)]
HTTP header munging part (N of M)
NB: Only pass mode (lightly) tested right now.
Give up on the three element array per header and use a two element struct
instead, it reduces obfuscation and removes risk of pointer fandango.
Introduce #defined filtercontrol in http_headers.h, use them in a new
field. Only Pass is there for now.
Use the http-workspace for building headers instead of sbuf.
Move uiovec handling to cache_pool.c where it more naturally belongs
and so we can use it on both backends and sessions.
Add http header munging functiosn for copying, printf'ing, filtering and
writing headers.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@533
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 21 Jul 2006 07:18:40 +0000 (07:18 +0000)]
Rename shmlog tags for headers to RxHeader and TxHeader that's more
logical.
Rename http_Init() to http_Setup() to avoid clash with HTTP_Init().
Remove unused variable
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@532
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 22:08:43 +0000 (22:08 +0000)]
Yet another refinement to the way we store and deal with HTTP headers.
Record a triplet of {start, data, end} for all HTTP data items.
This represents a regrettable uglification of the sourcecode, but
most of it compiles out to constants and the runtime benefits will
be worth it.
Generate H_FOO magic strings for all the headers we know about.
These strings have a length as first char and always ends in ':'.
Also genereate H_FOO format strings in VCL compiler.
Mandate (with assert) that header references happen using H_FOO strings.
Make number of allowed HTTP headers a compile time constant (32)
but make the workspace a run-time variable (4096).
Introduce new SHM tag for dumping aborted HTTP protocol requests.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@531
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 15:10:36 +0000 (15:10 +0000)]
Add XXX comment
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@530
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 14:46:49 +0000 (14:46 +0000)]
Keep an eye on deathrow
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@529
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 14:40:54 +0000 (14:40 +0000)]
More asserts
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@528
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 14:23:59 +0000 (14:23 +0000)]
We need to check the TTL here also, if a (sequence of) slow client(s)
manages to hold the document referenced, the prefetcher may never
get lucky with it and it will linger here much past last sell date.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@527
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 13:42:56 +0000 (13:42 +0000)]
Only reference srcaddr on first request on session
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@526
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 13:39:47 +0000 (13:39 +0000)]
Be more paranoid about srcaddr
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@525
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 13:33:22 +0000 (13:33 +0000)]
upd
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@524
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 13:29:13 +0000 (13:29 +0000)]
Keep track of active source addresses
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@523
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Thu, 20 Jul 2006 12:15:49 +0000 (12:15 +0000)]
Added varnish / RFC2616 illustrations
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@522
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 20 Jul 2006 12:03:10 +0000 (12:03 +0000)]
Add -1 option that stops comparison after first field.
Useful with commands like:
varnishtop -i header -1
varnishtop -i srcaddr -1
where the variable part of the entry is less relevant.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@521
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 20 Jul 2006 11:17:44 +0000 (11:17 +0000)]
Remove reference to XSL stylesheet.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@520
d4fa192b -c00b-0410-8231-
f00ffab90ce4
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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