]>
err.no Git - varnish/log
phk [Mon, 10 Jul 2006 14:52:04 +0000 (14:52 +0000)]
Rewrite the worker thread pool code.
Assign prefix WRK to the worker pool.
Introduce a struct workreq since the prefetcher (when it happens) will
not have a session to pass in.
The worker threads get a cond_var each and are hung from a list in
most recently used order.
When a request is queued and the worker thread list is not empty,
tickle the cond_var of the first one.
If no threads were availble the max number of threads is not reached,
try to start another worker thread.
If the max was reached or the start filed (likely due to out of memory)
indicate overflow and let the existing pool deal with it.
Create only the minimum requested number of threads initially.
Allow specification of the timeout before a dynamic worker thread commits
suicide to be specified with -w.
Default parameters are -w1,UINT_MAX,10 {min, max, timeout}
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@409
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 13:59:13 +0000 (13:59 +0000)]
use explicit eventbase.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@408
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 13:58:24 +0000 (13:58 +0000)]
Don't ever set current_base in our version of libevent in order to flush
out any bugs it might cause.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@407
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 13:48:01 +0000 (13:48 +0000)]
Dump errno and strerror in assert
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@406
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 12:00:20 +0000 (12:00 +0000)]
Rework the "connect to backend logic".
Avoid calling getaddrinfo() for every connect by catching the result
in the backend structure.
Minimize number of socket/connect calls by caching the last good
address in the backend structure.
If all addresses in the cached getaddrinfo() result fails, call
getaddrinfo() again (to catch DNS changes) and try the list again.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@405
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 11:24:37 +0000 (11:24 +0000)]
Move sockaddr->ascii conversion to tcp.c
shmlog both ends of backend connections.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@404
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 10:56:12 +0000 (10:56 +0000)]
Be more consistent.
cache_shmlog.c contains stuff for both cache and mgt, so remove the
cache_ prefix.
Rename cache_shmlog.h to common.h and put joint stuff there.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@403
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 10:31:49 +0000 (10:31 +0000)]
put backend session linkage in shmemlog for pipe and pass
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@402
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 10:06:21 +0000 (10:06 +0000)]
Polish HTTP reception a little bit
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@401
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 10:05:48 +0000 (10:05 +0000)]
Drop the max length of first line, it's too expensive to enforce.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@400
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 09:52:06 +0000 (09:52 +0000)]
Fix cosmetic warning
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@399
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 09:51:01 +0000 (09:51 +0000)]
Silence cosmetic warning.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@398
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 09:48:26 +0000 (09:48 +0000)]
Fix cosmetic warnings
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@397
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 09:47:56 +0000 (09:47 +0000)]
Fix a bunch warnings, all cosmetic.
I'm using __unused for now, if we need to use something different
we can do a find/replace.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@396
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 09:28:26 +0000 (09:28 +0000)]
Silence some warnings
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@395
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 09:07:29 +0000 (09:07 +0000)]
Allocate struct http as part of the session allocation.
Remove http_New() and http_Delete()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@394
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 08:41:26 +0000 (08:41 +0000)]
Add heritage.mem_http_headers which is the maximum number of headers
we recognize.
Add http_Init() which initializes struct http given sufficient space.
Respect heritage mem_* values in http_New() (while we still have it)
Allocate backend connections (vbe_conn) with super allocation with
space for http and workspace.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@393
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 08:10:30 +0000 (08:10 +0000)]
Put three memory allocation hints into heritage:
mem_http_1_line (512)
Maximum length of the reqeust/response line of a HTTP message
There is no point in filling the entire buffer with junk if
we get a preposterously long first line.
mem_http_header (4096)
Maximum length of entire HTTP header. If we overflow this
we return 400.
mem_workspace (currently 0)
In the future this will be the space we use for constructing
headers to send and edits done from VCL.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@392
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 07:54:05 +0000 (07:54 +0000)]
Take the vbe_conn (backend connection) structure out of the closet.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@391
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 07:07:13 +0000 (07:07 +0000)]
Turn a comment into english
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@390
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 10 Jul 2006 07:04:36 +0000 (07:04 +0000)]
More sensible order of pointers
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@389
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 9 Jul 2006 21:21:47 +0000 (21:21 +0000)]
Don't pass cache-control through.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@388
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 9 Jul 2006 21:01:55 +0000 (21:01 +0000)]
Add a -h opt which modifies -o to remove "trivial" entries.
Trivial are
{GET,HEAD} which gets a hit and returns 200
{GET,HEAD} which gets a miss, fetches, inserts and returns 200
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@387
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 9 Jul 2006 09:16:25 +0000 (09:16 +0000)]
Don't use braces where they aren't needed.
Let automake know about config.h.
Bump version number to mark that we have passed the first live test.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@386
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 9 Jul 2006 07:13:16 +0000 (07:13 +0000)]
List header files so they are included in the distribution tarball.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@385
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 9 Jul 2006 06:35:48 +0000 (06:35 +0000)]
Use the modern version of AM_INIT_AUTOMAKE, allowing automake to deduce the
correct distribution name.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@384
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 8 Jul 2006 20:29:31 +0000 (20:29 +0000)]
A few edits for FlexeLint
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@383
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 8 Jul 2006 20:19:17 +0000 (20:19 +0000)]
Sanitize #includes a bit in the cache process by moving fundamental
#includes to cache.h
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@382
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 8 Jul 2006 20:18:42 +0000 (20:18 +0000)]
Silence a bogus warning
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@381
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sat, 8 Jul 2006 19:54:10 +0000 (19:54 +0000)]
Move struct http into cache.h
The original reasoning for having it private to cache_http.c was
to avoid pollution with event.h related structures but since that
pollution is happening other ways anyway, the cost is too high.
Include pthread.h, sys/time.h, and event.h from cache.h
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@380
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 8 Jul 2006 19:46:11 +0000 (19:46 +0000)]
Add --enable-debugging-symbols which enables debugging sysmbols and disables
inlining and builtins.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@379
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 8 Jul 2006 19:27:53 +0000 (19:27 +0000)]
Fix "set backend.port".
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@378
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 8 Jul 2006 19:25:16 +0000 (19:25 +0000)]
My version.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@377
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sat, 8 Jul 2006 19:25:08 +0000 (19:25 +0000)]
Expand keywords.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@376
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 08:40:03 +0000 (08:40 +0000)]
Close gracefully in pipe mode
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@374
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:48:49 +0000 (07:48 +0000)]
Set SO_LINGER to zero
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@373
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:25:38 +0000 (07:25 +0000)]
Tell why bind(2) fails
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@372
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:22:55 +0000 (07:22 +0000)]
Pipe anything different from HEAD & GET
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@371
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:22:34 +0000 (07:22 +0000)]
Don't filter headers in Pipe mode
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@370
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:22:15 +0000 (07:22 +0000)]
Fix pipe mode
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@369
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:22:01 +0000 (07:22 +0000)]
Remove debugging printf
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@368
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 07:15:33 +0000 (07:15 +0000)]
Time idle TCP connections out after 30 seconds
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@367
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 06:29:23 +0000 (06:29 +0000)]
Dump our buffer as Debug if we have HTTP header trouble.
Issue 400 for HTTP header buffer overflow.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@366
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 7 Jul 2006 06:27:32 +0000 (06:27 +0000)]
Strvis(3) debug data.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@365
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 22:33:07 +0000 (22:33 +0000)]
Filter out Content-Range headers.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@364
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:57:41 +0000 (21:57 +0000)]
Always log the numeric code as "Status"
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@363
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:57:10 +0000 (21:57 +0000)]
Log the found objects XID when we have a hash-hit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@362
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:56:43 +0000 (21:56 +0000)]
Add shmem tag for Hits
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@361
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:47:51 +0000 (21:47 +0000)]
Refuse all requests without a protocol field with a 400
Implement a function to say "400" with.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@360
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:04:14 +0000 (21:04 +0000)]
Add cache_response for yelling at clients
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@359
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:03:42 +0000 (21:03 +0000)]
Also flush ordered after the long timeout.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@358
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 21:00:38 +0000 (21:00 +0000)]
Strengthen HTTP parsing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@357
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 20:29:26 +0000 (20:29 +0000)]
Make sure the grim reaper doesn't touch busy objects either.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@356
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 20:26:59 +0000 (20:26 +0000)]
The grim reaper needs to wait for objects refcount to drop to zero.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@355
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 20:23:48 +0000 (20:23 +0000)]
Improvements to flush things at timeout and at the end etc.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@354
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 13:40:33 +0000 (13:40 +0000)]
Silence typical broken client connection messages and move the
interesting ones to shmem
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@353
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 6 Jul 2006 13:33:34 +0000 (13:33 +0000)]
Fix braino in Pass handling
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@352
d4fa192b -c00b-0410-8231-
f00ffab90ce4
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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