]> err.no Git - varnish/log
varnish
18 years agoFix argument to http_BuildSbuf
phk [Tue, 25 Apr 2006 09:31:28 +0000 (09:31 +0000)]
Fix argument to http_BuildSbuf

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

18 years agoKeep alive often enough
phk [Tue, 25 Apr 2006 09:30:53 +0000 (09:30 +0000)]
Keep alive often enough

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

18 years agoMake width colum wider and decimal
phk [Tue, 25 Apr 2006 08:17:43 +0000 (08:17 +0000)]
Make width colum wider and decimal

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

18 years agoAdd new shmlog tags and handling states
phk [Tue, 25 Apr 2006 08:17:17 +0000 (08:17 +0000)]
Add new shmlog tags and handling states

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

18 years agoImplement a rudimentary chunked Transfer-Encoding
phk [Tue, 25 Apr 2006 08:14:29 +0000 (08:14 +0000)]
Implement a rudimentary chunked Transfer-Encoding

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

18 years agoreset header count before we dissect
phk [Tue, 25 Apr 2006 07:10:36 +0000 (07:10 +0000)]
reset header count before we dissect

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

18 years agoTrack backend connections in shmem log
phk [Tue, 25 Apr 2006 07:04:43 +0000 (07:04 +0000)]
Track backend connections in shmem log

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

18 years agoAdd an end pointer so allocation size can be changed on the fly
phk [Tue, 25 Apr 2006 06:52:26 +0000 (06:52 +0000)]
Add an end pointer so allocation size can be changed on the fly

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

18 years agoMove shmlog entry, remove debugging
phk [Tue, 25 Apr 2006 06:48:56 +0000 (06:48 +0000)]
Move shmlog entry, remove debugging

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

18 years agoRedo http header storage and processing
phk [Tue, 25 Apr 2006 06:16:22 +0000 (06:16 +0000)]
Redo http header storage and processing

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

18 years agoAdd an indecisive comment
phk [Mon, 24 Apr 2006 19:10:09 +0000 (19:10 +0000)]
Add an indecisive comment

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

18 years agoSort and annotate
phk [Mon, 24 Apr 2006 19:09:32 +0000 (19:09 +0000)]
Sort and annotate

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

18 years agoLoop until we have read it all
phk [Wed, 19 Apr 2006 06:38:57 +0000 (06:38 +0000)]
Loop until we have read it all

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

18 years agoImplement enough of FetchSession and DeliverSession that we can actually
phk [Wed, 19 Apr 2006 06:34:10 +0000 (06:34 +0000)]
Implement enough of FetchSession and DeliverSession that we can actually
deliver a cached object.

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

18 years agoAdd busyflag and strorage link to objects.
phk [Tue, 18 Apr 2006 08:23:44 +0000 (08:23 +0000)]
Add busyflag and strorage link to objects.

Initialize default hasher and stevedore.

Give each workerthread an object pointer to be kept populated with
a template object for when lookups miss and need to insert one.

Add libmd to get MD5, (choice of hash-algorithm to be revisited later)

Implement lookup, begin on fetch.

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

18 years agoAdd trivial malloc backed storage backend.
phk [Tue, 18 Apr 2006 07:34:24 +0000 (07:34 +0000)]
Add trivial malloc backed storage backend.

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

18 years agoImplement the three function VCL model in the compiler.
phk [Wed, 12 Apr 2006 08:58:54 +0000 (08:58 +0000)]
Implement the three function VCL model in the compiler.

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

18 years agoAdd ETag: header
phk [Wed, 12 Apr 2006 08:56:48 +0000 (08:56 +0000)]
Add ETag: header

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

18 years agoBeginnings of the object lookup stuff: A simple list based
phk [Tue, 11 Apr 2006 08:28:20 +0000 (08:28 +0000)]
Beginnings of the object lookup stuff:  A simple list based
implementation to get things moving.

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

18 years agoClose or recycle backend connections as appropriate
phk [Thu, 6 Apr 2006 10:01:09 +0000 (10:01 +0000)]
Close or recycle backend connections as appropriate

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

18 years agoAdd VBE_RecycleFd() function to recycle backend connections
phk [Thu, 6 Apr 2006 10:00:45 +0000 (10:00 +0000)]
Add VBE_RecycleFd() function to recycle backend connections

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

18 years agoPass Content-Encoding header
phk [Thu, 6 Apr 2006 09:59:30 +0000 (09:59 +0000)]
Pass Content-Encoding header

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

