]> err.no Git - varnish/log
varnish
18 years agoSkip space before request/response
phk [Thu, 6 Jul 2006 13:27:21 +0000 (13:27 +0000)]
Skip space before request/response

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

18 years agoAdd a rudimentary man page.
des [Thu, 6 Jul 2006 13:02:28 +0000 (13:02 +0000)]
Add a rudimentary man page.

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

18 years agoMy version.
phk [Thu, 6 Jul 2006 11:18:34 +0000 (11:18 +0000)]
My version.

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

18 years agoAdd exponential hitrate displays (with -c)
phk [Thu, 6 Jul 2006 10:18:33 +0000 (10:18 +0000)]
Add exponential hitrate displays (with -c)

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

18 years agoAdd a rudimentary man page.
des [Thu, 6 Jul 2006 09:31:45 +0000 (09:31 +0000)]
Add a rudimentary man page.

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

18 years agoExpand keywords
des [Thu, 6 Jul 2006 09:31:37 +0000 (09:31 +0000)]
Expand keywords

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

18 years agoAdd a rudimentary man page.
des [Thu, 6 Jul 2006 09:13:54 +0000 (09:13 +0000)]
Add a rudimentary man page.

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

18 years agoOnly complain if accept_filters fail
phk [Thu, 6 Jul 2006 09:08:49 +0000 (09:08 +0000)]
Only complain if accept_filters fail

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

18 years agoRemove debugging code.
phk [Thu, 6 Jul 2006 09:06:36 +0000 (09:06 +0000)]
Remove debugging code.

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

18 years agoAdd -r file and -w file options.
phk [Thu, 6 Jul 2006 09:00:27 +0000 (09:00 +0000)]
Add -r file and -w file options.

These read/write from/to a binary file.

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

18 years agoIncreas shmem size to 8M
phk [Thu, 6 Jul 2006 08:45:38 +0000 (08:45 +0000)]
Increas shmem size to 8M

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

18 years agoAdd accept filters
phk [Thu, 6 Jul 2006 08:45:23 +0000 (08:45 +0000)]
Add accept filters

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

18 years agoPortability: don't use non-portable mmap(2) flags.
des [Thu, 6 Jul 2006 08:43:53 +0000 (08:43 +0000)]
Portability: don't use non-portable mmap(2) flags.

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

18 years agoPortability: Linux does not have SO_NOSIGPIPE.
des [Thu, 6 Jul 2006 08:43:02 +0000 (08:43 +0000)]
Portability: Linux does not have SO_NOSIGPIPE.

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

18 years agoPortability: cast unused parameters to void instead of marking them __unused.
des [Thu, 6 Jul 2006 08:41:26 +0000 (08:41 +0000)]
Portability: cast unused parameters to void instead of marking them __unused.

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

18 years ago404 handling
phk [Thu, 6 Jul 2006 08:32:38 +0000 (08:32 +0000)]
404 handling

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

18 years agoUse <sys/ioctl.h> instead of <sys/filio.h> to get both the prototype for
des [Thu, 6 Jul 2006 08:07:09 +0000 (08:07 +0000)]
Use <sys/ioctl.h> instead of <sys/filio.h> to get both the prototype for
ioctl(2) and the definition of FIONREAD.

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

18 years agoFix off by one
phk [Wed, 5 Jul 2006 14:40:14 +0000 (14:40 +0000)]
Fix off by one

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

18 years agoprintf format
phk [Wed, 5 Jul 2006 14:40:03 +0000 (14:40 +0000)]
printf format

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

18 years agoAdd randomization and pipelining.
des [Wed, 5 Jul 2006 14:39:02 +0000 (14:39 +0000)]
Add randomization and pipelining.

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

18 years agoCalculate rate as signed.
phk [Wed, 5 Jul 2006 13:54:41 +0000 (13:54 +0000)]
Calculate rate as signed.

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

18 years agoAssert non-null first
phk [Wed, 5 Jul 2006 13:44:20 +0000 (13:44 +0000)]
Assert non-null first

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

