]> err.no Git - varnish/log
varnish
18 years agoMore flexelinting.
phk [Wed, 12 Jul 2006 22:52:08 +0000 (22:52 +0000)]
More flexelinting.

No bugs so far.

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

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

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

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

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

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

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

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

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

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

Clean up naming for consistency while here.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Respect '#' comments in script file.

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

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

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

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

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

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

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

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

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

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

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

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

Pause after cli until we see "OK"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Insert the new master state engine.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

18 years agoAdd cross-references and a commented-out STANDARDS section.
des [Tue, 11 Jul 2006 06:30:38 +0000 (06:30 +0000)]
Add cross-references and a commented-out STANDARDS section.

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

18 years agoAdd a note to update varnishlog(1) whenever this list changes.
des [Tue, 11 Jul 2006 06:28:18 +0000 (06:28 +0000)]
Add a note to update varnishlog(1) whenever this list changes.

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

18 years agoAdd cross-references.
des [Tue, 11 Jul 2006 06:27:54 +0000 (06:27 +0000)]
Add cross-references.

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

18 years agoDocument the -C, -I, -X, -i, -x options.
des [Tue, 11 Jul 2006 06:26:19 +0000 (06:26 +0000)]
Document the -C, -I, -X, -i, -x options.
Add a list of log entry tags.
Add cross-references to varnishd(1) and varnishstat(1).

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

18 years agoAdd varnishtop log-tailer.
phk [Mon, 10 Jul 2006 21:54:11 +0000 (21:54 +0000)]
Add varnishtop log-tailer.

Try these:

varnishtop -i url

varhishtop -i header -C -I '^user-agent:'

varhishtop -i header -C -I '^user-agent:' -X MSIE

varhishtop -i header -C -I '^user-agent:.*MSIE'

varhishtop -i header -C -I '^user-agent:.*java'

You can also run them on the logfiles from the live test:

zcat _vlog21.gz | varnishtop -r - -i header ...

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

18 years agoFix so that both -I and -X can be specified
phk [Mon, 10 Jul 2006 21:49:55 +0000 (21:49 +0000)]
Fix so that both -I and -X can be specified

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

18 years agoImplement -C, -I <regex> and -X <regex> generic options
phk [Mon, 10 Jul 2006 20:49:07 +0000 (20:49 +0000)]
Implement -C, -I <regex> and -X <regex> generic options

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

18 years agoAdd tag names array to libvarnishapi, everybody is going to need it.
phk [Mon, 10 Jul 2006 20:27:52 +0000 (20:27 +0000)]
Add tag names array to libvarnishapi, everybody is going to need it.

Implement -i tag[,tag ...] and -x tag[,tag ...] generic arguments.

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

18 years agoImprove libvarnishapi interface to shared memory:
phk [Mon, 10 Jul 2006 19:54:33 +0000 (19:54 +0000)]
Improve libvarnishapi interface to shared memory:

Add function VSL_OpenStats() which directly returns a pointer
to the varnish_stats structure.

Add opaque VSL_data structure as handle to the log-tailer functions.

Add generic argument parsing function for all log-tailers.

Add support for generic "-r <file>" option.

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

18 years agoMore statistics about worker threads.
phk [Mon, 10 Jul 2006 15:02:06 +0000 (15:02 +0000)]
More statistics about worker threads.

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

18 years agoRewrite the worker thread pool code.
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

18 years agouse explicit eventbase.
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

18 years agoDon't ever set current_base in our version of libevent in order to flush
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

18 years agoDump errno and strerror in assert
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

18 years agoRework the "connect to backend logic".
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

18 years agoMove sockaddr->ascii conversion to tcp.c
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

18 years agoBe more consistent.
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

18 years agoput backend session linkage in shmemlog for pipe and pass
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

18 years agoPolish HTTP reception a little bit
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

18 years agoDrop the max length of first line, it's too expensive to enforce.
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

18 years agoFix cosmetic warning
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

18 years agoSilence cosmetic warning.
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

18 years agoFix cosmetic warnings
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

18 years agoFix a bunch warnings, all cosmetic.
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

18 years agoSilence some warnings
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

18 years agoAllocate struct http as part of the session allocation.
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

18 years agoAdd heritage.mem_http_headers which is the maximum number of headers
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

18 years agoPut three memory allocation hints into heritage:
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

18 years agoTake the vbe_conn (backend connection) structure out of the closet.
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

18 years agoTurn a comment into english
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

18 years agoMore sensible order of pointers
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

18 years agoDon't pass cache-control through.
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

18 years agoAdd a -h opt which modifies -o to remove "trivial" entries.
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

18 years agoDon't use braces where they aren't needed.
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

18 years agoList header files so they are included in the distribution tarball.
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

18 years agoUse the modern version of AM_INIT_AUTOMAKE, allowing automake to deduce the
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

18 years agoA few edits for FlexeLint
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

18 years agoSanitize #includes a bit in the cache process by moving fundamental
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

18 years agoSilence a bogus warning
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

18 years agoMove struct http into cache.h
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

18 years agoAdd --enable-debugging-symbols which enables debugging sysmbols and disables
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

18 years agoFix "set backend.port".
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

18 years agoMy version.
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

18 years agoExpand keywords.
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

18 years agoClose gracefully in pipe mode
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

18 years agoSet SO_LINGER to zero
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

18 years agoTell why bind(2) fails
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

18 years agoPipe anything different from HEAD & GET
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

18 years agoDon't filter headers in Pipe mode
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

18 years agoFix pipe mode
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

18 years agoRemove debugging printf
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

18 years agoTime idle TCP connections out after 30 seconds
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

18 years agoDump our buffer as Debug if we have HTTP header trouble.
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

18 years agoStrvis(3) debug data.
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