18 years agoOutput the fd in decimal instead of hex.
phk [Thu, 6 Apr 2006 09:38:00 +0000 (09:38 +0000)]
Output the fd in decimal instead of hex.

Do Id Keyword

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

18 years agoRename hdr_end to a more sensible rcv_ptr which points to the first
phk [Thu, 6 Apr 2006 09:33:19 +0000 (09:33 +0000)]
Rename hdr_end to a more sensible rcv_ptr which points to the first
unaccounted for character in the buffer.

Do Id Keyword

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

18 years agoAdd shmlog tags for pipe and pass handling
phk [Thu, 6 Apr 2006 09:30:46 +0000 (09:30 +0000)]
Add shmlog tags for pipe and pass handling

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

18 years agoLog tag for session reuse.
phk [Thu, 6 Apr 2006 09:11:28 +0000 (09:11 +0000)]
Log tag for session reuse.

Do Id Keyword

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

18 years agoRecycle sessions instead of retiring them.
phk [Thu, 6 Apr 2006 09:10:24 +0000 (09:10 +0000)]
Recycle sessions instead of retiring them.

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

18 years agoPrune the bits we used from the input buffer before we recycle the
phk [Thu, 6 Apr 2006 09:09:58 +0000 (09:09 +0000)]
Prune the bits we used from the input buffer before we recycle the
session.

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

18 years agoAdd a vca_recycle_session() function which sticks a session back into
phk [Thu, 6 Apr 2006 09:09:09 +0000 (09:09 +0000)]
Add a vca_recycle_session() function which sticks a session back into
the acceptors event engine.

Do Id keyword

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

18 years agoDon't log the terminating NUL on response proto field.
phk [Thu, 6 Apr 2006 09:08:13 +0000 (09:08 +0000)]
Don't log the terminating NUL on response proto field.

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

18 years agoAdd an assert, remove debugging.
phk [Thu, 6 Apr 2006 08:18:53 +0000 (08:18 +0000)]
Add an assert, remove debugging.

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

18 years agoRespect VCL choice of handling
phk [Thu, 6 Apr 2006 08:18:11 +0000 (08:18 +0000)]
Respect VCL choice of handling

Do Id keyword

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

18 years agoDon't attempt to restart child process (yet).
phk [Thu, 6 Apr 2006 08:16:26 +0000 (08:16 +0000)]
Don't attempt to restart child process (yet).

Add Id Keyword handling

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

18 years agoIt's cheaper to pipe than to pass, so if the client indicates
phk [Thu, 6 Apr 2006 08:15:46 +0000 (08:15 +0000)]
It's cheaper to pipe than to pass, so if the client indicates
"Connection: close", pipe instead of passing.

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

18 years agoUse HttpdBuildSbuf()
phk [Thu, 6 Apr 2006 07:50:58 +0000 (07:50 +0000)]
Use HttpdBuildSbuf()

Enable Id keyword

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

18 years agoAdd a function to (re)build a HTTP request or response into an sbuf.
phk [Thu, 6 Apr 2006 07:50:05 +0000 (07:50 +0000)]
Add a function to (re)build a HTTP request or response into an sbuf.

Enable Id keyword

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

18 years agoEliminate leaked developer hacks.
phk [Wed, 5 Apr 2006 10:33:37 +0000 (10:33 +0000)]
Eliminate leaked developer hacks.

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

18 years agoAccount for the last byte of the header.
phk [Wed, 5 Apr 2006 09:40:22 +0000 (09:40 +0000)]
Account for the last byte of the header.

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

18 years agoI can't get AM_CONDITIONAL to work properly, so use a bigger hammer.
des [Tue, 4 Apr 2006 10:35:49 +0000 (10:35 +0000)]
I can't get AM_CONDITIONAL to work properly, so use a bigger hammer.

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

18 years agoMore portability changes: include config.h and compat.h, get rid of __unused.
des [Tue, 4 Apr 2006 10:09:37 +0000 (10:09 +0000)]
More portability changes: include config.h and compat.h, get rid of __unused.

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

18 years agoLink in libcompat, and libsbuf is now static.
des [Tue, 4 Apr 2006 10:08:49 +0000 (10:08 +0000)]
Link in libcompat, and libsbuf is now static.

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

18 years agoMake libsbuf static.
des [Tue, 4 Apr 2006 10:08:36 +0000 (10:08 +0000)]
Make libsbuf static.

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