18 years agoSend "Connection: close" if not HTTP/1.1
phk [Wed, 5 Jul 2006 13:19:14 +0000 (13:19 +0000)]
Send "Connection: close" if not HTTP/1.1

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

18 years agoAdd more stats
phk [Wed, 5 Jul 2006 13:13:56 +0000 (13:13 +0000)]
Add more stats

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

18 years agoSome asserts to guard against trouble.
phk [Wed, 5 Jul 2006 13:09:01 +0000 (13:09 +0000)]
Some asserts to guard against trouble.

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

18 years agoAnother pipeline fix: don't clobber a pipelined partial header
phk [Wed, 5 Jul 2006 12:17:48 +0000 (12:17 +0000)]
Another pipeline fix: don't clobber a pipelined partial header

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

18 years agoIncrease MAX_CTR to match recursor.pl, and set default count to 10 x MAX_CTR.
des [Wed, 5 Jul 2006 11:44:45 +0000 (11:44 +0000)]
Increase MAX_CTR to match recursor.pl, and set default count to 10 x MAX_CTR.

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

18 years agoDon't lead http header
phk [Wed, 5 Jul 2006 11:42:28 +0000 (11:42 +0000)]
Don't lead http header

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

18 years agoDon't return zero if we caught a signal.
des [Wed, 5 Jul 2006 11:40:24 +0000 (11:40 +0000)]
Don't return zero if we caught a signal.

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

18 years agoFree the session memory correctly
phk [Wed, 5 Jul 2006 11:09:11 +0000 (11:09 +0000)]
Free the session memory correctly

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

18 years agoFree the right header.
phk [Wed, 5 Jul 2006 10:59:31 +0000 (10:59 +0000)]
Free the right header.

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

18 years agoDon't leak objects headers
phk [Wed, 5 Jul 2006 10:55:46 +0000 (10:55 +0000)]
Don't leak objects headers

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

18 years agoIncrease the period to 100000 documents
des [Wed, 5 Jul 2006 10:39:09 +0000 (10:39 +0000)]
Increase the period to 100000 documents
Send CRLF instead of just LF
Vary expiry from 300 to 1800 seconds
Tack on 8 kB of blank lines

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

18 years agoSuppress Accept-Ranges for now.
phk [Wed, 5 Jul 2006 10:01:04 +0000 (10:01 +0000)]
Suppress Accept-Ranges for now.

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

18 years agoCreate an X-Varnish header and put the XID there.
phk [Wed, 5 Jul 2006 09:59:33 +0000 (09:59 +0000)]
Create an X-Varnish header and put the XID there.

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

18 years agoSend headers with sendfile
phk [Wed, 5 Jul 2006 09:56:35 +0000 (09:56 +0000)]
Send headers with sendfile

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

18 years agoAdd Age and Via header to responses.
phk [Wed, 5 Jul 2006 09:44:53 +0000 (09:44 +0000)]
Add Age and Via header to responses.

Change arguments to vca_write_obj() (It should really be "send_repsonse()" ?)
Store received age and time entered into cache in object.
Generate Age: and Via: headers as part of response.

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

18 years agoUnify logging in the response handling
phk [Wed, 5 Jul 2006 09:32:12 +0000 (09:32 +0000)]
Unify logging in the response handling

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

18 years agolog responsecode and length
phk [Wed, 5 Jul 2006 09:11:01 +0000 (09:11 +0000)]
log responsecode and length

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

18 years agoLog reponse code and object length
phk [Wed, 5 Jul 2006 09:10:30 +0000 (09:10 +0000)]
Log reponse code and object length

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

18 years agoAdd Length tag
phk [Wed, 5 Jul 2006 09:08:37 +0000 (09:08 +0000)]
Add Length tag

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

18 years agoAdd signal handling and statistics.
des [Wed, 5 Jul 2006 08:13:01 +0000 (08:13 +0000)]
Add signal handling and statistics.

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

18 years agoShow also rate in curses display
phk [Wed, 5 Jul 2006 08:08:46 +0000 (08:08 +0000)]
Show also rate in curses display

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

