]>
err.no Git - varnish/log
des [Thu, 1 Nov 2007 21:52:34 +0000 (21:52 +0000)]
Don't rely on non-portable <paths.h>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2224
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 1 Nov 2007 21:48:54 +0000 (21:48 +0000)]
Add missing <strings.h>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2223
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 1 Nov 2007 21:47:58 +0000 (21:47 +0000)]
Add Solaris support. Avoid kshisms.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2222
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 14:40:55 +0000 (14:40 +0000)]
Refine the debugging string: we don't really need the XID, but we do need
the thread ID in order to locate the correct thread in gdb. Furthermore,
we must use VSL rather than WSL since the session might actually not have
a worker at that point; but if it does, make sure to flush the log first.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2220
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 14:06:37 +0000 (14:06 +0000)]
When DIAGNOSTICS is defined, log every step that each session goes through,
along with some vital statistics, and flush the log regularly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2215
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 14:02:58 +0000 (14:02 +0000)]
r2208 was correct but incomplete. It is possible for a session to reach
cnt_done() without a VCL reference, if we never got a request on that
connection. However, a session that reaches cnt_again() will never have
a VCL reference, so the assertion there is incorrect.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2214
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 13:42:52 +0000 (13:42 +0000)]
Simplify WS_DEBUG(), and make it conditional on DIAGNOSTICS.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2213
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 13:41:56 +0000 (13:41 +0000)]
Enable diagnostics
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2212
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 13:39:21 +0000 (13:39 +0000)]
Add an --enable-diagnostics option which causes DIAGNOSTICS to be defined.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2211
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 12:57:03 +0000 (12:57 +0000)]
Revert r2208, I believe the assert is correct.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2210
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 12:54:10 +0000 (12:54 +0000)]
Use pdiff()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2209
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 12:38:34 +0000 (12:38 +0000)]
AFAICT, it is perfectly valid for sp->vcl to be NULL here.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2208
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 12:36:09 +0000 (12:36 +0000)]
Incomplete change log for 1.1.2
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2207
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 12:35:40 +0000 (12:35 +0000)]
Comment tweak
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2206
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 30 Oct 2007 10:48:30 +0000 (10:48 +0000)]
Use a cast to prevent sign extension instead of masking it off after the fact.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2193
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 12:22:38 +0000 (12:22 +0000)]
Add more paranoia
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2190
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 12:10:16 +0000 (12:10 +0000)]
Give struct ws the mini_obj treatment, not sure why I didn't before.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2189
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 12:09:54 +0000 (12:09 +0000)]
Typo in previous commit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2188
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 12:06:34 +0000 (12:06 +0000)]
More checks, trying to find pointer tango
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2187
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 10:22:22 +0000 (10:22 +0000)]
Make bereq. available from vcl_fetch()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2186
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 10:20:36 +0000 (10:20 +0000)]
Implement relative URL for esi:include. Use the bereq.url as
starting point, since req.url may have been rewritten underway.
Store result in objects workspace.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2185
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 10:17:58 +0000 (10:17 +0000)]
Postpone freeing the bereq until after VCL_fetch() has been called
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2184
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 09:28:21 +0000 (09:28 +0000)]
Give workspaces an identifying string to aid debugging.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2183
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 09:24:16 +0000 (09:24 +0000)]
Add compile-time selectable SHMlogging of WS-activity
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2182
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 09:16:13 +0000 (09:16 +0000)]
Remember to reset te bereq's workspace after use.
NB: This should be merged back to 1.1
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2181
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 08:24:04 +0000 (08:24 +0000)]
Mask negative characters to 8 bit before formatting.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2180
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 08:16:22 +0000 (08:16 +0000)]
If we find no ESI elements of an object, don't penalize it with ESI's
chunked delivery.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2179
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 08:09:28 +0000 (08:09 +0000)]
Don't complain about unrecognized <! sequences, just treat them like
any other <...>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2178
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 07:53:27 +0000 (07:53 +0000)]
Issue an VCL_error if 'esi' is not used from vcl_fetch.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2177
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 07:53:01 +0000 (07:53 +0000)]
Give VRT code a chance to see which method we are in.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2176
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 29 Oct 2007 07:46:12 +0000 (07:46 +0000)]
Add a VCL_error shmtag
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2175
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Sun, 28 Oct 2007 18:43:24 +0000 (18:43 +0000)]
Fix file list.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2173
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 26 Oct 2007 11:13:32 +0000 (11:13 +0000)]
Don't mess up the chunked encoding for nested esi:include
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2172
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 26 Oct 2007 11:00:25 +0000 (11:00 +0000)]
More ESI work, now full URL srcs (http://...) work in addition to
absolute src ("/..."). Relative src's coming up next, once I find
out where to store the edited string.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2171
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 24 Oct 2007 20:34:24 +0000 (20:34 +0000)]
Push hole through the esi:include path, making a very trivial example
work fully, leaving a trail of XXX and other devastation:
Add an esi nesting counter to the session.
Teach RES_WriteObj() to send an object as a chunk in chunked encoding.
Bail cnt_done() early for nested ESI transactions.
Catch the src="" attribute in esi:include and store it in the esibit.
In ESI_Deliver(), recurse into CNT_Session(STP_RECV) in order to handle
the include element of an esibit.
Recursion is probably not the ideal solution here, but it might quite
conceiveably be the best one, since it is quite cheap and very trivial.
Outstanding issues: too many to list still.
The following example worked for me:
<html>
<body>
<pre>
<esi:include src="/esi.txt"/>
</pre>
</body>
</html>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2170
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 24 Oct 2007 19:38:43 +0000 (19:38 +0000)]
Add attribute parsing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2169
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 24 Oct 2007 18:38:17 +0000 (18:38 +0000)]
Split STP_RECV in two:
STP_START is the initial setup of a viable workerthread: Dissecting
HTTP, getting vcl reference etc.
STP_RECV is invoking vcl_recv() and following orders.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2168
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 24 Oct 2007 14:32:12 +0000 (14:32 +0000)]
Gently shuffle closer to being able to restart a esi:include on the next
element:
Add two checkpoints for the sessions workspace.
The first checkpoint is after the session fixed data, and move the
client address and port to workspace to see that this works.
The second checkpoint is after the, as received unadultered by VCL
http request. Grab a copy of the http request matching this.
Implement rollback as an optional feature of restart in VCL.
Move various workspace initialization and resetting operations to more
suitable locations in the program flow.
I don't know if this is really usable, but now it's possible to do:
backend b1 {
set backend.host = "backend1";
set backend.port = "80";
}
backend b2 {
set backend.host = "backend2";
set backend.port = "80";
}
sub vcl_recv {
set req.backend = b1;
remove req.http.cookie;
if (req.restarts == 0) {
set req.url = "foobar.html";
} else {
set req.backend = b2;
}
}
sub vcl_fetch {
if (obj.status != 200) {
restart rollback;
}
}
And have it first look for "foobar.html" on one backend, and failing
that, try to give the user what they asked for from the other backend.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2167
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 24 Oct 2007 10:24:08 +0000 (10:24 +0000)]
Add a WS_Dup() function
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2166
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 23 Oct 2007 12:36:34 +0000 (12:36 +0000)]
Check for a negative return from HTC_Rx(). Probably needs revisiting.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2162
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 23 Oct 2007 12:35:29 +0000 (12:35 +0000)]
Supply reasonable defaults for error code / reason.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2161
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 23 Oct 2007 11:57:16 +0000 (11:57 +0000)]
Add a test case for the root cause of #164, which is that the backend sends
a garbled response (or no response at all).
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2160
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 23 Oct 2007 11:56:56 +0000 (11:56 +0000)]
Add a test case for the root cause of #164, which is that the backend sends
a garbled response (or no response at all).
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2159
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 23 Oct 2007 09:23:04 +0000 (09:23 +0000)]
Quench a pointless sigchild warning
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2157
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 22 Oct 2007 14:37:19 +0000 (14:37 +0000)]
Evaluate ${localstatedir} later.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2154
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 13:58:12 +0000 (13:58 +0000)]
Don't assert that close() returns 0, it won't when the remote end closes
the connection first. This fixes #168.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2153
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 13:49:27 +0000 (13:49 +0000)]
Don't try to interpret the status code when we know the response is invalid.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2151
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 11:18:49 +0000 (11:18 +0000)]
Re-add Solaris support which was removed in r1465.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2133
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:48:35 +0000 (09:48 +0000)]
Add error message.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2131
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:47:53 +0000 (09:47 +0000)]
Use an 8 kB stack buffer instead of a heap buffer.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2130
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:46:58 +0000 (09:46 +0000)]
When testing pipelined POST requests, send enough data to actually exercise
request copying loop.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2129
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:35:09 +0000 (09:35 +0000)]
The framework bugs which used to affect this test case have long since
been fixed, so remove the workarounds. Also stop testing things which
are not intended to work.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2128
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:09:42 +0000 (09:09 +0000)]
Also test pipelining of POST requests (in pass mode)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2127
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:09:17 +0000 (09:09 +0000)]
Move malloc() / free() out of the loop, and plug a leak. Ideally, we
shouldn't need to malloc() / free() at all, but I don't have time to
figure out how to avoid it right now.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2126
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 09:05:10 +0000 (09:05 +0000)]
Simplify
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2125
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Fri, 19 Oct 2007 08:55:46 +0000 (08:55 +0000)]
Style & whitespace
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2124
d4fa192b -c00b-0410-8231-
f00ffab90ce4
cecilihf [Fri, 19 Oct 2007 08:51:40 +0000 (08:51 +0000)]
Improved handling of pass for POST requests.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2123
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 19 Oct 2007 08:50:50 +0000 (08:50 +0000)]
Fix pipelining: don't expect the fd to become readable before we
look for complete requests.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2122
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 18 Oct 2007 19:09:33 +0000 (19:09 +0000)]
Make ESI processing actually work.
So far we support only the <esi:remove> element.
All other <esi:...> elements are ignored.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2121
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 18 Oct 2007 16:07:19 +0000 (16:07 +0000)]
Add a regression test for pipelining, which is currently broken in trunk.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2120
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 18 Oct 2007 15:48:11 +0000 (15:48 +0000)]
Add a missing wait().
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2119
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 18 Oct 2007 15:45:34 +0000 (15:45 +0000)]
Separate the act of sending a request from that of receiving a response.
This (along with earlier changes to the client code) allows us to send
multiple requests, then receive the responses in order.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2118
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 18 Oct 2007 15:18:42 +0000 (15:18 +0000)]
Make VARNISH_STATE_DIR work correctly when using the default prefix.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2116
d4fa192b -c00b-0410-8231-
f00ffab90ce4
cecilihf [Thu, 18 Oct 2007 13:38:45 +0000 (13:38 +0000)]
Make pass mode work for POST requests. Solves ticket #47.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2115
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 18 Oct 2007 13:30:52 +0000 (13:30 +0000)]
Revert previous change and fix the comment that explains why it has to be
the way it is.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2114
d4fa192b -c00b-0410-8231-
f00ffab90ce4
cecilihf [Thu, 18 Oct 2007 13:24:35 +0000 (13:24 +0000)]
Run the passPOST test first.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2113
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Thu, 18 Oct 2007 11:10:25 +0000 (11:10 +0000)]
I like code that compiles
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2111
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 17 Oct 2007 08:32:19 +0000 (08:32 +0000)]
Add error messages from the XML/ESI parser
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2110
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 22:35:35 +0000 (22:35 +0000)]
Fix parsing of "esi" command.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2109
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 22:23:45 +0000 (22:23 +0000)]
Start pulling ESI:include stuff over from my private tree.
This is the meat of the XML-dissecting code.
In theory the task is pretty simple, but it gets complicated by the fact
that the XML input can be split over multiple pieces of storage, with
an element we care about straddling a boundary.
I have not decided what to do about ESI violations or XML syntax errors,
SHMlogging them, possibly controlled by a parameter might make sense.
For now mark them in the source.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2108
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 16 Oct 2007 14:15:54 +0000 (14:15 +0000)]
Whitespace cleanup.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2107
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 16 Oct 2007 14:12:23 +0000 (14:12 +0000)]
Pull in FreeBSD's daemon(3) for platforms that lack it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2106
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Tue, 16 Oct 2007 13:10:43 +0000 (13:10 +0000)]
Use %zd for size_t.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2105
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 10:17:24 +0000 (10:17 +0000)]
Silence flexelint
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2104
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 09:11:45 +0000 (09:11 +0000)]
Flexelint polishing.
Always enforce the 2GB filesize limit on 32bit architectures.
Clean up a couple of messages
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2101
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 09:03:18 +0000 (09:03 +0000)]
Reduce number of TIM_real() calls slightly in multi socket case.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2100
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 09:00:48 +0000 (09:00 +0000)]
Flexelint polish
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2099
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 16 Oct 2007 09:00:22 +0000 (09:00 +0000)]
Flexelint polish
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2098
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Wed, 10 Oct 2007 13:23:15 +0000 (13:23 +0000)]
Fix braino in Solaris compat bit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2097
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 9 Oct 2007 07:22:46 +0000 (07:22 +0000)]
Keep track of the highest fd so we don't give poll(2) more pfd's to
chew than necessary.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2096
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 19:15:41 +0000 (19:15 +0000)]
Try to optimize the poll acceptor by moving active entries to the
front of the linked list where they will be found faster later on.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2095
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 16:40:28 +0000 (16:40 +0000)]
Give the 503 returns a protocol and a response as well.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2094
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 15:34:32 +0000 (15:34 +0000)]
Don't use vca_return_session() when we can SES_Delete()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2093
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 14:12:06 +0000 (14:12 +0000)]
More asserts
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2092
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 13:20:57 +0000 (13:20 +0000)]
EOF transfers are not limited to pre HTTP/1.1 backends, no idea why
I thought so previously.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2091
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 11:32:30 +0000 (11:32 +0000)]
We may in fact not have any headers.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2090
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 11:28:39 +0000 (11:28 +0000)]
Only attempt to decode status integer if we have a good separation.
Possibly ticket #164
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2089
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 11:28:11 +0000 (11:28 +0000)]
Add an assert for spotting ticket #162
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2088
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 10:33:46 +0000 (10:33 +0000)]
Catch EOF on reads instead of looping.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2087
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 10:25:47 +0000 (10:25 +0000)]
Drop the asserts around shutdown(2), there are a number of
legitimate error conditions.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2086
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 09:34:36 +0000 (09:34 +0000)]
upd
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2085
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 08:14:09 +0000 (08:14 +0000)]
More acceptor work:
Make HTC_Rx() return a distinct value for overflow/blast.
Teach vca_handover() to handle HTC_Rx() return status
Use HTC_Rx/vca_handover this way in all three acceptors.
Eliminate vca_pollsession()
Teach CNT_First() about HTC_Rx states.
Log which acceptor we use in shmlog
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2084
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 07:51:31 +0000 (07:51 +0000)]
Bail normally instead of asserting on buffer full.
Drop leading whitespace if so informed.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2083
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 07:50:31 +0000 (07:50 +0000)]
Use HTC_Rx() directly instead of vca_pollsession() wrapper
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2082
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 07:49:26 +0000 (07:49 +0000)]
comments/style
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2081
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 07:19:52 +0000 (07:19 +0000)]
Try to make the pipe code even more robust
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2080
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 8 Oct 2007 07:18:48 +0000 (07:18 +0000)]
Flush the threads shmlog before we try to make up a reponse, so that
we know what transactions trigger problems in that code.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2079
d4fa192b -c00b-0410-8231-
f00ffab90ce4
ssm [Fri, 5 Oct 2007 09:15:09 +0000 (09:15 +0000)]
Fix ticket #166, debian package issues
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2078
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 1 Oct 2007 12:44:19 +0000 (12:44 +0000)]
Go over pipe's polling code and try to do it right in one go by
actually paying attention to what goes on.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2077
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 1 Oct 2007 12:27:49 +0000 (12:27 +0000)]
Oops, last commit included some debugging
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2076
d4fa192b -c00b-0410-8231-
f00ffab90ce4