18 years agoAdd a libcompat with strlcat() and strlcpy() from OpenBSD.
des [Tue, 4 Apr 2006 10:07:40 +0000 (10:07 +0000)]
Add a libcompat with strlcat() and strlcpy() from OpenBSD.

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

18 years agoGet pass-through working for the first request.
phk [Tue, 4 Apr 2006 09:05:45 +0000 (09:05 +0000)]
Get pass-through working for the first request.

Now we can start to play with multi-request sessions and all that.

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

18 years agoAdd HTTP response headers and processing.
phk [Tue, 4 Apr 2006 08:20:24 +0000 (08:20 +0000)]
Add HTTP response headers and processing.

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

18 years agoReverse constification of Argv functions. After cascading through all
phk [Tue, 4 Apr 2006 07:46:30 +0000 (07:46 +0000)]
Reverse constification of Argv functions.  After cascading through all
the CLI functions we hit the fact that the evbuffer functions in libevent
are not properly constified.

It's better to deconst the error messages and just "let it be known" that
argv[0] is const (or NULL).

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

18 years agoGet "Pass" mode moving
phk [Tue, 4 Apr 2006 07:30:32 +0000 (07:30 +0000)]
Get "Pass" mode moving

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

18 years agoMake the "receive a HTTP protocol header" code generic
phk [Tue, 4 Apr 2006 07:29:45 +0000 (07:29 +0000)]
Make the "receive a HTTP protocol header" code generic

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

18 years agoAdd a session callback pointer to struct sess.
phk [Tue, 4 Apr 2006 07:27:06 +0000 (07:27 +0000)]
Add a session callback pointer to struct sess.

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

18 years agoUse bufferevent_base_set() from libevent
phk [Tue, 4 Apr 2006 07:26:26 +0000 (07:26 +0000)]
Use bufferevent_base_set() from libevent

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

18 years agoAdd a missing prototype until libevent people catch up.
phk [Tue, 4 Apr 2006 07:24:54 +0000 (07:24 +0000)]
Add a missing prototype until libevent people catch up.

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

18 years agoAdd a Debug shmemlog tag.
phk [Tue, 4 Apr 2006 07:24:22 +0000 (07:24 +0000)]
Add a Debug shmemlog tag.

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

18 years agoPortability tweaks: use our own sbuf.h and queue.h; get rid of __DECONST; get
des [Tue, 4 Apr 2006 07:24:07 +0000 (07:24 +0000)]
Portability tweaks: use our own sbuf.h and queue.h; get rid of __DECONST; get
rid of digittoint() (which is pointless since ISO C guarantees that digits
are consecutive in the execution character set); get rid of __unused.

Also fix a buglet in argv.c's BackSlash() (parsing of octal numbers), and
constify the array passed around by ParseArgv() and FreeArgv().

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

18 years agoMove memset further up.
phk [Mon, 3 Apr 2006 14:41:51 +0000 (14:41 +0000)]
Move memset further up.

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

18 years agoHook up libevent to the build. Note that this should be made conditional at
des [Mon, 3 Apr 2006 14:20:41 +0000 (14:20 +0000)]
Hook up libevent to the build.  Note that this should be made conditional at
some later date.

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

18 years agoGC
des [Mon, 3 Apr 2006 14:04:16 +0000 (14:04 +0000)]
GC

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

18 years agoRemove generated files which were committed by mistake.
des [Mon, 3 Apr 2006 12:05:44 +0000 (12:05 +0000)]
Remove generated files which were committed by mistake.

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

18 years agoUpdate from libevent CVS trunk.
des [Mon, 3 Apr 2006 11:59:08 +0000 (11:59 +0000)]
Update from libevent CVS trunk.

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

18 years agoSegregate http header fields into a separate structure, we will
phk [Mon, 3 Apr 2006 11:05:53 +0000 (11:05 +0000)]
Segregate http header fields into a separate structure, we will
reuse them a few places by the looks of it.

Add VCA_UNKNOWNHDR (=10) fields for unknown HTTP headers.
If more headers arrive than that, they're lost (and logged as such).

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

18 years agoHow I wish people would think more ahead when writing libraries like
phk [Mon, 3 Apr 2006 11:03:28 +0000 (11:03 +0000)]
How I wish people would think more ahead when writing libraries like
libevent.  The entire "implicit event engine" api assumption stinks.

Deal with it better.

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

18 years agoA little step for humanity but a big step for varnish:
phk [Mon, 3 Apr 2006 09:02:27 +0000 (09:02 +0000)]
A little step for humanity but a big step for varnish:

Implement pipe-through mode and see the first web-pages actually
pass through varnish.

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

18 years agoCall the init function when the VCL code is loaded.
phk [Mon, 3 Apr 2006 07:27:28 +0000 (07:27 +0000)]
Call the init function when the VCL code is loaded.
We may want to postpone this to use time later on.

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

18 years agoAdd 5 dummy fields to the http headers, we will need them subsequently.
phk [Mon, 3 Apr 2006 07:14:24 +0000 (07:14 +0000)]
Add 5 dummy fields to the http headers, we will need them subsequently.

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

18 years agoUse http_headers.h to define session fields for headers and to parse
phk [Fri, 31 Mar 2006 08:27:08 +0000 (08:27 +0000)]
Use http_headers.h to define session fields for headers and to parse
them out of the header.

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

18 years agoAdd missing pthread.h includes
phk [Fri, 31 Mar 2006 08:26:23 +0000 (08:26 +0000)]
Add missing pthread.h includes

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

18 years agoUse http_headers.h to define HTTP header tags for logging
phk [Fri, 31 Mar 2006 08:25:29 +0000 (08:25 +0000)]
Use http_headers.h to define HTTP header tags for logging

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

18 years agoReusable macro definition of HTTP headers. We will need these
phk [Fri, 31 Mar 2006 08:24:36 +0000 (08:24 +0000)]
Reusable macro definition of HTTP headers.  We will need these
several different places in the sources.

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

18 years agoget us closer to a connection to the backend
phk [Thu, 30 Mar 2006 11:16:27 +0000 (11:16 +0000)]
get us closer to a connection to the backend

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

18 years agoRework the compilation of backend specifications in order to be able
phk [Thu, 30 Mar 2006 10:56:57 +0000 (10:56 +0000)]
Rework the compilation of backend specifications in order to be able
to check the provided hostname/portname at compile time.

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

18 years agoAdd the beginning of a backend connection pool
phk [Thu, 30 Mar 2006 09:26:34 +0000 (09:26 +0000)]
Add the beginning of a backend connection pool

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

18 years agoPromote the poll mutex to be a session mutex so that we can use it
phk [Thu, 30 Mar 2006 08:05:11 +0000 (08:05 +0000)]
Promote the poll mutex to be a session mutex so that we can use it
for the VCL reference as well, this saves locking operations.

Call the atual VCL code when we get the request.

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

18 years agoIntegrate the VCL code closer in the cache process: The passed
phk [Thu, 30 Mar 2006 07:05:10 +0000 (07:05 +0000)]
Integrate the VCL code closer in the cache process:  The passed
argument will be the session structure.

Add the pool of worker threads (cache_pool).  With a unitary nature
of the VCL code, the HTTP parsing can be postponed to the worker thread.

This actually helps us with CPU cache locality as it will reduce the
amount of memory allocated on one CPU but freed on another.

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

18 years agoAdd config.load, config.inline and config.use commands.
phk [Mon, 27 Mar 2006 14:12:07 +0000 (14:12 +0000)]
Add config.load, config.inline and config.use commands.

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

18 years agoForgot to add this one. Prototypes for the VCL compiler.
phk [Mon, 27 Mar 2006 14:11:22 +0000 (14:11 +0000)]
Forgot to add this one.  Prototypes for the VCL compiler.

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

18 years agoAdd VCL_CompileFile() function.
phk [Mon, 27 Mar 2006 14:10:43 +0000 (14:10 +0000)]
Add VCL_CompileFile() function.

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

18 years agoJust return if there is nothing to wait for. We get SIGCHLD'ed on
phk [Mon, 27 Mar 2006 13:59:09 +0000 (13:59 +0000)]
Just return if there is nothing to wait for.  We get SIGCHLD'ed on
the popen child process.

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

18 years agoAdd a macro which we can #ifdef
phk [Mon, 27 Mar 2006 13:57:34 +0000 (13:57 +0000)]
Add a macro which we can #ifdef

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

18 years agoBuild default VCL from "-b backend_IP" option and pass it to client
phk [Mon, 27 Mar 2006 12:27:16 +0000 (12:27 +0000)]
Build default VCL from "-b backend_IP" option and pass it to client
via heritage.

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

18 years agoedge closer towards being a nice member of society
phk [Mon, 27 Mar 2006 11:51:31 +0000 (11:51 +0000)]
edge closer towards being a nice member of society

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

18 years agoExperimentally pull in VCL program
phk [Mon, 27 Mar 2006 11:22:29 +0000 (11:22 +0000)]
Experimentally pull in VCL program

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