18 years agoUse the correct variable when generating the URL.
des [Wed, 5 Jul 2006 07:53:22 +0000 (07:53 +0000)]
Use the correct variable when generating the URL.

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

18 years agoRefactoring.
des [Wed, 5 Jul 2006 07:49:55 +0000 (07:49 +0000)]
Refactoring.

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

18 years agoBe more conservative about wraparound and take them up front in all cases.
phk [Wed, 5 Jul 2006 07:45:32 +0000 (07:45 +0000)]
Be more conservative about wraparound and take them up front in all cases.

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

18 years agoImplement our TTL calculation.
phk [Tue, 4 Jul 2006 22:08:33 +0000 (22:08 +0000)]
Implement our TTL calculation.

A first quick check against the weird timestamps from the VG frontend
squids indicates sensible behaviour.

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

18 years agoLong comment describing how TTL calculation will be done.
phk [Tue, 4 Jul 2006 21:34:39 +0000 (21:34 +0000)]
Long comment describing how TTL calculation will be done.

Review encouraged.

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

18 years agoFix HEAD requests:
phk [Tue, 4 Jul 2006 20:00:27 +0000 (20:00 +0000)]
Fix HEAD requests:

Make modes to http_BuildSbuf descriptive enums.
Send GET to backend also for HEAD requests.
Don't return body for HEAD requests.

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

18 years agoFix pipelining.
phk [Tue, 4 Jul 2006 19:36:00 +0000 (19:36 +0000)]
Fix pipelining.

A braino in http_Dissect() resulted in an off-by-one error
(protected with assert now)

Move any remaning bytes in buffer to front and check for
a complete header before arming the eventloop on the
session.

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

18 years agoMore iterations, and use fread() instead of getc().
des [Tue, 4 Jul 2006 14:52:54 +0000 (14:52 +0000)]
More iterations, and use fread() instead of getc().

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

18 years agoMake room for protective terminating NUL
phk [Tue, 4 Jul 2006 14:45:01 +0000 (14:45 +0000)]
Make room for protective terminating NUL

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

18 years agoretry backend open, log diagnostics
phk [Tue, 4 Jul 2006 14:19:12 +0000 (14:19 +0000)]
retry backend open, log diagnostics

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

18 years agoload VCL earlier
phk [Tue, 4 Jul 2006 14:18:34 +0000 (14:18 +0000)]
load VCL earlier

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

18 years agoLock with a mutex
phk [Tue, 4 Jul 2006 14:18:02 +0000 (14:18 +0000)]
Lock with a mutex

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

18 years agoShorter sleeps: 1s -> 50msec
phk [Tue, 4 Jul 2006 13:45:16 +0000 (13:45 +0000)]
Shorter sleeps:  1s -> 50msec

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

18 years agoFix off by one error during wraparound.
phk [Tue, 4 Jul 2006 13:44:07 +0000 (13:44 +0000)]
Fix off by one error during wraparound.

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

18 years agoCorrect the Connection header, and add ability to perform HEAD requests.
des [Tue, 4 Jul 2006 13:11:39 +0000 (13:11 +0000)]
Correct the Connection header, and add ability to perform HEAD requests.

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

18 years agoAdd some comments.
des [Tue, 4 Jul 2006 12:03:13 +0000 (12:03 +0000)]
Add some comments.

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

18 years agoStuff we use for testing.
des [Tue, 4 Jul 2006 12:01:44 +0000 (12:01 +0000)]
Stuff we use for testing.

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

18 years agoClose non HTTP/1.1 request connections
phk [Tue, 4 Jul 2006 09:28:21 +0000 (09:28 +0000)]
Close non HTTP/1.1 request connections

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

18 years agoAdd missing '%'
phk [Tue, 4 Jul 2006 09:21:33 +0000 (09:21 +0000)]
Add missing '%'

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

