- 14 May, 2007 1 commit
-
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1394 | phk | 2007-05-09 12:55:33 +0200 (Wed, 09 May 2007) | 8 lines After compilation of a VCL program, do a test-load into the management process to catch any implementation-discrepancies between symbols used by the compiler and those implemented in the runtime. The situation will happen from time to time and there is no need to issue a panic when we can test sensibly for it. ........ r1403 | ingvar | 2007-05-11 09:51:11 +0200 (Fri, 11 May 2007) | 5 lines * Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070511 - Threw latest changes into svn trunk - Removed the conversion of manpages into utf8. They are all utf8 in trunk ........ r1404 | ingvar | 2007-05-11 10:13:03 +0200 (Fri, 11 May 2007) | 1 line ........ r1406 | des | 2007-05-11 13:06:03 +0200 (Fri, 11 May 2007) | 2 lines Comment out comparisons which are always true (unsigned >= 0) ........ r1407 | des | 2007-05-11 13:06:38 +0200 (Fri, 11 May 2007) | 2 lines Tweak DEVELOPER_CFLAGS. ........ r1408 | des | 2007-05-11 13:14:32 +0200 (Fri, 11 May 2007) | 2 lines Pull flopen() and pidfile_*() (renamed to vpf_*()) from FreeBSD. ........ r1409 | des | 2007-05-11 13:15:46 +0200 (Fri, 11 May 2007) | 2 lines Expand tags. ........ r1410 | des | 2007-05-11 13:17:09 +0200 (Fri, 11 May 2007) | 2 lines No use expanding tags unless there *are* tags... ........ r1411 | des | 2007-05-11 13:34:42 +0200 (Fri, 11 May 2007) | 2 lines Add -D (daemonize) and -P (pid file) options. ........ r1412 | des | 2007-05-11 13:35:59 +0200 (Fri, 11 May 2007) | 2 lines Remove unused header. ........ r1413 | des | 2007-05-11 14:01:47 +0200 (Fri, 11 May 2007) | 2 lines Avoid gcc4-specific compiler options. ........ r1414 | des | 2007-05-11 14:05:02 +0200 (Fri, 11 May 2007) | 2 lines Forgotten commit: check for <vis.h> and daemon(3) availability. ........ r1415 | des | 2007-05-11 14:17:26 +0200 (Fri, 11 May 2007) | 2 lines Add -P (pid file) option. ........ r1416 | des | 2007-05-11 14:19:48 +0200 (Fri, 11 May 2007) | 2 lines Minor style issues. ........ r1417 | phk | 2007-05-11 15:15:16 +0200 (Fri, 11 May 2007) | 7 lines Make the sendfile threshold inifinity for now, we have evidence of sendfile not doing it's job in a number of operating system (-versions ?) This change is unlikely to cause a performance hit anywhere, because writev() is pretty effective in the first place. ........ r1418 | des | 2007-05-14 11:02:23 +0200 (Mon, 14 May 2007) | 2 lines Document the inadvisability of enabling sendfile. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1419 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 11 May, 2007 1 commit
-
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1405 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 10 May, 2007 3 commits
-
-
Ingvar Hagelund authored
- Added logrotate and init scripts for varnishlog git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1402 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache ........ r1359 | phk | 2007-04-19 17:17:35 +0200 (Thu, 19 Apr 2007) | 9 lines When we have some amount of a chunk header, but not all of it, we need to read more from the fd. The semantics we _really_ want for that read operation is "wait until at least one char is available, then return as many as N to us". This can be done with a combination of system calls, but it is likely just as cheap to just read one char at a time, so we do that. ........ r1360 | des | 2007-04-21 19:48:21 +0200 (Sat, 21 Apr 2007) | 2 lines Clarify synopsis / description ........ r1361 | des | 2007-04-21 19:52:44 +0200 (Sat, 21 Apr 2007) | 2 lines Style and whitespace cleanup + clarify comment explaining the log format ........ r1362 | des | 2007-04-21 23:48:56 +0200 (Sat, 21 Apr 2007) | 12 lines Major rewrite of the VSL handler for increased robustness and clarity: - Treat all request fields in a similar manner. - Mostly eliminate fixed-size buffers. - Don't print or format anything until we see ReqEnd. - If we saw a Host: header, use it to generate an absolute URI, resulting in far more useful output when processing logs from a server which handles multiple virtual hosts. ........ r1363 | des | 2007-04-22 15:09:59 +0200 (Sun, 22 Apr 2007) | 2 lines Further eliminate fixed-size buffers. ........ r1364 | des | 2007-04-24 11:39:12 +0200 (Tue, 24 Apr 2007) | 6 lines Correctly detect the presence and location of all external library we use (except for the C math library, which the C standard guarantees is always available as -lm) and more importantly, use them only where needed. This should fix the compilation issues on SuSE. ........ r1365 | des | 2007-04-24 14:23:37 +0200 (Tue, 24 Apr 2007) | 3 lines Move CFLAGS configuration to the bottom so it doesn't affect other tests. This makes --enable-werror work again. ........ r1366 | des | 2007-04-24 14:36:58 +0200 (Tue, 24 Apr 2007) | 3 lines Move CFLAGS configuration to the bottom so it doesn't affect other tests. This makes --enable-werror work again. ........ r1367 | des | 2007-04-24 14:37:58 +0200 (Tue, 24 Apr 2007) | 2 lines Eliminate warnings. ........ r1368 | phk | 2007-04-26 08:54:58 +0200 (Thu, 26 Apr 2007) | 5 lines Add compat trick for clock_gettime() Submitted by: Pierre Queinnec <pierre.queinnec@zenika.com> ........ r1369 | des | 2007-04-26 12:39:19 +0200 (Thu, 26 Apr 2007) | 2 lines Force CONFIG_SHELL to /bin/sh. ........ r1370 | des | 2007-05-01 19:48:56 +0200 (Tue, 01 May 2007) | 2 lines Add protective #ifdef. ........ r1371 | des | 2007-05-01 19:55:13 +0200 (Tue, 01 May 2007) | 2 lines Improve the readability and debuggability of our tag conversion tricks. ........ r1372 | des | 2007-05-01 19:55:31 +0200 (Tue, 01 May 2007) | 8 lines Two minor logging fixes: - change the type of vsl_handler()'s tag argument from unsigned int to enum shmlogtag to allow gcc to check switch statements and gdb to show its value by name rather than by number. - fix the "missing newline after VCL_call" bug in varnishlog (#95) ........ r1373 | des | 2007-05-01 20:21:53 +0200 (Tue, 01 May 2007) | 4 lines Add and document a ping_interval parameter which controls the interval at which the parent pings the child. Also document pipe_timeout, which was left out of the man page by accident. ........ r1374 | des | 2007-05-02 14:20:43 +0200 (Wed, 02 May 2007) | 4 lines Try fixing #95 again. The trick is that if we get a new SLT_VCL_call while the F_INVCL flag is set, we need to insert a newline before the entry for the new VCL_call. ........ r1375 | des | 2007-05-02 15:56:24 +0200 (Wed, 02 May 2007) | 2 lines Correct the URL in the error page. ........ r1376 | des | 2007-05-02 16:37:42 +0200 (Wed, 02 May 2007) | 6 lines Don't try to lock the objhead mutex if we don't have an objhead. Doing so caused the Varnish child to die immediately after sending its 503 response if the backend didn't respond. Reviewed by: phk ........ r1377 | des | 2007-05-03 10:41:01 +0200 (Thu, 03 May 2007) | 2 lines s/expl/reason/ to circumvent a bug in gcc 3. ........ r1378 | des | 2007-05-03 10:45:33 +0200 (Thu, 03 May 2007) | 2 lines s/expl/reason/ to circumvent a bug in gcc 3. ........ r1379 | des | 2007-05-03 10:48:43 +0200 (Thu, 03 May 2007) | 2 lines s/expl/reason/ to circumvent a bug in gcc 3. ........ r1380 | des | 2007-05-03 10:48:51 +0200 (Thu, 03 May 2007) | 2 lines s/expl/explicit/ to circumvent a bug in gcc 3. ........ r1381 | phk | 2007-05-04 14:25:23 +0200 (Fri, 04 May 2007) | 2 lines Fix error reporting with -C ........ r1382 | des | 2007-05-04 14:28:56 +0200 (Fri, 04 May 2007) | 2 lines Apply the workaround suggested in #102. ........ r1383 | des | 2007-05-05 16:08:01 +0200 (Sat, 05 May 2007) | 2 lines Whitespace nits ........ r1384 | des | 2007-05-05 16:09:23 +0200 (Sat, 05 May 2007) | 2 lines Typo in comment ........ r1385 | des | 2007-05-05 16:35:58 +0200 (Sat, 05 May 2007) | 2 lines Remove superfluous vsb_printf() argument ........ r1386 | des | 2007-05-05 16:44:37 +0200 (Sat, 05 May 2007) | 2 lines Look for s-maxage before max-age. This may need to be revisited. ........ r1387 | des | 2007-05-06 20:57:26 +0200 (Sun, 06 May 2007) | 2 lines Update the default configuration. ........ r1399 | des | 2007-05-09 16:37:04 +0200 (Wed, 09 May 2007) | 2 lines Correctly detect more incompatible automake versions. ........ git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1401 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1400 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 19 Apr, 2007 35 commits
-
-
Dag Erling Smørgrav authored
Emit acl matching code to the function body. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1358 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Standards compliance: fputs(3) returns non-negative on success. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1357 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Need to find other way to shut up flexelint. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1356 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Remember to initialize C_flag and don't exit in far away code. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1355 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Add scripts to run flexelint over VCL compiler output git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1354 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Fix stylistic Flexelint unhappiness with the compiled C source. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1353 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Add a -C argument, which compiles the VCL (either default with -b or user specified with -f) and outputs the C source on the stdout. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1352 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Two missing NULL initializations. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1351 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
<queue.h> is a local #include in varnish, so use "queue.h" git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1350 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Move the function that pushes the compiled VCL programs C source through the systems cc(1) from the VCL compiler library to the varnishd process. This reduces the VCL-compiler library to a text-procesing functionality and makes it easier to build other tools, including test-suites, around the VCL-compiler. It also moves the actual compiler invocation string into the varnishd sources, where it can be handled appropriately, possibly as a paramter. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1349 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
remove XXX comment which no longer applies git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1348 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Various nitpicking prompted by flexelint git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1347 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Fix char position in error messages to be [1...] instead of [0...] Fix typo in /* ... */ handling git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1346 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Update git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1345 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Remove unused METHOD token. Improve error handling for unterminated /* ... */ comments. Add undocumented and unsupported facility for inline C source code in VCL programs. The syntax is "C{ getpid(); }C" and you are on your own if you use this. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1344 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Move backend parsing into a separate file. Eliminate a bunch of of unnecessary #includes. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1343 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Eliminate the "proof of concept" tokens that were never implemented at runtime. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1342 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Implement the returns with the new ID based table and eliminate their corresponding dedicated tokens. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1341 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Introduce table based search for actions, and make "set" the first one. This eliminates the need to have the identifier "set" be its own token rather than being a simple ID. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1340 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Split the parsing of actions into a separate file, this is the bit I expect to grow the most in the near future and all actions have a lot more in common, than they have with conditionals etc. Apply more vcc_ prefixes. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1339 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
I got confused about the terminology. An action is something we do in the program, a "return" is when we quit the program. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1338 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Better syntax checking of "set" statements. Remove inapplicable comment. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1337 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Fix typo, so we correctly recognize '-=' as T_DECR token. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1336 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Pidgin BNF syntax of VCL git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1335 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Overhaul cross reference checks in vcc compiler Move and isolate cross reference stuff to it's own source file (vcc_xref.c) and use vcc_ prefix as originally intended. Also warn about multiple definitions of objects. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1334 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Improve error message layout and information. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1333 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Overhaul compiler to get rid of memory leaks and other bogons. Add a memlist to the tokenlist and a function which allocates with malloc(3) and hangs the piece on the memlist of tokenlist. At the end of compilation, we ditch everything on the list. Handle vrt_obj.h like the other #includes, and stuff these into a vsb instead of directly to a file. Free decoded token string, if any. Pull creation and destruction of tokenlist into separate functions for code clarity. Remember to destry everything in the tokenlist. Pull invocation of cc(1) into a separate function and change the way we do it, so we get any cc(1) groans and whines back in the vsb so a CLI user will see them. More errorchecks than before. More comments throughout. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1332 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Rewrite using sbufs. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1331 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
The argv length calculation was not only off by one, but failed to take into account the extra space required by expanded quotes, backslashes and newlines. Instead of pre-allocating a (possibly too short) buffer, start with a 64-byte buffer and double it every time we come close to filling it up. Also, avoid appending a trailing space before the final newline. This issue was uncovered by Kristoffer Gleditsch <kristoffer@linpro.no>, who also helped test this patch. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1330 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Expand and track recent changes. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1329 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Actual default max is 1000, not infinity. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1328 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Twist the compiler logic around a bit. Concatenate all definitions of the method functions into one instance of the function: sub vcl_pipe { foo; } sub vcl_pipe { bar; } is now the same as sub vcl_pipe { foo; bar; } This avoids all the magic related to the default functions and hopefully makes the newly introduced "include" facility much more useful. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1327 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Split off the parsing from vcc_compile.c into vcc_parse.c git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1326 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
use tl-> consistently git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1325 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Implement a facility for source file modularization in the VCL compiler. The syntax is: include "filename" ; Unlike the C preprocessors #include directive, a VCL include can appear anywhere in the sourcefile: if {req.Cookie == include "cookie.vcl" ; || !req.Host } { } and have cookie.vcl contain just: "8435398475983275293759843" Technically this results in a change to how we account for source code references in the counter/profile table as well, and as a result the entire source code of the VCL program is now compiled into the shared library for easy reference. git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1324 d4fa192b-c00b-0410-8231-f00ffab90ce4
-