18 years agoActually generate a shared object
phk [Mon, 27 Mar 2006 11:21:58 +0000 (11:21 +0000)]
Actually generate a shared object

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

18 years agoStuff VCL programs needs to know about.
phk [Mon, 27 Mar 2006 11:21:18 +0000 (11:21 +0000)]
Stuff VCL programs needs to know about.

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

18 years agoadd libvcl
phk [Mon, 27 Mar 2006 09:02:10 +0000 (09:02 +0000)]
add libvcl

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

18 years agoPut under control of auto* tools
phk [Mon, 27 Mar 2006 09:01:56 +0000 (09:01 +0000)]
Put under control of auto* tools

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

18 years agoNewly generated code
phk [Mon, 27 Mar 2006 09:01:06 +0000 (09:01 +0000)]
Newly generated code

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

18 years agoDon't generate sparse array code.
phk [Mon, 27 Mar 2006 09:00:51 +0000 (09:00 +0000)]
Don't generate sparse array code.

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

18 years agoMore complete HTTP parsing and logging.
phk [Fri, 24 Mar 2006 10:46:46 +0000 (10:46 +0000)]
More complete HTTP parsing and logging.

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

18 years agoChange session memory management to avoid <event.h> pollution
phk [Fri, 24 Mar 2006 10:23:43 +0000 (10:23 +0000)]
Change session memory management to avoid <event.h> pollution

Add fledling httpd parsing

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

18 years agoAdd a VSLR() variant which logs a byte range without spending time in
phk [Fri, 24 Mar 2006 10:22:47 +0000 (10:22 +0000)]
Add a VSLR() variant which logs a byte range without spending time in
sprintf

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

18 years agoLog remote IP#:port on session open
phk [Fri, 24 Mar 2006 09:45:39 +0000 (09:45 +0000)]
Log remote IP#:port on session open

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

18 years agoput symbolic names on the tags
phk [Fri, 24 Mar 2006 09:14:06 +0000 (09:14 +0000)]
put symbolic names on the tags

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

18 years agoAdd a minimal log tailer.
phk [Fri, 24 Mar 2006 09:05:19 +0000 (09:05 +0000)]
Add a minimal log tailer.

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

18 years agoMove the SHM tags into a resuable .h file.
phk [Fri, 24 Mar 2006 08:43:48 +0000 (08:43 +0000)]
Move the SHM tags into a resuable .h file.

Minor nits

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

18 years agoAdd shared memory log setup and stuffer function in the child process.
phk [Thu, 23 Mar 2006 15:31:20 +0000 (15:31 +0000)]
Add shared memory log setup and stuffer function in the child process.

Log whenever we get a CLI ping

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

18 years agoNow we're starting to get somewhere: Accept connections and assemble
phk [Thu, 23 Mar 2006 12:20:30 +0000 (12:20 +0000)]
Now we're starting to get somewhere:  Accept connections and assemble
a HTTP request.

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

18 years agoOpen TCP sockets
phk [Thu, 23 Mar 2006 08:45:44 +0000 (08:45 +0000)]
Open TCP sockets

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

18 years agoMake it possible to suspend and resume a cli connection while we wait
phk [Fri, 17 Mar 2006 13:41:32 +0000 (13:41 +0000)]
Make it possible to suspend and resume a cli connection while we wait
for response from the child (or otherwise).

Add a generic "pass-through" handler for cli requests we just pass on
to the child.

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

18 years agoAdd multiplexing for the mgt->child cli connection and get ping/pong
phk [Fri, 17 Mar 2006 10:03:05 +0000 (10:03 +0000)]
Add multiplexing for the mgt->child cli connection and get ping/pong
working across it.

The management process will now keep the child process watchdog from
expiring.

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

18 years agocleanup
phk [Thu, 16 Mar 2006 12:14:59 +0000 (12:14 +0000)]
cleanup

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

18 years agoExpand the empty shell a bit.
phk [Thu, 16 Mar 2006 10:48:50 +0000 (10:48 +0000)]
Expand the empty shell a bit.

Add CLI handler on stdin (for now, in production only if
debug is specified).

Implement help, verbos, ping and start.

start forks the child process, sets up listeners on its stdout/stderr
(where nothing should arrive in production).

Add SIGCHLD handler to reap and restart the child.

Add shell "main" for the child:  Set up a CLI handler on the pipes
passed as heritage.

Add ping command and keepalive timeout.

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