18 years agoMy workaround for the missing OFF_T_MAX definition was not safe,
phk [Mon, 3 Jul 2006 19:45:12 +0000 (19:45 +0000)]
My workaround for the missing OFF_T_MAX definition was not safe,
use a hardcoded "1<<30" which is.

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

18 years agoI have grumbled about the evilness of "current_base" before, and this just
phk [Mon, 3 Jul 2006 19:35:05 +0000 (19:35 +0000)]
I have grumbled about the evilness of "current_base" before, and this just
proves the point:  If two threads call event_init() at the same time,
they will both stomp on the same memory via current_base, and in all
likelyhood, neither of them will manage to get the job done properly.

Instead work on a local variable and don't assign to current_base
until the setup is complete.

This should be submitted to Niels Provos

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

18 years agoHandle IPv6 address -> string conversion too
phk [Mon, 3 Jul 2006 18:35:39 +0000 (18:35 +0000)]
Handle IPv6 address -> string conversion too

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

18 years agoClose race condition
phk [Mon, 3 Jul 2006 18:03:44 +0000 (18:03 +0000)]
Close race condition

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

18 years agoBetter arg checking
phk [Mon, 3 Jul 2006 17:59:13 +0000 (17:59 +0000)]
Better arg checking

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

18 years agomore asserts
phk [Mon, 3 Jul 2006 15:01:14 +0000 (15:01 +0000)]
more asserts

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

18 years agoavoid const poison
phk [Mon, 3 Jul 2006 14:39:40 +0000 (14:39 +0000)]
avoid const poison

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

18 years agoInclude pthread.h
phk [Mon, 3 Jul 2006 14:39:02 +0000 (14:39 +0000)]
Include pthread.h

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

18 years agos/unsigned/size_t/
phk [Mon, 3 Jul 2006 14:37:51 +0000 (14:37 +0000)]
s/unsigned/size_t/

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

18 years agos/init/start/
phk [Mon, 3 Jul 2006 14:36:03 +0000 (14:36 +0000)]
s/init/start/

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

18 years agoAdd another hash-method with better real-world survival chances: A classic
phk [Mon, 3 Jul 2006 12:41:14 +0000 (12:41 +0000)]
Add another hash-method with better real-world survival chances: A classic
bucketed hash table of lists.  Hash is MD5.  Number of buckets and number
of mutexes can be configured at command line.

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

18 years agoReplace --enable-wall and --enable-pedantic with --enable-developer-warnings,
des [Mon, 3 Jul 2006 08:30:33 +0000 (08:30 +0000)]
Replace --enable-wall and --enable-pedantic with --enable-developer-warnings,
which is roughly equivalent to FreeBSD's WARNS level 5 or 6.

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

18 years agoMark more headers as not end-to-end
phk [Sat, 1 Jul 2006 05:44:04 +0000 (05:44 +0000)]
Mark more headers as not end-to-end

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

18 years agoForgot to add shmlog.c (reminded by des@)
phk [Fri, 30 Jun 2006 20:22:58 +0000 (20:22 +0000)]
Forgot to add shmlog.c (reminded by des@)

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

18 years agoAdd TAILQ_FOREACH_SAFE()
phk [Fri, 30 Jun 2006 20:21:15 +0000 (20:21 +0000)]
Add TAILQ_FOREACH_SAFE()

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

18 years agomove all policy to rfc2616.c
phk [Fri, 30 Jun 2006 20:17:54 +0000 (20:17 +0000)]
move all policy to rfc2616.c

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

18 years agoConsistently use our own copy of queue.h.
des [Fri, 30 Jun 2006 13:44:09 +0000 (13:44 +0000)]
Consistently use our own copy of queue.h.

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

18 years agoFix object length double accounting in chunked fetch
phk [Fri, 30 Jun 2006 11:20:10 +0000 (11:20 +0000)]
Fix object length double accounting in chunked fetch

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

18 years agoDelete compiled VCL file after we tried to load it.
phk [Fri, 30 Jun 2006 09:14:51 +0000 (09:14 +0000)]
Delete compiled VCL file after we tried to load it.

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

18 years agoLog objects banned to shmlog
phk [Thu, 29 Jun 2006 19:19:18 +0000 (19:19 +0000)]
Log objects banned to shmlog

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

18 years agoTrack objects heap-position
phk [Thu, 29 Jun 2006 19:06:44 +0000 (19:06 +0000)]
Track objects heap-position

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

18 years agoAdd the ability to instantly ban/purge all cached objects matching
phk [Thu, 29 Jun 2006 17:09:24 +0000 (17:09 +0000)]
Add the ability to instantly ban/purge all cached objects matching
a given regexp.

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

18 years agoImprove shm-logging of VCL activity
phk [Thu, 29 Jun 2006 15:14:15 +0000 (15:14 +0000)]
Improve shm-logging of VCL activity

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

18 years agoTag objects with their origin session xid and log it when we clean up.
phk [Thu, 29 Jun 2006 14:37:15 +0000 (14:37 +0000)]
Tag objects with their origin session xid and log it when we clean up.

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

18 years agoAdd a unique transaction-ID to each request, and register it in the
phk [Thu, 29 Jun 2006 13:04:55 +0000 (13:04 +0000)]
Add a unique transaction-ID to each request, and register it in the
shmlog so we can match backend transactions with client transactions.

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

18 years agoConvince flexelint that we know what we do with some asserts
phk [Wed, 28 Jun 2006 21:38:20 +0000 (21:38 +0000)]
Convince flexelint that we know what we do with some asserts

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

18 years agoPut a mutex around the shmlog writes, I've seen my first race.
phk [Wed, 28 Jun 2006 21:33:06 +0000 (21:33 +0000)]
Put a mutex around the shmlog writes, I've seen my first race.

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

18 years agoAdd a -o argument which sorts the log into transactions before output,
phk [Wed, 28 Jun 2006 21:18:00 +0000 (21:18 +0000)]
Add a -o argument which sorts the log into transactions before output,
this is a fair bit easier to chew through than the raw log (the default)

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

18 years agoUse shmlog api from libvarnishapi
phk [Wed, 28 Jun 2006 21:03:47 +0000 (21:03 +0000)]
Use shmlog api from libvarnishapi

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

18 years agoUse SHMLOG api in libvarnishapi
phk [Wed, 28 Jun 2006 20:58:36 +0000 (20:58 +0000)]
Use SHMLOG api in libvarnishapi

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

18 years agoAdd SHMLOG opening and walking functions to libvarnishapi
phk [Wed, 28 Jun 2006 20:58:03 +0000 (20:58 +0000)]
Add SHMLOG opening and walking functions to libvarnishapi

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

18 years agoBe more consistent about which headers we send back.
phk [Wed, 28 Jun 2006 17:46:04 +0000 (17:46 +0000)]
Be more consistent about which headers we send back.

Start 5 threads in the worker pool.

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

18 years agoConstruct our own Content-length header, no matter which of the
phk [Wed, 28 Jun 2006 16:59:07 +0000 (16:59 +0000)]
Construct our own Content-length header, no matter which of the
three (straight, chunked, eof) modes we used to fetch the object.

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

18 years agoDon't finish the sbuf in mode 3
phk [Wed, 28 Jun 2006 16:58:21 +0000 (16:58 +0000)]
Don't finish the sbuf in mode 3

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

18 years agoAssert that the lengths of the storage for the object add up.
phk [Wed, 28 Jun 2006 16:57:50 +0000 (16:57 +0000)]
Assert that the lengths of the storage for the object add up.

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

18 years agoDon't pass Content-Lenght through, we build it ourselves
phk [Wed, 28 Jun 2006 16:57:07 +0000 (16:57 +0000)]
Don't pass Content-Lenght through, we build it ourselves

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

18 years agoPass fd to shmemlog
phk [Wed, 28 Jun 2006 16:20:14 +0000 (16:20 +0000)]
Pass fd to shmemlog

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

18 years agoadd tag for generated headers
phk [Wed, 28 Jun 2006 16:19:21 +0000 (16:19 +0000)]
add tag for generated headers

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