Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 6807 lines (4275 sloc) 190.047 kb
3bf3c99 @dag-erling Regenerate.
dag-erling authored
1 2006-08-11 08:40 des
2
3 * trunk/varnish-cache/svn2cl.xsl:
4
5 Widen left and right margins, and add a blank line between the paths and
6 the message.
7
8 2006-08-11 08:35 des
9
10 * trunk/varnish-cache/svn2cl.xsl:
11
12 Print the message separately from the paths to avoid strange wrapping.
13
14 2006-08-11 08:34 des
15
16 * trunk/varnish-cache/svn2cl.xsl:
17
18 This is the XSL stylesheet used to generate the ChangeLog.
19
20 2006-08-11 08:25 des
21
22 * trunk/varnish-cache/Makefile.am:
23
24 Include LICENSE and autogen.sh in the dist tarball.
25
26 2006-08-11 08:25 des
27
28 * trunk/varnish-cache/lib/libcompat/Makefile.am:
29
30 Don't install libcompat.a.
31
32 2006-08-11 08:24 des
33
34 * trunk/varnish-cache/INSTALL, trunk/varnish-cache/README:
35
36 Add a README and installation instructions.
37
38 2006-08-11 07:35 phk
39
40 * trunk/varnish-cache/include/http_headers.h:
41
42 Don't filter Cache-Control out in replies from backend.
43
44 2006-08-11 07:35 phk
45
46 * trunk/varnish-cache/bin/varnishd/tcp.c:
47
48 Fix protocol family selection logic to also work on
49 a FreeBSD machine with now IPv6.
50
51 Remember to also free the addrinfo in case of success.
52
53 2006-08-11 07:33 phk
54
55 * trunk/varnish-cache/bin/varnishd/varnishd.c:
56
57 Bail if we don't get a listening socket.
58
59 2006-08-11 07:12 phk
60
61 * trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
62
63 Missed one: Only include compat headers if necessary
64
65 2006-08-11 07:11 phk
66
67 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
68 trunk/varnish-cache/bin/varnishd/flint.lnt,
69 trunk/varnish-cache/bin/varnishd/flint.sh,
70 trunk/varnish-cache/bin/varnishd/mgt_child.c,
71 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
72 trunk/varnish-cache/bin/varnishd/storage_file.c,
73 trunk/varnish-cache/bin/varnishd/tcp.c:
74
75 Pull in ../../config.h when running flexelint.
76
77 Only include compat headers if we need them.
78
79 2006-08-11 07:03 phk
80
81 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
82
83 Fix indentation
84
85 2006-08-11 07:02 phk
86
87 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
88
89 Remove unused variable.
90
91 2006-08-11 07:01 phk
92
93 * trunk/varnish-cache/bin/varnishd/flint.sh:
94
95 Point at KQUEUE version of acceptor by default.
96
97 2006-08-11 07:01 phk
98
99 * trunk/varnish-cache/bin/varnishd/cache_pass.c:
100
101 Fix an assert so it actually has a chance of firing: (an unsigned is
102 always >= 0)
103
104 2006-08-10 13:03 des
105
106 * trunk/varnish-cache/bin/varnishd/cache_pass.c:
107
108 Rewrite pass_chunked().
109
110 2006-08-10 11:48 andersb
111
112 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
113
114 Got the requesttime right this time.
115
116 I am noticing free()'s that are freeing empty variables/pointers. Have
117 to find where is happens.
118 Also noticing IP adresses not set correctly.
119
120 Still load of debugcode.
121
122 2006-08-10 11:10 andersb
123
124 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
125
126 Updated to work with new inner workings (ReqStart, ReqEnd, sbuf
127 replacement etc).
128
129 Code now compiles.
130
131 2006-08-10 08:56 des
132
133 * trunk/varnish-cache/bin/varnishd/tcp.c:
134
135 FreeBSD needs <netinet/in.h> for IPPROTO_IPV6 and IPV6_V6ONLY.
136
137 2006-08-10 07:38 andersb
138
139 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
140
141 Added some more meat to the program. Loads of debug code still on.
142
143 Next step is to add the correct time. It's a bit tricky, and I haven't
144 gotten it right just yet.
145
146 2006-08-09 14:49 des
147
148 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
149 trunk/varnish-cache/configure.ac:
150
151 Add an epoll()-based acceptor for Linux 2.6. Simple empirical tests
152 indicate
153 that epoll() performs significantly better than poll() (less CPU usage).
154
155 2006-08-09 12:38 des
156
157 * trunk/varnish-cache/bin/varnishd/cache_center.c:
158
159 Clear reference to backend when we release our VCL reference.
160
161 2006-08-09 11:24 des
162
163 * trunk/varnish-cache/bin/varnishd/cache_vrt.c,
164 trunk/varnish-cache/include/vcl_returns.h,
165 trunk/varnish-cache/include/vrt_obj.h,
166 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
167 trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
168 trunk/varnish-cache/lib/libvcl/vcc_obj.c:
169
170 Add support for using separate backends for separate virtual hosts:
171
172 - remove the obj.backend variable, which is not connected to anything.
173 - define a req.backend variable and implement l/r functions for it
174 - complete / correct support for setting / comparing backend values
175
176 2006-08-09 11:22 des
177
178 * trunk/varnish-cache/bin/varnishd/cache.h,
179 trunk/varnish-cache/bin/varnishd/cache_http.c:
180
181 Cosmetic: redefine HTTP_HDR_* as an enum and rename MAX_HTTP_HDRS to
182 HTTP_HDR_MAX.
183
184 2006-08-09 09:36 des
185
186 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
187 trunk/varnish-cache/bin/varnishd/heritage.h,
188 trunk/varnish-cache/bin/varnishd/tcp.c:
189
190 Rewrite open_tcp(): use only one listening socket. Try for a combined
191 IPv6 / IPv4 socket; if IPv6 is not available, fall back to an IPv4 socket.
192
193 2006-08-08 14:52 des
194
195 * trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
196
197 While FreeBSD defaults to MAP_SHARED, Linux requires either MAP_SHARED or
198 MAP_PRIVATE to be specified. Do so.
199
200 2006-08-08 14:00 des
201
202 * trunk/varnish-cache/bin/varnishd/Makefile.am,
203 trunk/varnish-cache/configure.ac:
204
205 Autodetect the need to link against libdl for dlopen().
206
207 2006-08-08 12:57 des
208
209 * trunk/varnish-cache/bin/varnishd/mgt_child.c,
210 trunk/varnish-cache/configure.ac,
211 trunk/varnish-cache/include/Makefile.am,
212 trunk/varnish-cache/include/compat/setproctitle.h,
213 trunk/varnish-cache/lib/libcompat/Makefile.am,
214 trunk/varnish-cache/lib/libcompat/setproctitle.c:
215
216 Add a setproctitle() stub to libcompat.
217
218 2006-08-08 12:57 des
219
220 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
221
222 #include "compat/srandomdev.h" for srandomdev()
223
224 2006-08-08 12:55 des
225
226 * trunk/varnish-cache/include/compat/vis.h,
227 trunk/varnish-cache/lib/libcompat/vis.c:
228
229 Expand keywords.
230
231 2006-08-08 12:46 des
232
233 * trunk/varnish-cache/bin/varnishd/storage_file.c,
234 trunk/varnish-cache/configure.ac:
235
236 #include <sys/vfs.h> for fstatfs if it is available.
237
238 2006-08-08 12:45 des
239
240 * trunk/varnish-cache/configure.ac:
241
242 Now that we define _GNU_SOURCE, the asprintf() / vasprintf() hack is no
243 longer required.
244
245 2006-08-08 12:42 des
246
247 * trunk/varnish-cache/configure.ac:
248
249 Defining _GNU_SOURCE gives us native asprintf() and strptime() on glibc
250 systems, and has no effect on FreeBSD.
251
252 2006-08-08 12:31 des
253
254 * trunk/varnish-cache/bin/varnishlog/Makefile.am,
255 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
256 trunk/varnish-cache/bin/varnishncsa/Makefile.am,
257 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
258 trunk/varnish-cache/bin/varnishstat/Makefile.am,
259 trunk/varnish-cache/bin/varnishtop/Makefile.am,
260 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
261 trunk/varnish-cache/configure.ac,
262 trunk/varnish-cache/include/Makefile.am,
263 trunk/varnish-cache/include/compat/vis.h,
264 trunk/varnish-cache/lib/libcompat/Makefile.am,
265 trunk/varnish-cache/lib/libcompat/vis.c:
266
267 Bring in FreeBSD's version of vis(3), strvis(3) and strvisx(3).
268
269 2006-08-08 12:15 des
270
271 * trunk/varnish-cache/configure.ac,
272 trunk/varnish-cache/include/Makefile.am,
273 trunk/varnish-cache/include/compat/srandomdev.h,
274 trunk/varnish-cache/lib/libcompat/Makefile.am,
275 trunk/varnish-cache/lib/libcompat/srandomdev.c:
276
277 Add a simple srandomdev() implementation inspired by the one in FreeBSD.
278
279 2006-08-08 09:15 des
280
281 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
282
283 The correct header for poll() is <poll.h>, not <sys/poll.h> like the Linux
284 man page says (poll() is an XSI extension in SUSv[23])
285
286 2006-08-08 07:47 des
287
288 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
289 trunk/varnish-cache/configure.ac:
290
291 Autodetect the availability of kqueue() and / or poll().
292
293 2006-08-08 07:47 des
294
295 * trunk/varnish-cache/bin/varnishstat/varnishstat.c:
296
297 #include "libvarnish.h" for varnish_version().
298
299 2006-08-08 07:36 phk
300
301 * trunk/varnish-cache/bin/varnishd/cache.h,
302 trunk/varnish-cache/bin/varnishd/cache_pool.c,
303 trunk/varnish-cache/bin/varnishd/cache_response.c:
304
305 Add back sendfile support (under #ifdef HAVE_SENDFILE) but don't engage
306 it for small objects on the suspicion that it has highish setup cost.
307
308 2006-08-08 07:17 des
309
310 * trunk/varnish-cache/bin/varnishd/mgt_cli.c,
311 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
312 trunk/varnish-cache/bin/varnishd/storage_file.c,
313 trunk/varnish-cache/bin/varnishd/tcp.c,
314 trunk/varnish-cache/include/Makefile.am,
315 trunk/varnish-cache/include/compat,
316 trunk/varnish-cache/include/compat.h,
317 trunk/varnish-cache/include/compat/asprintf.h,
318 trunk/varnish-cache/include/compat/strlcat.h,
319 trunk/varnish-cache/include/compat/strlcpy.h,
320 trunk/varnish-cache/include/compat/vasprintf.h,
321 trunk/varnish-cache/lib/libcompat/asprintf.c,
322 trunk/varnish-cache/lib/libcompat/strlcat.c,
323 trunk/varnish-cache/lib/libcompat/strlcpy.c,
324 trunk/varnish-cache/lib/libcompat/vasprintf.c,
325 trunk/varnish-cache/lib/libvcl/vcc_compile.c:
326
327 Split compat.h into one header per function to avoid issues with e.g. the
328 vasprintf() prototype needing <stdarg.h> even when it isn't used.
329
330 2006-08-08 07:15 des
331
332 * trunk/varnish-cache/bin/varnishncsa/Makefile.am,
333 trunk/varnish-cache/bin/varnishstat/Makefile.am:
334
335 varnish{ncsa,stat} also need librt.
336
337 2006-08-08 07:03 des
338
339 * trunk/varnish-cache/bin/varnishd/Makefile.am,
340 trunk/varnish-cache/bin/varnishd/hash_classic.c,
341 trunk/varnish-cache/configure.ac:
342
343 Attempt to detect the availability of RSA's MD5 implementation, and the
344 need to link against libmd to get it.
345 Attempt to detect the need for linking against librt to get
346 clock_gettime().
347
348 2006-08-08 07:01 phk
349
350 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
351
352 Fix braino
353
354 2006-08-08 06:39 phk
355
356 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
357
358 Default to 4096 buckets and 256 mutexes
359
360 2006-08-08 06:38 phk
361
362 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
363
364 Use crc32 hash by default, MD5 is a compile time option
365
366 2006-08-08 06:37 phk
367
368 * trunk/varnish-cache/bin/varnishd/flint.lnt:
369
370 lbv_assert never returns
371
372 2006-08-07 21:08 phk
373
374 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
375 trunk/varnish-cache/bin/varnishd/varnishd.c,
376 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
377 trunk/varnish-cache/lib/libvcl/vcc_token.c:
378
379 64bit changes
380
381 2006-08-07 21:01 phk
382
383 * trunk/varnish-cache/configure.ac:
384
385 Add -Wformat and remove -fno-inline which disables it.
386
387 2006-08-07 21:01 phk
388
389 * trunk/varnish-cache/lib/libvarnish/assert.c:
390
391 Fix printf format error
392
393 2006-08-07 20:50 phk
394
395 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
396 trunk/varnish-cache/configure.ac:
397
398 Update to new shmlog tag
399
400 2006-08-07 20:47 phk
401
402 * trunk/varnish-cache/lib/libvcl/vcc_acl.c,
403 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
404 trunk/varnish-cache/lib/libvcl/vcc_priv.h,
405 trunk/varnish-cache/lib/libvcl/vcc_token.c:
406
407 Eliminate use of extensible printf
408
409 2006-08-07 20:24 phk
410
411 * trunk/varnish-cache/bin/varnishd/mgt_child.c,
412 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
413 trunk/varnish-cache/bin/varnishd/varnishd.c:
414
415 Improve the "-d" and "-d -d" facilities.
416
417 When we close a CLI and it had fd# 0 and/or fd#1, reopen these
418 as /dev/null so the will not be reused for the CLI pipe to the
419 child on next restart, otherwise stdout/stderr output from the
420 manager would get sent there and confuse the clients CLI reader.
421
422 Don't double free a pointer to the CLI buffer.
423
424 Accept non-zero results from cli_readres() errors are non-fatal.
425
426 Use stderr more consistently for manager debugging.
427
428 2006-08-07 18:33 phk
429
430 * trunk/varnish-cache/bin/varnishd/varnishd.c:
431
432 An assert to catch silly errors.
433
434 2006-08-07 17:27 phk
435
436 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
437 trunk/varnish-cache/bin/varnishd/cache_center.c,
438 trunk/varnish-cache/include/shmlog_tags.h:
439
440 Rename SHMlog tags for consistency
441 XID -> ReqStart
442 ReqServTime -> ReqEnd
443
444 2006-08-07 17:18 phk
445
446 * trunk/varnish-cache/bin/varnishd/varnishd.c:
447
448 Remove printf extensions used for development debugging
449
450 2006-08-07 17:18 phk
451
452 * trunk/varnish-cache/include/libvarnish.h:
453
454 Make assert do the right thing
455
456 2006-08-07 17:15 phk
457
458 * trunk/varnish-cache/lib/libvcl/vcc_token.c:
459
460 Clean up #includes
461
462 2006-08-07 17:10 phk
463
464 * trunk/varnish-cache/include/libvarnish.h,
465 trunk/varnish-cache/lib/libvarnish/assert.c:
466
467 Call __assert() lbv_assert() instead.
468
469 2006-08-07 17:08 phk
470
471 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
472 trunk/varnish-cache/bin/varnishd/cache_backend.c,
473 trunk/varnish-cache/bin/varnishd/cache_expire.c,
474 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
475 trunk/varnish-cache/bin/varnishd/cache_hash.c,
476 trunk/varnish-cache/bin/varnishd/cache_pool.c,
477 trunk/varnish-cache/bin/varnishd/cache_response.c,
478 trunk/varnish-cache/bin/varnishd/cache_vcl.c,
479 trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
480 trunk/varnish-cache/bin/varnishd/rfc2616.c,
481 trunk/varnish-cache/lib/libvarnish/assert.c:
482
483 quench warnings related to libvarnish.h
484
485 2006-08-07 16:45 des
486
487 * trunk/varnish-cache/configure.ac:
488
489 Don't trust the documentation - when it says "additional headers", it
490 actually means "additional code to place before main() in the test program"
491
492 2006-08-07 16:42 phk
493
494 * trunk/varnish-cache/bin/varnishd/cache.h,
495 trunk/varnish-cache/bin/varnishd/cache_session.c,
496 trunk/varnish-cache/bin/varnishd/hash_classic.c,
497 trunk/varnish-cache/bin/varnishd/mgt.h,
498 trunk/varnish-cache/bin/varnishd/mgt_child.c,
499 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
500 trunk/varnish-cache/bin/varnishd/mgt_event.c,
501 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
502 trunk/varnish-cache/bin/varnishd/shmlog.c,
503 trunk/varnish-cache/bin/varnishd/storage_file.c,
504 trunk/varnish-cache/bin/varnishd/tcp.c,
505 trunk/varnish-cache/bin/varnishd/varnishd.c,
506 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
507 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
508 trunk/varnish-cache/bin/varnishtester/varnishtester.c,
509 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
510 trunk/varnish-cache/include/libvarnish.h,
511 trunk/varnish-cache/lib/libvarnish/Makefile.am,
512 trunk/varnish-cache/lib/libvarnish/argv.c,
513 trunk/varnish-cache/lib/libvarnish/assert.c:
514
515 Add our own assert in libvarnish.h
516
517 Include libvarnish.h from cache.h and mgt.h
518
519 2006-08-07 16:29 des
520
521 * trunk/varnish-cache/bin/varnishlog/varnishlog.c,
522 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
523
524 #include "libvarnish.h" for varnish_version().
525
526 2006-08-07 16:26 des
527
528 * trunk/varnish-cache/bin/varnishd/storage_file.c,
529 trunk/varnish-cache/lib/libvcl/vcc_compile.c:
530
531 #include "compat.h" for asprintf().
532
533 2006-08-07 16:24 des
534
535 * trunk/varnish-cache/bin/varnishlog/varnishlog.c,
536 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
537 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
538 trunk/varnish-cache/lib/libvcl/vcc_acl.c,
539 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
540 trunk/varnish-cache/lib/libvcl/vcc_token.c:
541
542 vsb.h is not a system header.
543
544 2006-08-07 16:23 des
545
546 * trunk/varnish-cache/bin/varnishtop/varnishtop.c:
547
548 #include "libvarnish.h" for varnish_version().
549
550 2006-08-07 16:23 des
551
552 * trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
553
554 #include "compat.h" for asprintf(). Sort includes.
555
556 2006-08-07 16:20 des
557
558 * trunk/varnish-cache/bin/varnishd/varnishd.c:
559
560 Define INFTIM if it isn't already.
561
562 2006-08-07 16:20 des
563
564 * trunk/varnish-cache/bin/varnishd/storage_file.c:
565
566 Spell SIZE_MAX correctly.
567
568 2006-08-07 16:17 des
569
570 * trunk/varnish-cache/bin/varnishd/mgt_event.c:
571
572 Define INFTIM if it isn't already.
573
574 2006-08-07 16:17 des
575
576 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
577
578 #include <compat.h> for asprintf().
579
580 2006-08-07 16:15 phk
581
582 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
583
584 Handle CLI trouble with the childproc
585
586 2006-08-07 16:14 phk
587
588 * trunk/varnish-cache/include/cli.h,
589 trunk/varnish-cache/lib/libvarnish/cli_common.c:
590
591 Add CLIS_COMMS errno (400) and return an error text as well.
592
593 2006-08-07 16:11 des
594
595 * trunk/varnish-cache/bin/varnishd/tcp.c, trunk/varnish-cache/configure.ac:
596
597 Check whether we have accept filters before trying to use them.
598
599 2006-08-07 16:05 phk
600
601 * trunk/varnish-cache/lib/libvarnish/cli_common.c:
602
603 Handle read errors on the cli pipes.
604
605 2006-08-07 15:54 des
606
607 * trunk/varnish-cache/configure.ac:
608
609 Improve descriptions of HAVE_ASPRINTF / HAVE_VASPRINTF.
610
611 2006-08-07 15:54 phk
612
613 * trunk/varnish-cache/lib/libvarnish/vsb.c:
614
615 Quench warnings.
616
617 2006-08-07 15:51 des
618
619 * trunk/varnish-cache/include/compat.h,
620 trunk/varnish-cache/lib/libcompat/vasprintf.c:
621
622 My idiocy knows no bounds. Make sure this actually builds.
623
624 2006-08-07 15:47 des
625
626 * trunk/varnish-cache/configure.ac:
627
628 Improve detection of the presence and usability of asprintf() /
629 vasprintf().
630
631 2006-08-07 15:42 des
632
633 * trunk/varnish-cache/include/compat.h:
634
635 paste-o.
636
637 2006-08-07 15:24 des
638
639 * trunk/varnish-cache/configure.ac,
640 trunk/varnish-cache/include/compat.h,
641 trunk/varnish-cache/lib/libcompat/Makefile.am,
642 trunk/varnish-cache/lib/libcompat/asprintf.c,
643 trunk/varnish-cache/lib/libcompat/strlcat.c,
644 trunk/varnish-cache/lib/libcompat/strlcpy.c,
645 trunk/varnish-cache/lib/libcompat/vasprintf.c:
646
647 Add implementations of asprintf(3) and vasprintf(3).
648
649 2006-08-07 15:09 des
650
651 * trunk/varnish-cache/include/libvarnish.h:
652
653 Relucantly include <time.h> for time_t. We'll have to clean up our header
654 files at some point.
655
656 2006-08-07 15:08 des
657
658 * trunk/varnish-cache/bin/varnishd/shmlog.c:
659
660 Remove redundant definition of __assert().
661
662 2006-08-07 15:00 des
663
664 * trunk/varnish-cache/include/libvarnish.h:
665
666 TIM_{format,parse}() are used unconditionally, so declare them
667 unconditionally.
668
669 2006-08-07 15:00 des
670
671 * trunk/varnish-cache/bin/varnishd/cache.h:
672
673 Sort includes, add <stdint.h> for uint64_t.
674
675 2006-08-07 14:55 des
676
677 * trunk/varnish-cache/lib/libvcl/vcc_compile.c:
678
679 Eliminate __unused.
680
681 2006-08-07 14:52 des
682
683 * trunk/varnish-cache/lib/libvarnish/cli_common.c:
684
685 Sort includes, add <stdint.h> for uintptr_t.
686
687 2006-08-07 12:42 des
688
689 * trunk/varnish-cache/lib/libvarnish/vsb.3:
690
691 Define str-Lb-libvarnish so ".Lb libvarnish" will work. This should be in
692 a shared file somewhere with some soelim magic in the Makefile, but don't
693 bother right now - the file isn't installed anyway.
694
695 2006-08-07 12:35 des
696
697 * trunk/varnish-cache/bin/varnishd/varnishd.c,
698 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
699 trunk/varnish-cache/bin/varnishncsa/Makefile.am,
700 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
701 trunk/varnish-cache/bin/varnishstat/Makefile.am,
702 trunk/varnish-cache/bin/varnishstat/varnishstat.c,
703 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
704 trunk/varnish-cache/include/libvarnish.h,
705 trunk/varnish-cache/lib/libvarnish/Makefile.am,
706 trunk/varnish-cache/lib/libvarnish/version.c:
707
708 Add a -V option (display version and exit) to all programs.
709
710 2006-08-07 11:09 des
711
712 * trunk/varnish-cache/bin/varnishd/Makefile.am,
713 trunk/varnish-cache/bin/varnishd/cache.h,
714 trunk/varnish-cache/bin/varnishd/cache_cli.c,
715 trunk/varnish-cache/bin/varnishd/cache_response.c,
716 trunk/varnish-cache/bin/varnishd/cache_vrt_re.c,
717 trunk/varnish-cache/bin/varnishd/flint.lnt,
718 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
719 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
720 trunk/varnish-cache/bin/varnishd/varnishd.c,
721 trunk/varnish-cache/bin/varnishlog/Makefile.am,
722 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
723 trunk/varnish-cache/bin/varnishncsa/Makefile.am,
724 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
725 trunk/varnish-cache/bin/varnishtop/Makefile.am,
726 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
727 trunk/varnish-cache/configure.ac,
728 trunk/varnish-cache/include/Makefile.am,
729 trunk/varnish-cache/include/cli_common.h,
730 trunk/varnish-cache/include/libvcl.h,
731 trunk/varnish-cache/include/sbuf.h, trunk/varnish-cache/include/vrt.h,
732 trunk/varnish-cache/include/vsb.h,
733 trunk/varnish-cache/lib/Makefile.am, trunk/varnish-cache/lib/libsbuf,
734 trunk/varnish-cache/lib/libvarnish/Makefile.am,
735 trunk/varnish-cache/lib/libvarnish/cli_common.c,
736 trunk/varnish-cache/lib/libvarnish/vsb.3,
737 trunk/varnish-cache/lib/libvarnish/vsb.c,
738 trunk/varnish-cache/lib/libvcl/vcc_acl.c,
739 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
740 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
741 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
742 trunk/varnish-cache/lib/libvcl/vcc_token.c:
743
744 Fold libsbuf into libvarnish, with s/sbuf/vsb/g.
745
746 2006-08-07 10:46 phk
747
748 * trunk/varnish-cache/bin/varnishd/cache_pipe.c:
749
750 Timeout pipe connections after 600 seconds.
751
752 2006-08-07 10:40 phk
753
754 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
755
756 Use a 600 second timeout, 120 second is too little.
757
758 2006-08-07 09:21 phk
759
760 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
761
762 Set SO_SNDTIMEO to 120 seconds
763
764 2006-08-07 08:42 phk
765
766 * trunk/varnish-cache/bin/varnishd/cache.h,
767 trunk/varnish-cache/bin/varnishd/cache_response.c,
768 trunk/varnish-cache/bin/varnishd/stevedore.h,
769 trunk/varnish-cache/bin/varnishd/storage_file.c,
770 trunk/varnish-cache/bin/varnishd/storage_malloc.c:
771
772 First step of slow client handling: Lose the stevedore function
773 for sending and instead record the fd+off_t in the storage object.
774
775 This eliminates sendfile from storage_file.c, next step is to put
776 it back in the generic code in cache_response.c
777
778 2006-08-07 05:52 des
779
780 * trunk/varnish-cache/bin/varnishd/cache_cli.c,
781 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
782 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
783 trunk/varnish-cache/bin/varnishd/varnishd.c,
784 trunk/varnish-cache/lib/libvarnish/cli_common.c:
785
786 Update #include directives.
787
788 2006-08-07 05:49 des
789
790 * trunk/varnish-cache/bin/varnishd/cache_cli.c,
791 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
792 trunk/varnish-cache/bin/varnishd/mgt_cli.h,
793 trunk/varnish-cache/bin/varnishd/mgt_event.c,
794 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
795 trunk/varnish-cache/include/binary_heap.h,
796 trunk/varnish-cache/include/cli_priv.h,
797 trunk/varnish-cache/include/miniobj.h,
798 trunk/varnish-cache/include/stats.h,
799 trunk/varnish-cache/include/varnish/assert.h,
800 trunk/varnish-cache/include/vrt.h,
801 trunk/varnish-cache/lib/libvarnish/argv.c,
802 trunk/varnish-cache/lib/libvarnish/binary_heap.c,
803 trunk/varnish-cache/lib/libvarnish/cli.c,
804 trunk/varnish-cache/lib/libvarnish/time.c,
805 trunk/varnish-cache/lib/libvarnishapi/varnish_debug.c,
806 trunk/varnish-cache/lib/libvarnishapi/varnish_log.c,
807 trunk/varnish-cache/lib/libvarnishapi/varnish_util.c:
808
809 Expand keywords.
810
811 2006-08-07 05:49 des
812
813 * trunk/varnish-cache/bin/varnishd/Makefile.am,
814 trunk/varnish-cache/bin/varnishd/common_cli.c,
815 trunk/varnish-cache/bin/varnishd/common_cli.h,
816 trunk/varnish-cache/include/Makefile.am,
817 trunk/varnish-cache/include/cli_common.h,
818 trunk/varnish-cache/lib/libvarnish/Makefile.am,
819 trunk/varnish-cache/lib/libvarnish/cli_common.c:
820
821 Move common_cli.[ch] out of varnishd, and rename them to cli_common.[ch].
822
823 2006-08-07 05:47 des
824
825 * trunk/varnish-cache/bin/varnishd/Makefile.am:
826
827 List headers in noinst_HEADERS instead of SOURCES.
828
829 2006-08-07 00:21 andersb
830
831 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
832
833 Fresh start after study of output from varnishlog -o.
834
835 First off is IP adress logging and clearing.
836
837 2006-08-06 17:00 des
838
839 * trunk/varnish-cache:
840
841 Add compile to svn:ignore.
842
843 2006-08-06 16:55 phk
844
845 * trunk/varnish-cache/bin/varnishlog/varnishlog.c:
846
847 Make
848 -w -
849 work as expected.
850
851 2006-08-06 15:02 des
852
853 * trunk/varnish-cache/bin/varnishlog/Makefile.am,
854 trunk/varnish-cache/bin/varnishncsa/Makefile.am,
855 trunk/varnish-cache/bin/varnishstat/Makefile.am,
856 trunk/varnish-cache/bin/varnishtester/Makefile.am,
857 trunk/varnish-cache/bin/varnishtop/Makefile.am,
858 trunk/varnish-cache/lib/libcompat/Makefile.am,
859 trunk/varnish-cache/lib/libsbuf/Makefile.am,
860 trunk/varnish-cache/lib/libvarnish/Makefile.am,
861 trunk/varnish-cache/lib/libvarnishapi/Makefile.am,
862 trunk/varnish-cache/lib/libvcl/Makefile.am:
863
864 Systematically include config.h.
865
866 2006-08-06 14:33 des
867
868 * trunk/varnish-cache/bin/varnishd/Makefile.am:
869
870 Forcibly include config.h.
871
872 2006-08-06 13:51 des
873
874 * trunk/varnish-cache/configure.ac:
875
876 Change version to "trunk" until I can figure out a way to have it reflect
877 the current date.
878
879 2006-08-06 13:49 des
880
881 * trunk/varnish-cache/configure.ac:
882
883 Include -pipe in CFLAGS.
884 Reduce optimization level to -O when debugging.
885
886 2006-08-06 12:51 des
887
888 * trunk/varnish-cache:
889
890 Adjust directory properties.
891
892 2006-08-06 12:49 des
893
894 * trunk/varnish-cache/bin/varnishlog,
895 trunk/varnish-cache/bin/varnishncsa,
896 trunk/varnish-cache/bin/varnishstat,
897 trunk/varnish-cache/bin/varnishtester,
898 trunk/varnish-cache/bin/varnishtop, trunk/varnish-cache/lib/libcompat,
899 trunk/varnish-cache/lib/libsbuf, trunk/varnish-cache/lib/libvcl:
900
901 Adjust directory properties.
902
903 2006-08-06 12:26 des
904
905 * trunk/varnish-cache/bin/varnishd/Makefile.am,
906 trunk/varnish-cache/bin/varnishlog/Makefile.am,
907 trunk/varnish-cache/bin/varnishncsa/Makefile.am,
908 trunk/varnish-cache/bin/varnishstat/Makefile.am:
909
910 Add missing headers and man pages.
911
912 2006-08-06 12:26 des
913
914 * trunk/varnish-cache/autogen.sh:
915
916 We no longer have any CONFIG_SUBDIRS.
917
918 2006-08-06 12:25 des
919
920 * trunk/varnish-cache/include/Makefile.am:
921
922 Add missing headers.
923
924 2006-08-06 12:23 des
925
926 * trunk/varnish-cache/Makefile.am:
927
928 Umm, *really* retire libevent.
929
930 2006-08-06 12:23 des
931
932 * trunk/varnish-cache/Makefile.am, trunk/varnish-cache/configure.ac,
933 trunk/varnish-cache/contrib:
934
935 Retire libevent.
936
937 2006-08-06 12:20 des
938
939 * trunk/varnish-cache/bin/Makefile.am, trunk/varnish-cache/configure.ac:
940
941 Fully disconnect varnishtester.
942
943 2006-08-06 00:44 andersb
944
945 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
946
947 I have realized that I have major structure problems. I will have to
948 study varnishlog output a bit more to understand it better.
949
950 May wanna start clean again, and use hardearned knowledge to make
951 better and more robust structure.
952
953 2006-08-05 22:43 andersb
954
955 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
956
957 Checks show that my IP adress checker is very restrictive and probably
958 deletes other loglines. We still bleeds null lines also.
959
960 This will have to be cleaned up.
961
962 2006-08-05 22:12 andersb
963
964 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
965
966 Loglines with no IP should no longer appear. That also cleared all
967 lines containing a null. Not sure if my check for IP is to harsly
968 implemented and cleans to much.
969
970 2006-08-05 21:35 andersb
971
972 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
973
974 Centralized the stringwriting at last, also started memory cleanup.
975
976 2006-08-05 21:11 andersb
977
978 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
979
980 Added user, loginname, statuscode (200, 304 etc.), byte and referer to
981 make a logline compliant. User and loginname is hardcoded. Referer and
982 User-agen is unclean. Timecode is not working. This version leaks
983 memory bigtime, and is not ready for alpha yet.
984
985 2006-08-05 20:52 phk
986
987 * trunk/varnish-cache/bin/varnishd/cache_center.c:
988
989 For consistency: Go to deliver state instead of delivering locally.
990
991 2006-08-05 18:11 phk
992
993 * trunk/varnish-cache/include/vcl.h,
994 trunk/varnish-cache/include/vcl_returns.h,
995 trunk/varnish-cache/include/vrt.h,
996 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
997 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c:
998
999 Make vcl methods call their defaults as a last resort.
1000
1001 Fix the location table so it knows about the default code too.
1002
1003 2006-08-05 17:30 phk
1004
1005 * trunk/varnish-cache/bin/varnishd/cache_pool.c:
1006
1007 And that is not a good idea either.
1008
1009 2006-08-05 17:30 phk
1010
1011 * trunk/varnish-cache/bin/varnishd/cache_pool.c:
1012
1013 This was not a valid test.
1014
1015 2006-08-05 17:04 phk
1016
1017 * trunk/varnish-cache/bin/varnishd/cache.h,
1018 trunk/varnish-cache/bin/varnishd/cache_cli.c,
1019 trunk/varnish-cache/bin/varnishd/cache_pool.c:
1020
1021 Add some undocumented code to look for something that worries me.
1022
1023 2006-08-05 16:41 phk
1024
1025 * trunk/varnish-cache/bin/varnishd/mgt_child.c:
1026
1027 Issue error message for CLI::start and CLI::stop if child is
1028 not in a legal state for command.
1029
1030 2006-08-05 16:32 phk
1031
1032 * trunk/varnish-cache/bin/varnishd/mgt_child.c:
1033
1034 Also trap SIGTERM
1035
1036 2006-08-05 16:31 phk
1037
1038 * trunk/varnish-cache/bin/varnishd/varnishd.c:
1039
1040 More work on the debug stunt
1041
1042 2006-08-05 15:55 phk
1043
1044 * trunk/varnish-cache/bin/varnishd/mgt_child.c,
1045 trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
1046
1047 Plug memory leaks related to starting/stopping child.
1048
1049 2006-08-05 15:40 phk
1050
1051 * trunk/varnish-cache/bin/varnishd/mgt_child.c:
1052
1053 Replace client_should_run with a 5 state enum to avoid races if multiple
1054 CLI sources yell at the same time.
1055
1056 2006-08-05 15:38 phk
1057
1058 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1059
1060 Bail if the cli pipe is not ready
1061
1062 2006-08-05 15:38 phk
1063
1064 * trunk/varnish-cache/bin/varnishd/varnishd.c:
1065
1066 Polish the debugstunt and make it possible to avoid it.
1067
1068 2006-08-05 15:35 phk
1069
1070 * trunk/varnish-cache/bin/varnishd/mgt_event.c:
1071
1072 We don't disturb ourselves.
1073
1074 2006-08-05 14:24 phk
1075
1076 * trunk/varnish-cache/bin/varnishd/common_cli.c,
1077 trunk/varnish-cache/bin/varnishd/mgt.h,
1078 trunk/varnish-cache/bin/varnishd/mgt_child.c,
1079 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1080 trunk/varnish-cache/bin/varnishd/mgt_event.c,
1081 trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
1082
1083 More defensive coding and a couple of bugs less.
1084
1085 2006-08-05 14:22 phk
1086
1087 * trunk/varnish-cache/lib/libvarnish/binary_heap.c:
1088
1089 More defensive coding.
1090
1091 2006-08-05 12:45 phk
1092
1093 * trunk/varnish-cache/bin/varnishd/common_cli.c,
1094 trunk/varnish-cache/bin/varnishd/common_cli.h,
1095 trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1096
1097 Add a timeout to reads from the child CLI pipe so we don't hang
1098 for ever.
1099
1100 2006-08-05 12:24 phk
1101
1102 * trunk/varnish-cache/bin/varnishd/flint.lnt:
1103
1104 Improve.
1105
1106 2006-08-05 12:24 phk
1107
1108 * trunk/varnish-cache/bin/varnishd/mgt_child.c:
1109
1110 Style cleanup.
1111
1112 remove two unused variables.
1113
1114 2006-08-05 12:24 phk
1115
1116 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1117
1118 Remove unused include
1119
1120 Fix function arg type
1121
1122 2006-08-05 12:23 phk
1123
1124 * trunk/varnish-cache/bin/varnishd/cache_expire.c:
1125
1126 Make sanity check of binheap permanent and fix style accordingly.
1127
1128 2006-08-05 12:23 phk
1129
1130 * trunk/varnish-cache/bin/varnishd/common_cli.c:
1131
1132 Remove unused include
1133
1134 free buffer on error.
1135
1136 2006-08-05 12:22 phk
1137
1138 * trunk/varnish-cache/bin/varnishd/cache_cli.c:
1139
1140 Make sure we don't overflow the line buffer
1141
1142 Remove unused #include
1143
1144 2006-08-05 12:20 phk
1145
1146 * trunk/varnish-cache/bin/varnishd/cache.h,
1147 trunk/varnish-cache/bin/varnishd/cache_vcl.c:
1148
1149 Remove unused "ip" from backend.
1150
1151 Make VCL_Load static, and give it a NULL check.
1152
1153 2006-08-05 12:19 phk
1154
1155 * trunk/varnish-cache/bin/varnishd/common_cli.h:
1156
1157 Cleanup unused stuff
1158
1159 2006-08-05 12:19 phk
1160
1161 * trunk/varnish-cache/bin/varnishd/mgt.h:
1162
1163 Remove prototypes for no longer existing functions
1164
1165 2006-08-05 12:18 phk
1166
1167 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1168 trunk/varnish-cache/bin/varnishd/cache_http.c,
1169 trunk/varnish-cache/bin/varnishd/cache_main.c,
1170 trunk/varnish-cache/bin/varnishd/cache_pipe.c:
1171
1172 Remove unused includes
1173
1174 2006-08-05 12:17 phk
1175
1176 * trunk/varnish-cache/bin/varnishd/flint.sh:
1177
1178 don't search libevent for includes
1179
1180 2006-08-05 12:17 phk
1181
1182 * trunk/varnish-cache/bin/varnishd/mgt_event.c:
1183
1184 style fix
1185
1186 2006-08-05 12:16 phk
1187
1188 * trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
1189
1190 Rename struct vcls to vclprog
1191
1192 2006-08-05 11:44 phk
1193
1194 * trunk/varnish-cache/bin/varnishd/cli_common.c:
1195
1196 remove old file
1197
1198 2006-08-05 11:16 phk
1199
1200 * trunk/varnish-cache/bin/varnishd/mgt.h,
1201 trunk/varnish-cache/bin/varnishd/mgt_child.c,
1202 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1203 trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
1204
1205 Change manager to use mgt_event.h instead of threads to be lazy thread
1206 developer compatible.
1207
1208 POSIX, no surprise, doesn't really tell what should happen to a threaded
1209 process which forks and consequently implemenations vary somewhat,
1210 from Solaris which seems to Do The Right Thing, via Linux where it
1211 works "most of the time" and to FreeBSD which more or less actively
1212 sabotages any such attempt.
1213
1214 Grin and live with it...
1215
1216 2006-08-05 11:13 phk
1217
1218 * trunk/varnish-cache/bin/varnishd/cache_cli.c:
1219
1220 Remove pthread.h include, it's included in cache.h
1221
1222 2006-08-05 11:12 phk
1223
1224 * trunk/varnish-cache/bin/varnishd/mgt_event.c:
1225
1226 Remove debugging printfs
1227
1228 2006-08-05 11:08 phk
1229
1230 * trunk/varnish-cache/bin/varnishd/mgt_event.c:
1231
1232 More bugfixes
1233
1234 2006-08-05 11:07 phk
1235
1236 * trunk/varnish-cache/lib/libvarnish/binary_heap.c:
1237
1238 Add assert
1239
1240 2006-08-05 10:31 phk
1241
1242 * trunk/varnish-cache/bin/varnishd/mgt_event.c,
1243 trunk/varnish-cache/bin/varnishd/mgt_event.h:
1244
1245 bugfixes
1246
1247 2006-08-05 09:27 phk
1248
1249 * trunk/varnish-cache/bin/varnishd/mgt_event.c,
1250 trunk/varnish-cache/bin/varnishd/mgt_event.h:
1251
1252 Add signal support.
1253
1254 2006-08-05 08:49 phk
1255
1256 * trunk/varnish-cache/bin/varnishd/mgt_event.c,
1257 trunk/varnish-cache/bin/varnishd/mgt_event.h:
1258
1259 bugfixes
1260
1261 2006-08-05 08:19 phk
1262
1263 * trunk/varnish-cache/bin/varnishd/Makefile.am,
1264 trunk/varnish-cache/bin/varnishd/mgt_event.c,
1265 trunk/varnish-cache/bin/varnishd/mgt_event.h:
1266
1267 Add a miniature event engine based on poll(2).
1268
1269 It's general enough to find other uses, but right now it's only for
1270 the manager process.
1271
1272 2006-08-05 01:17 andersb
1273
1274 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1275
1276 Got the IP, Request and User-Agent sorted out. Working on the time
1277
1278 2006-08-04 20:03 phk
1279
1280 * trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
1281
1282 Initialize all directions to "opposite" for -b and -c to avoid
1283 spurious first entries.
1284
1285 2006-08-04 19:42 phk
1286
1287 * trunk/varnish-cache/bin/varnishd/cache_center.c:
1288
1289 Use id for printing
1290
1291 2006-08-04 19:36 phk
1292
1293 * trunk/varnish-cache/include/stat_field.h:
1294
1295 Stats field changes
1296
1297 2006-08-04 19:36 phk
1298
1299 * trunk/varnish-cache/bin/varnishd/cache.h,
1300 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1301 trunk/varnish-cache/bin/varnishd/cache_backend.c,
1302 trunk/varnish-cache/bin/varnishd/cache_center.c,
1303 trunk/varnish-cache/bin/varnishd/cache_pass.c,
1304 trunk/varnish-cache/bin/varnishd/cache_pipe.c,
1305 trunk/varnish-cache/bin/varnishd/cache_response.c,
1306 trunk/varnish-cache/bin/varnishd/cache_session.c:
1307
1308 More comprehensive performance stats and a few asserts, just in case.
1309
1310 2006-08-04 11:10 phk
1311
1312 * trunk/varnish-cache/bin/varnishd/mgt.h,
1313 trunk/varnish-cache/bin/varnishd/mgt_child.c,
1314 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1315 trunk/varnish-cache/bin/varnishd/mgt_cli.h,
1316 trunk/varnish-cache/bin/varnishd/mgt_vcc.c:
1317
1318 Now that we keep track of loaded VCLs in the manager, we might
1319 as well allow their manipulation also when the child is not
1320 running.
1321
1322 2006-08-04 10:54 phk
1323
1324 * trunk/varnish-cache/bin/varnishd/cache.h,
1325 trunk/varnish-cache/bin/varnishd/cache_cli.c,
1326 trunk/varnish-cache/bin/varnishd/cache_vcl.c,
1327 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1328 trunk/varnish-cache/bin/varnishd/mgt_cli.h,
1329 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
1330 trunk/varnish-cache/include/cli.h, trunk/varnish-cache/include/vcl.h,
1331 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
1332 trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl:
1333
1334 Redo VCL program handling.
1335
1336 Keep track of all loaded VCL programs in the manager and tell the
1337 child to load them via VCL.
1338
1339 Don't start he acceptor thread until a "start" command cones down
1340 the CLI.
1341
1342 XXX: Right now we leak stuff when a VCL program is dicarded
1343
1344 2006-08-04 10:23 phk
1345
1346 * trunk/varnish-cache/bin/varnishd/Makefile.am,
1347 trunk/varnish-cache/bin/varnishd/cache_cli.c,
1348 trunk/varnish-cache/bin/varnishd/cache_main.c,
1349 trunk/varnish-cache/bin/varnishd/cache_vcl.c,
1350 trunk/varnish-cache/bin/varnishd/heritage.h,
1351 trunk/varnish-cache/bin/varnishd/mgt.h,
1352 trunk/varnish-cache/bin/varnishd/mgt_child.c,
1353 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1354 trunk/varnish-cache/bin/varnishd/mgt_cli.h,
1355 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
1356 trunk/varnish-cache/bin/varnishd/varnishd.c:
1357
1358 Redo our management of compiled VCL programs:
1359
1360 Take default_vcl out of heritage.
1361
1362 Keep track of all compiled VCL files and delete them at
1363 exit.
1364
1365 After starting child, use CLI to load all vcl programs
1366 and then issue "start" via the CLI.
1367
1368 In the cacher, don't start the acceptor until we get
1369 a start command.
1370
1371 2006-08-04 09:19 phk
1372
1373 * trunk/varnish-cache/bin/varnishd/Makefile.am,
1374 trunk/varnish-cache/bin/varnishd/mgt.h,
1375 trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
1376 trunk/varnish-cache/bin/varnishd/varnishd.c:
1377
1378 Move VCL compiler related stuff to mgt_vcc.c
1379
1380 2006-08-04 09:06 phk
1381
1382 * trunk/varnish-cache/bin/varnishd/varnishd.c:
1383
1384 Remove old cli related stuff, it now lives elsewhere
1385
1386 2006-08-04 09:06 phk
1387
1388 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1389
1390 reimplement CLI stats
1391
1392 2006-08-04 07:21 phk
1393
1394 * trunk/varnish-cache/bin/varnishd/mgt.h,
1395 trunk/varnish-cache/bin/varnishd/mgt_child.c,
1396 trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1397
1398 Implement CLI ping in manager, this is a "per hop" command.
1399
1400 Add mgt_cli_askchild() function to poke the CLI interface to
1401 the child.
1402
1403 Use it to ping the child every second.
1404
1405 2006-08-04 07:20 phk
1406
1407 * trunk/varnish-cache/bin/varnishd/cache_cli.c,
1408 trunk/varnish-cache/bin/varnishd/common_cli.c,
1409 trunk/varnish-cache/bin/varnishd/common_cli.h:
1410
1411 Move cli_func_ping to common_cli
1412
1413 2006-08-04 07:19 phk
1414
1415 * trunk/varnish-cache/bin/varnishd/cache_main.c:
1416
1417 SIGCHLD has already been taken care of earlier.
1418
1419 2006-08-04 06:53 phk
1420
1421 * trunk/varnish-cache/bin/varnishd/common_cli.c,
1422 trunk/varnish-cache/bin/varnishd/common_cli.h,
1423 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1424 trunk/varnish-cache/include/cli.h:
1425
1426 Change the CLI protocol in a subtle but useful way:
1427
1428 The first line of the response has a fixed format ("%-3d %-8u\n")
1429 and consequently fixed length (CLI_LINE0_LEN == 13).
1430
1431 This makes parsing responses more efficient. Add a function
1432 in common_cli to do so.
1433
1434 2006-08-04 06:23 phk
1435
1436 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1437
1438 (Re)Implement passthru of cli commands, we can now talk with the
1439 cache process again.
1440
1441 2006-08-04 06:21 phk
1442
1443 * trunk/varnish-cache/include/cli.h:
1444
1445 Add CLIS_CANT status code for when something is valid but currently
1446 impossible.
1447
1448 2006-08-04 06:21 phk
1449
1450 * trunk/varnish-cache/bin/varnishd/cache_cli.c:
1451
1452 Typo: write cli result to correct pipe.
1453
1454 2006-08-03 23:42 andersb
1455
1456 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1457
1458 Placed a new sbuf_clear at a more strategic place. It got cluttered
1459 when a host left without SessionClose of SessionReuse.
1460
1461 2006-08-03 22:01 andersb
1462
1463 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1464
1465 Got a workaround for IP adress fetching. If we connect logger while
1466 Varnish is running, we won't catch the IP from SessionOpen since it's
1467 already done that. Workaround is to catch the IP from SessionReuse if
1468 IP of session is NULL
1469
1470 2006-08-03 19:21 phk
1471
1472 * trunk/varnish-cache/bin/varnishd/cache_fetch.c:
1473
1474 Fix copy&paste bug in fetch_chunked.
1475
1476 2006-08-03 19:20 phk
1477
1478 * trunk/varnish-cache/bin/varnishd/cache_fetch.c:
1479
1480 Sanitycheck that the length of an object adds up, right when we
1481 fetch it.
1482
1483 2006-08-03 11:46 phk
1484
1485 * trunk/varnish-cache/bin/varnishd/mgt_child.c:
1486
1487 Imlement stopping and restarting of child process.
1488
1489 Not as useful as it will be yet, see ticket 22
1490
1491 2006-08-03 11:45 phk
1492
1493 * trunk/varnish-cache/bin/varnishd/varnishd.c:
1494
1495 Make the pipe-stunt debug process smarter.
1496
1497 2006-08-03 10:37 phk
1498
1499 * trunk/varnish-cache/bin/Makefile.am:
1500
1501 Take varnishtester out of the loop until it can be de-libevented
1502
1503 2006-08-03 10:37 phk
1504
1505 * trunk/varnish-cache/bin/varnishd/mgt_cli.c:
1506
1507 Add stop command as well.
1508
1509 2006-08-03 10:16 andersb
1510
1511 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1512
1513 Think I have found a program structure that works. Filling in bits to
1514 build logline.
1515
1516 2006-08-03 09:45 phk
1517
1518 * trunk/varnish-cache/Makefile.am, trunk/varnish-cache/autogen.sh,
1519 trunk/varnish-cache/bin/varnishtester/Makefile.am:
1520
1521 Remove libevent from the picture.
1522
1523 2006-08-03 09:45 phk
1524
1525 * trunk/varnish-cache/bin/varnishd/Makefile.am,
1526 trunk/varnish-cache/bin/varnishd/cache_cli.c,
1527 trunk/varnish-cache/bin/varnishd/cache_main.c,
1528 trunk/varnish-cache/bin/varnishd/cli_common.c,
1529 trunk/varnish-cache/bin/varnishd/cli_event.c,
1530 trunk/varnish-cache/bin/varnishd/cli_event.h,
1531 trunk/varnish-cache/bin/varnishd/common_cli.c,
1532 trunk/varnish-cache/bin/varnishd/common_cli.h,
1533 trunk/varnish-cache/bin/varnishd/mgt.h,
1534 trunk/varnish-cache/bin/varnishd/mgt_child.c,
1535 trunk/varnish-cache/bin/varnishd/mgt_cli.c,
1536 trunk/varnish-cache/bin/varnishd/varnishd.c:
1537
1538 Rip out the old CLI handling and start over, more or less.
1539
1540 Still bits missing.
1541
1542 2006-08-03 06:45 phk
1543
1544 * trunk/varnish-cache/bin/varnishd/Makefile.am,
1545 trunk/varnish-cache/bin/varnishd/cache.h,
1546 trunk/varnish-cache/bin/varnishd/cache_cli.c,
1547 trunk/varnish-cache/bin/varnishd/cache_main.c,
1548 trunk/varnish-cache/bin/varnishd/cli_event.h:
1549
1550 Rework the cache process CLI handling:
1551
1552 We are only accepting CLI from the pipes in heritage, so simply
1553 run a loop reading those, dispatching lines as we see them.
1554
1555 Export CLI_cmds[] so that the management process can see it,
1556 we might as well take advantage of the shared binary where we can.
1557
1558 2006-08-02 22:53 andersb
1559
1560 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1561
1562 Added SessionReuse so I now write a logline for SessionClose and
1563 SessionReuse.
1564
1565 2006-08-02 22:33 andersb
1566
1567 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1568
1569 Starting to get the structure right (I think). Thx for the NULL on
1570 each string Poul-Hennning :)
1571
1572 2006-08-02 20:59 phk
1573
1574 * trunk/varnish-cache/bin/varnishd/cache_expire.c:
1575
1576 Add an assert, just in case.
1577
1578 2006-08-02 20:54 phk
1579
1580 * trunk/varnish-cache/lib/libvarnish/binary_heap.c:
1581
1582 Fix a bug when deleting items in the binheap
1583
1584 2006-08-02 19:12 phk
1585
1586 * trunk/varnish-cache/bin/varnishd/cache_session.c:
1587
1588 log StatAddr with fd=0 to avoid out-of-order confusion
1589
1590 2006-08-02 18:17 phk
1591
1592 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
1593
1594 Allow ENOENT on removing kqueue events, a close will have drained
1595 them already.
1596
1597 2006-08-02 18:12 phk
1598
1599 * trunk/varnish-cache/bin/varnishd/varnishd.c:
1600
1601 Tell daemon(3) to not chdir in debugging mode so we can find our core
1602 dumps.
1603
1604 2006-08-02 17:45 phk
1605
1606 * trunk/varnish-cache/bin/varnishd/cache_center.c:
1607
1608 Enter pass mode through the front door.
1609
1610 2006-08-02 17:27 phk
1611
1612 * trunk/varnish-cache/bin/varnishd/cache_center.c:
1613
1614 More asserts, sp->vbc this time.
1615
1616 2006-08-02 15:55 phk
1617
1618 * trunk/varnish-cache/bin/varnishd/cache_pass.c:
1619
1620 Remember to clear sp->vbc
1621
1622 2006-08-02 13:28 phk
1623
1624 * trunk/varnish-cache/bin/varnishd/mgt_child.c,
1625 trunk/varnish-cache/bin/varnishd/varnishd.c:
1626
1627 Don my plumbers outfit and twist a lot of pipes into shape:
1628
1629 When -d(ebug) is specified we fork before calling daemon.
1630
1631 The parent process becomes a miniature cat(1) program which connects
1632 stdin/stdout with the management process stdin/stdout.
1633
1634 It also knows that SIGINT should be passed on to the management process
1635 in order to make it DTRT.
1636
1637 Any other cause of death for this "debugger" process will (once I
1638 teach the CLI about it) not affect the running varnish and therefore
1639 it will be possible to start varnish in debugging mode, tweak things
1640 a bit and CTRL-D and leave it running in the properly daemon(3)'ed
1641 background.
1642
1643 The reason for this rather complicated bit of pipework is that we
1644 can not call daemon(3) once we have started any threads (only the
1645 calling thread survives) and we would loose our parent relationship
1646 to the cache process also.
1647
1648 2006-08-02 12:05 phk
1649
1650 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
1651
1652 Typo: Also monitor remote sockets with the poll based acceptor.
1653
1654 2006-08-02 11:58 phk
1655
1656 * trunk/varnish-cache/bin/varnishd/cache.h,
1657 trunk/varnish-cache/bin/varnishd/cache_backend.c,
1658 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1659 trunk/varnish-cache/bin/varnishd/cache_main.c,
1660 trunk/varnish-cache/bin/varnishd/cache_vrt.c:
1661
1662 Remove the libevent from the backend pool manager.
1663
1664 Simplify the logic here while we're at it.
1665
1666 2006-08-02 11:18 phk
1667
1668 * trunk/varnish-cache/bin/varnishd/cache_http.c:
1669
1670 Add <stdarg.h> include
1671
1672 2006-08-02 11:17 phk
1673
1674 * trunk/varnish-cache/bin/varnishd/cache_pipe.c:
1675
1676 Remove unused struct.
1677
1678 2006-08-02 10:53 phk
1679
1680 * trunk/varnish-cache/bin/varnishd/cache.h,
1681 trunk/varnish-cache/bin/varnishd/cache_backend.c:
1682
1683 Simplify backend connection memory management.
1684
1685 2006-08-02 10:40 phk
1686
1687 * trunk/varnish-cache/bin/varnishd/cache.h,
1688 trunk/varnish-cache/bin/varnishd/cache_acceptor.c:
1689
1690 Replace libevent based acceptor with poll(2) based acceptor.
1691
1692 2006-08-02 09:34 phk
1693
1694 * trunk/varnish-cache/bin/varnishd/cache.h,
1695 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1696 trunk/varnish-cache/bin/varnishd/cache_http.c:
1697
1698 Bite the bullet and write an alternate acceptor which uses kqueue
1699 directly instead of libevent.
1700
1701 Degeneralize the header reading code in cache_http.c which seems to
1702 be cleaner anyway.
1703
1704 An #ifdef at the top of cache_acceptor.c selects which implementation
1705 you want: libevent or kqueue.
1706
1707 2006-08-02 07:23 phk
1708
1709 * trunk/varnish-cache/bin/varnishd/cache.h,
1710 trunk/varnish-cache/bin/varnishd/cache_pipe.c,
1711 trunk/varnish-cache/bin/varnishd/cache_pool.c:
1712
1713 Convert pipe to use poll(2) on the two filedescriptors it cares about
1714 and eliminate the per-workerthread event engine entirely.
1715
1716 2006-08-02 07:07 phk
1717
1718 * trunk/varnish-cache/bin/varnishd/cache.h,
1719 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1720 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1721 trunk/varnish-cache/bin/varnishd/cache_http.c,
1722 trunk/varnish-cache/bin/varnishd/cache_pass.c:
1723
1724 I have nothing but circumstantial evidence that libevent is involved
1725 in the current stack corruption I see, but we might as well avoid
1726 using it where we can:
1727
1728 Don't engage the eventengine when we talk to the backend, just call
1729 read(2) directly.
1730
1731 2006-08-02 04:57 phk
1732
1733 * trunk/varnish-cache/bin/varnishd/cache_hash.c,
1734 trunk/varnish-cache/bin/varnishd/hash_classic.c:
1735
1736 More miniobj paranoia
1737
1738 2006-08-01 19:48 phk
1739
1740 * trunk/varnish-cache/bin/varnishd/cache_http.c:
1741
1742 More miniobj checks
1743
1744 2006-08-01 17:54 phk
1745
1746 * trunk/varnish-cache/bin/varnishd/cache_fetch.c:
1747
1748 More miniobj checks
1749
1750 2006-08-01 16:42 phk
1751
1752 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1753 trunk/varnish-cache/bin/varnishd/cache_http.c,
1754 trunk/varnish-cache/bin/varnishd/flint.lnt:
1755
1756 More miniobj checks
1757
1758 2006-08-01 16:26 phk
1759
1760 * trunk/varnish-cache/bin/varnishd/cache_response.c:
1761
1762 more miniobj checks
1763
1764 2006-08-01 15:09 phk
1765
1766 * trunk/varnish-cache/bin/varnishd/cache_vrt.c,
1767 trunk/varnish-cache/bin/varnishd/cache_vrt_acl.c,
1768 trunk/varnish-cache/bin/varnishd/cache_vrt_re.c:
1769
1770 Flinting.
1771
1772 2006-08-01 15:08 phk
1773
1774 * trunk/varnish-cache/bin/varnishd/storage_file.c:
1775
1776 Make 32bit limitation work better.
1777
1778 2006-08-01 15:08 phk
1779
1780 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
1781
1782 Fixx off by one error.
1783
1784 2006-08-01 14:53 phk
1785
1786 * trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1787 trunk/varnish-cache/bin/varnishd/storage_file.c:
1788
1789 Add miniobj checks om SMF and STORAGE
1790
1791 2006-08-01 12:38 phk
1792
1793 * trunk/varnish-cache/bin/varnishd/cache.h,
1794 trunk/varnish-cache/bin/varnishd/cache_backend.c,
1795 trunk/varnish-cache/bin/varnishd/cache_fetch.c:
1796
1797 This is getting too longhaired: Give backend connections another
1798 http header which we can use to build the object headers in.
1799
1800 2006-08-01 12:04 phk
1801
1802 * trunk/varnish-cache/bin/varnishd/cache_fetch.c:
1803
1804 Experiment: don't use req's workspace to build object http header.
1805
1806 2006-08-01 09:39 phk
1807
1808 * trunk/varnish-cache/bin/varnishd/cache.h,
1809 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1810 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1811 trunk/varnish-cache/bin/varnishd/cache_hash.c,
1812 trunk/varnish-cache/bin/varnishd/cache_pool.c,
1813 trunk/varnish-cache/bin/varnishd/cache_response.c,
1814 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
1815 trunk/varnish-cache/bin/varnishd/rfc2616.c,
1816 trunk/varnish-cache/include/shmlog_tags.h:
1817
1818 Record timestamp when we have received completed HTTP request header,
1819 and define this as the "start of request timestamp".
1820
1821 Define "end of request timestamp" as when we are ready to transmit
1822 HTTP header back.
1823
1824 SHMlog the start and difference between start and stop with ReqServTime
1825 tag.
1826
1827 Keep track of idle sessions using CLOCK_MONOTONIC to avoid trouble
1828 here should our clock get stepped.
1829
1830 2006-07-31 22:21 andersb
1831
1832 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1833
1834 Added some more toying with the data. All is still a mess, and I am
1835 not sure of structure yet. PHK is also doing changes in areas that
1836 will be needed.
1837
1838 2006-07-31 22:09 phk
1839
1840 * trunk/varnish-cache/bin/varnishd/shmlog.c,
1841 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
1842 trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
1843
1844 Always NUL terminate shmlog entries.
1845
1846 2006-07-31 21:49 phk
1847
1848 * trunk/varnish-cache/bin/varnishd/cache.h,
1849 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1850 trunk/varnish-cache/bin/varnishd/cache_http.c,
1851 trunk/varnish-cache/bin/varnishd/cache_response.c,
1852 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
1853 trunk/varnish-cache/include/shmlog_tags.h:
1854
1855 Create three groups of seven SHMlog tags:
1856
1857 {Rx,Tx,Obj}{Request,Response,Status,URL,Protocol,Header,LostHeader}
1858
1859 And log http header munching accordingly.
1860
1861 2006-07-31 21:46 phk
1862
1863 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
1864
1865 Remove unused variable
1866
1867 2006-07-31 21:37 phk
1868
1869 * trunk/varnish-cache/bin/varnishd/cache_session.c:
1870
1871 addr might be NULL if we are called from the prefetcher.
1872
1873 2006-07-31 21:04 phk
1874
1875 * trunk/varnish-cache/bin/varnishd/cache.h,
1876 trunk/varnish-cache/bin/varnishd/cache_center.c,
1877 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1878 trunk/varnish-cache/bin/varnishd/cache_http.c,
1879 trunk/varnish-cache/bin/varnishd/cache_pass.c,
1880 trunk/varnish-cache/bin/varnishd/cache_response.c:
1881
1882 Add http_ClrHeader() and cure an unintended bug-oid its use exposes:
1883 we checked if the request is a GET long after we should have.
1884
1885 2006-07-31 20:38 phk
1886
1887 * trunk/varnish-cache/bin/varnishd/cache.h,
1888 trunk/varnish-cache/bin/varnishd/cache_http.c,
1889 trunk/varnish-cache/bin/varnishd/cache_response.c:
1890
1891 Add a http_SetResp() function for constructing HTTP responses (like 304).
1892
1893 Eliminate the header index from http_SetHeader() which is no unused.
1894
1895 2006-07-31 20:27 phk
1896
1897 * trunk/varnish-cache/bin/varnishd/cache.h,
1898 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
1899 trunk/varnish-cache/bin/varnishd/cache_http.c,
1900 trunk/varnish-cache/include/shmlog_tags.h:
1901
1902 Log the headers we store in the object under ObjHeader so that
1903 we don't get two confusing batches of TxHeader in the sessions logentries.
1904
1905 2006-07-31 19:18 phk
1906
1907 * trunk/varnish-cache/bin/varnishd/cache_center.c:
1908
1909 Fix the dot-graph
1910
1911 2006-07-31 14:50 andersb
1912
1913 * trunk/varnish-cache/bin/varnishncsa/varnishncsa.c:
1914
1915 Initial commit of real structure. This code will print the User-Agent.
1916
1917 2006-07-31 07:26 phk
1918
1919 * trunk/varnish-cache/bin/varnishd/cache.h,
1920 trunk/varnish-cache/bin/varnishd/cache_http.c,
1921 trunk/varnish-cache/bin/varnishd/cache_response.c:
1922
1923 Introduce http_SetHeader() for setting a http header to a const string,
1924 no need to waste time printf'ing in this case, and no need to waste
1925 workspace.
1926
1927 2006-07-31 07:13 phk
1928
1929 * trunk/varnish-cache/bin/varnishd/cache_http.c:
1930
1931 Don't fill more than half the workspace with received data, we need to
1932 have space for composing the reply as well.
1933
1934 Without this fix, the entire workspace could be filled with pipelined
1935 requests and we would have no space to compose the reply.
1936
1937 2006-07-31 06:36 des
1938
1939 * trunk/varnish-cache/bin/Makefile.am,
1940 trunk/varnish-cache/bin/varnishncsa,
1941 trunk/varnish-cache/bin/varnishncsa/Makefile.am,
1942 trunk/varnish-cache/bin/varnishncsa/varnishncsa.1,
1943 trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
1944 trunk/varnish-cache/configure.ac:
1945
1946 Clone varnishncsa off of varnishlog. Anders will hack on it to produce
1947 NCSA-style (common / combined) logs.
1948
1949 2006-07-31 06:24 des
1950
1951 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
1952
1953 Unbreak build.
1954
1955 2006-07-28 13:41 phk
1956
1957 * trunk/varnish-cache/bin/varnishlog/varnishlog.c:
1958
1959 "HEAD" has 4 characters.
1960
1961 2006-07-24 10:13 phk
1962
1963 * trunk/varnish-cache/lib/libvcl/vcl_compile.c:
1964
1965 remove this file (again)
1966
1967 2006-07-22 22:01 phk
1968
1969 * trunk/varnish-cache/bin/varnishd/hash_classic.c:
1970
1971 reorg a little bit.
1972
1973 2006-07-22 21:20 phk
1974
1975 * trunk/varnish-cache/bin/varnishd/cache.h,
1976 trunk/varnish-cache/bin/varnishd/cache_center.c,
1977 trunk/varnish-cache/bin/varnishd/cache_http.c,
1978 trunk/varnish-cache/bin/varnishd/cache_pass.c,
1979 trunk/varnish-cache/bin/varnishd/cache_pool.c,
1980 trunk/varnish-cache/bin/varnishd/cache_response.c,
1981 trunk/varnish-cache/bin/varnishd/stevedore.h,
1982 trunk/varnish-cache/bin/varnishd/storage_file.c,
1983 trunk/varnish-cache/bin/varnishd/storage_malloc.c:
1984
1985 Eliminate redundant args from stevedore->send()
1986
1987 Have WRK_Write() and friends return number of bytes (we can't use
1988 WRK_Flush() as that may act on both header and body).
1989
1990 Collect more stats.
1991
1992 2006-07-22 20:57 phk
1993
1994 * trunk/varnish-cache/bin/varnishd/cache.h,
1995 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
1996 trunk/varnish-cache/bin/varnishd/cache_center.c,
1997 trunk/varnish-cache/bin/varnishd/cache_pool.c,
1998 trunk/varnish-cache/bin/varnishd/cache_response.c,
1999 trunk/varnish-cache/bin/varnishd/cache_session.c,
2000 trunk/varnish-cache/include/shmlog_tags.h,
2001 trunk/varnish-cache/include/stat_field.h:
2002
2003 Add per address, per session and total statistics.
2004
2005 We (will) collect data in unlocked per workerthread accumulators
2006 and whenever the workerthread leaves the session, we charge the
2007 bill to the srcaddr (issuing a StatAddr shmrecord), to the session
2008 and to the global counters in the stats struct.
2009
2010 When sessions die we issue a StatSess shmrecord.
2011
2012 StatAddr and StatSess has the same format:
2013 address
2014 port (always zero for StatAddr)
2015 duration (seconds)
2016 #sessions
2017 #requests
2018 #pipe
2019 #pass
2020 #fetch
2021 #hdrbytes
2022 #bodybytes
2023
2024 2006-07-22 16:55 phk
2025
2026 * trunk/varnish-cache/bin/varnishd/cache_fetch.c:
2027
2028 Make sure there always is a Host: header in fetch requests.
2029
2030 We fill it in with backend.hostname, but this may not be optimal
2031 (direct IP# etc etc) so VCL should be able to override it.
2032
2033 2006-07-22 16:26 phk
2034
2035 * trunk/varnish-cache/bin/varnishd/cache_center.c:
2036
2037 Action pass from vcl_hit() needs to go to STP_PASS
2038
2039 2006-07-22 16:15 phk
2040
2041 * trunk/varnish-cache/bin/varnishd/cache.h,
2042 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2043 trunk/varnish-cache/bin/varnishd/cache_http.c:
2044
2045 Always use GET and HTTP/1.1 against the backend for fetch
2046
2047 2006-07-22 13:58 phk
2048
2049 * trunk/varnish-cache/bin/varnishlog/varnishlog.c:
2050
2051 exit after error
2052
2053 2006-07-22 12:00 phk
2054
2055 * trunk/varnish-cache/bin/varnishd/Makefile.am,
2056 trunk/varnish-cache/bin/varnishd/cache_vrt_re.c,
2057 trunk/varnish-cache/include/vrt.h,
2058 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
2059 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
2060 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c:
2061
2062 Implement regexp matching of strings in VCL.
2063
2064 For now we default to REG_EXTENDED, but it might make sense
2065 to let the user control this flag and the case sensitivity.
2066
2067 Another concern is the stringification of regexps, it may lead
2068 to backslash madness. Maybe we should define '...' string types
2069 also and do no backslash substitution in those at all.
2070
2071 2006-07-22 10:41 phk
2072
2073 * trunk/varnish-cache/bin/varnishd/cache_vrt_acl.c,
2074 trunk/varnish-cache/include/shmlog_tags.h,
2075 trunk/varnish-cache/include/vcl_returns.h,
2076 trunk/varnish-cache/include/vrt.h,
2077 trunk/varnish-cache/lib/libvcl/vcc_acl.c,
2078 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c:
2079
2080 Change the acl syntax slightly: the ( ... ) should enclose all of
2081 the rule (ie: also ! and /mask if present).
2082
2083 Implement matching for IPv4.
2084
2085 Acl tests are shmlogged as follows (doc candidate):
2086
2087 shmlog tag: VCL_actl
2088
2089 "NO_MATCH $acl"
2090 client did not match access list $acl
2091 "FAIL $acl $rule"
2092 getaddrinfo(3) failed on $rule which had a '!'
2093 "MATCH $acl $rule"
2094 client matched $rule
2095 "NEG_MATCH $acl $rule"
2096 client matched negated (!) $rule
2097
2098 2006-07-22 10:35 phk
2099
2100 * trunk/varnish-cache/bin/varnishd/cache.h,
2101 trunk/varnish-cache/bin/varnishd/cache_session.c:
2102
2103 Store the socket address in the session
2104
2105 2006-07-22 09:38 phk
2106
2107 * trunk/varnish-cache/bin/varnishd/Makefile.am,
2108 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2109 trunk/varnish-cache/bin/varnishd/cache_vrt_acl.c,
2110 trunk/varnish-cache/include/vcl.h,
2111 trunk/varnish-cache/include/vcl_returns.h,
2112 trunk/varnish-cache/include/vrt.h,
2113 trunk/varnish-cache/include/vrt_obj.h,
2114 trunk/varnish-cache/lib/libvcl/vcc_acl.c,
2115 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
2116 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
2117 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
2118 trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl:
2119
2120 VCL compiler:
2121 add two sbufs for "init" and "fini" actions.
2122
2123 VCL ACLs: Change syntax and implementation as follows.
2124
2125 ACL Syntax now works the following way:
2126
2127 acl $name {
2128 ! ( "myhost.com" ) ;
2129 "10.0.0.1" /8 ;
2130 }
2131
2132 The '!' means not. If the address matches the rest of the rule
2133 the address does NOT match the acl and the search terminates here.
2134
2135 Enclosing the string in paranthesis means that the rule will be ignored
2136 if the string cannot be converted to an address (with getaddrinfo).
2137
2138 When a string can not be looked up, and is not enclosed in a
2139 paranthesis, a positive rule (ie: without !) will not match and a
2140 negative rule (with !) will match.
2141
2142 A mask can always be supplied, no matter the style of the string
2143 given, so it is possible to do things like:
2144
2145 { "fw.ourcompany.dom" / 24 }
2146
2147 Which means "any host on the same /24 subnet as fw.ourcompany.dom".
2148
2149
2150 Unfortunately getaddrinfo() does not return a TTL for the results,
2151 in the future we may want to use some kind of timeout to refresh
2152 the lookups.
2153
2154 2006-07-22 08:02 phk
2155
2156 * trunk/varnish-cache/include/vrt_obj.h,
2157 trunk/varnish-cache/lib/libvcl/Makefile.am,
2158 trunk/varnish-cache/lib/libvcl/vcc_acl.c,
2159 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
2160 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
2161 trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
2162 trunk/varnish-cache/lib/libvcl/vcc_obj.c:
2163
2164 Split IP/ACL compilation into vcc_acl.c
2165
2166 2006-07-21 22:12 phk
2167
2168 * trunk/varnish-cache/bin/varnishd/cache_http.c,
2169 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2170 trunk/varnish-cache/bin/varnishd/storage_file.c:
2171
2172 Unless the user specifies an explicit size, don't use more than 2GB
2173 on 32 bit architectures to avoid running out of address room
2174
2175 Make FlexeLint happy.
2176
2177 2006-07-21 21:57 phk
2178
2179 * trunk/varnish-cache/bin/varnishd/cache.h,
2180 trunk/varnish-cache/bin/varnishd/cache_vcl.c,
2181 trunk/varnish-cache/include/vcl_returns.h,
2182 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
2183 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
2184 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
2185 trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl,
2186 trunk/varnish-cache/lib/libvcl/vcc_token.c:
2187
2188 Make FlexeLint happier
2189
2190 2006-07-21 21:42 phk
2191
2192 * trunk/varnish-cache/autogen.phk:
2193
2194 Drop this one now.
2195
2196 2006-07-21 21:28 phk
2197
2198 * trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2199 trunk/varnish-cache/bin/varnishd/rfc2616.c:
2200
2201 Implement TTL adjustment from VCL
2202
2203 Log in shmem where the TTL came from (doc-candidate):
2204
2205 696613561 RFC 900 1153517009 1153517014 1153517914 900 0
2206 | | | | | | | |
2207 | | | | | | | age
2208 | | | | | | max-age
2209 | | | | | Expires: header
2210 | | | | Date: header
2211 | | | "now"
2212 | | TTL relative to "now"
2213 | who set the TTL
2214 xid of object
2215
2216 or
2217
2218 696613561 VCL 20 1153517009
2219 | | | |
2220 | | | "now"
2221 | | TTL relative to "now"
2222 | who set the TTL
2223 xid of object
2224
2225 2006-07-21 21:13 phk
2226
2227 * trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2228 trunk/varnish-cache/include/vrt_obj.h,
2229 trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
2230 trunk/varnish-cache/lib/libvcl/vcc_obj.c:
2231
2232 More VRT work.
2233
2234 Use macros for trivial objects which are just a field in a struct.
2235
2236 2006-07-21 21:01 phk
2237
2238 * trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2239 trunk/varnish-cache/include/vrt.h:
2240
2241 Update VRT to minimal functional level again
2242
2243 2006-07-21 20:51 phk
2244
2245 * trunk/varnish-cache/include/vrt_obj.h,
2246 trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
2247 trunk/varnish-cache/lib/libvcl/vcc_obj.c:
2248
2249 Use const char* for safety
2250
2251 2006-07-21 20:45 phk
2252
2253 * trunk/varnish-cache/include/binary_heap.h,
2254 trunk/varnish-cache/include/miniobj.h,
2255 trunk/varnish-cache/include/stat_field.h,
2256 trunk/varnish-cache/include/stats.h,
2257 trunk/varnish-cache/include/vcl.h,
2258 trunk/varnish-cache/include/vcl_returns.h:
2259
2260 Update
2261
2262 2006-07-21 20:44 phk
2263
2264 * trunk/varnish-cache/include/vrt_obj.h:
2265
2266 This file is generated.
2267
2268 2006-07-21 20:43 phk
2269
2270 * trunk/varnish-cache/lib/libvcl/Makefile.am,
2271 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
2272 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
2273 trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl,
2274 trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
2275 trunk/varnish-cache/lib/libvcl/vcc_obj.c,
2276 trunk/varnish-cache/lib/libvcl/vcc_token.c:
2277
2278 Automate generation of tables and prototypes for the objects which
2279 VCL programs can manipulate.
2280
2281 2006-07-21 18:12 phk
2282
2283 * trunk/varnish-cache/lib/libvcl/Makefile.am,
2284 trunk/varnish-cache/lib/libvcl/vcc_compile.c,
2285 trunk/varnish-cache/lib/libvcl/vcc_compile.h,
2286 trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
2287 trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl,
2288 trunk/varnish-cache/lib/libvcl/vcc_obj.c,
2289 trunk/varnish-cache/lib/libvcl/vcc_priv.h,
2290 trunk/varnish-cache/lib/libvcl/vcc_token.c,
2291 trunk/varnish-cache/lib/libvcl/vcc_token_defs.h,
2292 trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
2293 trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
2294 trunk/varnish-cache/lib/libvcl/vcl_priv.h,
2295 trunk/varnish-cache/lib/libvcl/vcl_token_defs.h:
2296
2297 Move things over to the correct "VCC" prefix.
2298
2299 Split some stuff into separate files while we're at it.
2300
2301 2006-07-21 16:25 phk
2302
2303 * trunk/varnish-cache/include/http_headers.h:
2304
2305 update comment
2306
2307 2006-07-21 16:15 phk
2308
2309 * trunk/varnish-cache/bin/varnishd/rfc2616.c,
2310 trunk/varnish-cache/include/shmlog_tags.h:
2311
2312 Properly log TTL calculation to shmem
2313
2314 2006-07-21 16:06 phk
2315
2316 * trunk/varnish-cache/bin/varnishd/cache_http.c:
2317
2318 Fix formatting of responses.
2319
2320 2006-07-21 16:05 phk
2321
2322 * trunk/varnish-cache/bin/varnishd/rfc2616.c:
2323
2324 Log TTL calculation on the right fd
2325
2326 2006-07-21 15:25 phk
2327
2328 * trunk/varnish-cache/bin/varnishlog/varnishlog.c,
2329 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
2330 trunk/varnish-cache/include/varnishapi.h,
2331 trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
2332
2333 Work on logtailer api a bit:
2334
2335 By default, start at the last entry in shared memory. To dump the
2336 entire segment from the start, specify '-d' option.
2337
2338 Terminate programs when '-r $file' reaches EOF
2339
2340 2006-07-21 12:18 phk
2341
2342 * trunk/varnish-cache/bin/varnishd/cache.h,
2343 trunk/varnish-cache/bin/varnishd/cache_expire.c,
2344 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2345 trunk/varnish-cache/bin/varnishd/cache_http.c,
2346 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2347 trunk/varnish-cache/bin/varnishd/cache_session.c,
2348 trunk/varnish-cache/bin/varnishd/flint.lnt:
2349
2350 Cleanup
2351
2352 2006-07-21 12:08 phk
2353
2354 * trunk/varnish-cache/bin/varnishd/cache_backend.c:
2355
2356 Magic check on struct vbe
2357
2358 2006-07-21 12:06 phk
2359
2360 * trunk/varnish-cache/bin/varnishd/cache_backend.c:
2361
2362 Better name
2363
2364 2006-07-21 11:55 phk
2365
2366 * trunk/varnish-cache/bin/varnishd/cache.h,
2367 trunk/varnish-cache/bin/varnishd/cache_center.c,
2368 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2369 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2370 trunk/varnish-cache/bin/varnishd/cache_http.c,
2371 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2372 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2373 trunk/varnish-cache/bin/varnishd/cache_response.c,
2374 trunk/varnish-cache/include/http_headers.h,
2375 trunk/varnish-cache/include/stat_field.h:
2376
2377 Convert fetch, insert and deliver to use new HTTP header munging code.
2378
2379 Remove sbuf from workerthread, it is only used in the Error handling
2380 now and it will probably not even survive that in the long run.
2381
2382 2006-07-21 10:44 phk
2383
2384 * trunk/varnish-cache/bin/varnishd/cache.h,
2385 trunk/varnish-cache/bin/varnishd/cache_center.c,
2386 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2387 trunk/varnish-cache/bin/varnishd/cache_pipe.c,
2388 trunk/varnish-cache/bin/varnishd/cache_pool.c:
2389
2390 Make pipe use the new http manipulation.
2391
2392 2006-07-21 09:32 phk
2393
2394 * trunk/varnish-cache/bin/varnishd/cache.h,
2395 trunk/varnish-cache/bin/varnishd/cache_center.c,
2396 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2397 trunk/varnish-cache/bin/varnishd/cache_http.c,
2398 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2399 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2400 trunk/varnish-cache/bin/varnishd/cache_response.c,
2401 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2402 trunk/varnish-cache/include/http_headers.h:
2403
2404 HTTP header munging part (N of M)
2405
2406 NB: Only pass mode (lightly) tested right now.
2407
2408 Give up on the three element array per header and use a two element struct
2409 instead, it reduces obfuscation and removes risk of pointer fandango.
2410
2411 Introduce #defined filtercontrol in http_headers.h, use them in a new
2412 field. Only Pass is there for now.
2413
2414 Use the http-workspace for building headers instead of sbuf.
2415
2416 Move uiovec handling to cache_pool.c where it more naturally belongs
2417 and so we can use it on both backends and sessions.
2418
2419 Add http header munging functiosn for copying, printf'ing, filtering and
2420 writing headers.
2421
2422 2006-07-21 07:18 phk
2423
2424 * trunk/varnish-cache/bin/varnishd/cache.h,
2425 trunk/varnish-cache/bin/varnishd/cache_backend.c,
2426 trunk/varnish-cache/bin/varnishd/cache_http.c,
2427 trunk/varnish-cache/bin/varnishd/cache_session.c,
2428 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2429 trunk/varnish-cache/include/shmlog_tags.h:
2430
2431 Rename shmlog tags for headers to RxHeader and TxHeader that's more
2432 logical.
2433
2434 Rename http_Init() to http_Setup() to avoid clash with HTTP_Init().
2435
2436 Remove unused variable
2437
2438 2006-07-20 22:08 phk
2439
2440 * trunk/varnish-cache/bin/varnishd/cache.h,
2441 trunk/varnish-cache/bin/varnishd/cache_backend.c,
2442 trunk/varnish-cache/bin/varnishd/cache_center.c,
2443 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2444 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2445 trunk/varnish-cache/bin/varnishd/cache_http.c,
2446 trunk/varnish-cache/bin/varnishd/cache_main.c,
2447 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2448 trunk/varnish-cache/bin/varnishd/cache_response.c,
2449 trunk/varnish-cache/bin/varnishd/cache_session.c,
2450 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2451 trunk/varnish-cache/bin/varnishd/heritage.h,
2452 trunk/varnish-cache/bin/varnishd/rfc2616.c,
2453 trunk/varnish-cache/bin/varnishd/varnishd.c,
2454 trunk/varnish-cache/include/shmlog_tags.h,
2455 trunk/varnish-cache/lib/libvcl/vcl_compile.c:
2456
2457 Yet another refinement to the way we store and deal with HTTP headers.
2458
2459 Record a triplet of {start, data, end} for all HTTP data items.
2460
2461 This represents a regrettable uglification of the sourcecode, but
2462 most of it compiles out to constants and the runtime benefits will
2463 be worth it.
2464
2465 Generate H_FOO magic strings for all the headers we know about.
2466 These strings have a length as first char and always ends in ':'.
2467
2468 Also genereate H_FOO format strings in VCL compiler.
2469
2470 Mandate (with assert) that header references happen using H_FOO strings.
2471
2472 Make number of allowed HTTP headers a compile time constant (32)
2473 but make the workspace a run-time variable (4096).
2474
2475 Introduce new SHM tag for dumping aborted HTTP protocol requests.
2476
2477 2006-07-20 15:10 phk
2478
2479 * trunk/varnish-cache/bin/varnishd/cache_expire.c:
2480
2481 Add XXX comment
2482
2483 2006-07-20 14:46 phk
2484
2485 * trunk/varnish-cache/bin/varnishd/cache_expire.c,
2486 trunk/varnish-cache/include/stat_field.h:
2487
2488 Keep an eye on deathrow
2489
2490 2006-07-20 14:40 phk
2491
2492 * trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2493 trunk/varnish-cache/bin/varnishd/cache_response.c:
2494
2495 More asserts
2496
2497 2006-07-20 14:23 phk
2498
2499 * trunk/varnish-cache/bin/varnishd/cache_hash.c:
2500
2501 We need to check the TTL here also, if a (sequence of) slow client(s)
2502 manages to hold the document referenced, the prefetcher may never
2503 get lucky with it and it will linger here much past last sell date.
2504
2505 2006-07-20 13:42 phk
2506
2507 * trunk/varnish-cache/bin/varnishd/cache_center.c,
2508 trunk/varnish-cache/bin/varnishd/cache_pool.c:
2509
2510 Only reference srcaddr on first request on session
2511
2512 2006-07-20 13:39 phk
2513
2514 * trunk/varnish-cache/bin/varnishd/cache_session.c:
2515
2516 Be more paranoid about srcaddr
2517
2518 2006-07-20 13:33 phk
2519
2520 * trunk/varnish-cache/bin/varnishd/cache_session.c:
2521
2522 upd
2523
2524 2006-07-20 13:29 phk
2525
2526 * trunk/varnish-cache/bin/varnishd/cache_session.c,
2527 trunk/varnish-cache/include/stat_field.h:
2528
2529 Keep track of active source addresses
2530
2531 2006-07-20 12:03 phk
2532
2533 * trunk/varnish-cache/bin/varnishtop/varnishtop.c:
2534
2535 Add -1 option that stops comparison after first field.
2536
2537 Useful with commands like:
2538
2539 varnishtop -i header -1
2540 varnishtop -i srcaddr -1
2541
2542 where the variable part of the entry is less relevant.
2543
2544 2006-07-20 10:10 phk
2545
2546 * trunk/varnish-cache/bin/varnishstat/varnishstat.c:
2547
2548 Show also average since start
2549
2550 2006-07-20 09:58 phk
2551
2552 * trunk/varnish-cache/bin/varnishd/cache_http.c:
2553
2554 Hmm, that was a bad idea.
2555
2556 2006-07-20 09:42 phk
2557
2558 * trunk/varnish-cache/bin/varnishd/cache_http.c:
2559
2560 Loop till we have everything.
2561
2562 2006-07-20 09:29 phk
2563
2564 * trunk/varnish-cache/bin/varnishd/cache.h,
2565 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2566 trunk/varnish-cache/bin/varnishd/cache_http.c,
2567 trunk/varnish-cache/bin/varnishd/cache_response.c:
2568
2569 Implement "If-Modified-Since" conditional queries
2570
2571 2006-07-20 08:29 phk
2572
2573 * trunk/varnish-cache/bin/varnishd/cache.h,
2574 trunk/varnish-cache/bin/varnishd/cache_center.c,
2575 trunk/varnish-cache/bin/varnishd/cache_response.c:
2576
2577 Remove explicit worker thread arguments.
2578
2579 2006-07-20 08:25 phk
2580
2581 * trunk/varnish-cache/bin/varnishd/cache.h,
2582 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2583 trunk/varnish-cache/bin/varnishd/cache_center.c,
2584 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2585 trunk/varnish-cache/bin/varnishd/cache_response.c:
2586
2587 Move the delivery functions from acceptor to response
2588
2589 2006-07-19 21:16 phk
2590
2591 * trunk/varnish-cache/bin/varnishd/cache_pool.c,
2592 trunk/varnish-cache/include/stat_field.h:
2593
2594 Rework the worker thread pool logic slightly, we were leaking
2595 threads before.
2596
2597 2006-07-19 21:14 phk
2598
2599 * trunk/varnish-cache/bin/varnishd/cache_main.c,
2600 trunk/varnish-cache/bin/varnishd/shmlog.c,
2601 trunk/varnish-cache/bin/varnishstat/varnishstat.c,
2602 trunk/varnish-cache/include/stats.h:
2603
2604 Include a "start_time" timestamp in the stats and teach varnishstats
2605 to print it in curses mode.
2606
2607 Some polishing and cleanup.
2608
2609 2006-07-19 20:07 phk
2610
2611 * trunk/varnish-cache/bin/varnishd/varnishd.c:
2612
2613 Use insert_pass in vcl_fetch() so we cache the uncacheability.
2614
2615 2006-07-19 20:06 phk
2616
2617 * trunk/varnish-cache/bin/varnishd/storage_file.c:
2618
2619 Don't explode on trim's to zero size.
2620
2621 Real fix should (maybe) be to callers
2622
2623 2006-07-19 19:49 phk
2624
2625 * trunk/varnish-cache/bin/varnishtop/varnishtop.c:
2626
2627 Update only once per second.
2628
2629 2006-07-19 19:48 phk
2630
2631 * trunk/varnish-cache/bin/varnishd/varnishd.c:
2632
2633 Make sure width and precision arguments to printf %*.*s are ints.
2634
2635 2006-07-19 19:47 phk
2636
2637 * trunk/varnish-cache/bin/varnishd/cache_session.c:
2638
2639 Don't panic on NULL srcaddr, but revisit later when we know the
2640 details. Is it the Prefetcher ?
2641
2642 2006-07-19 19:45 phk
2643
2644 * trunk/varnish-cache/bin/varnishd/cache_session.c:
2645
2646 Delete the right list item.
2647
2648 2006-07-19 19:45 phk
2649
2650 * trunk/varnish-cache/bin/varnishd/cache_center.c:
2651
2652 Don't bother determining if we should close if we already have done so.
2653 Also: we may not have valid headers if cache_http.c threw a 400.
2654
2655 2006-07-19 19:43 phk
2656
2657 * trunk/varnish-cache/bin/varnishd/cache_http.c:
2658
2659 Make sure hp->v is NUL terminated.
2660
2661 2006-07-19 12:37 phk
2662
2663 * trunk/varnish-cache/bin/varnishd/cache.h,
2664 trunk/varnish-cache/bin/varnishd/cache_backend.c,
2665 trunk/varnish-cache/bin/varnishd/cache_center.c,
2666 trunk/varnish-cache/bin/varnishd/cache_expire.c,
2667 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2668 trunk/varnish-cache/bin/varnishd/cache_http.c,
2669 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2670 trunk/varnish-cache/bin/varnishd/cache_session.c,
2671 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2672 trunk/varnish-cache/bin/varnishd/hash_classic.c:
2673
2674 Use miniobj.h to catch pointer trouble
2675
2676 2006-07-19 12:36 phk
2677
2678 * trunk/varnish-cache/include/miniobj.h:
2679
2680 Add miniobj.h for debugging
2681
2682 2006-07-19 11:53 phk
2683
2684 * trunk/varnish-cache/bin/varnishd/rfc2616.c:
2685
2686 Avoid the Error path for now.
2687
2688 2006-07-19 11:11 phk
2689
2690 * trunk/varnish-cache/bin/varnishd/rfc2616.c:
2691
2692 handle 302 for now.
2693
2694 2006-07-19 08:33 phk
2695
2696 * trunk/varnish-cache/bin/varnishd/cache_pool.c:
2697
2698 Properly zero the worker structure when we start a thread.
2699
2700 2006-07-18 13:47 phk
2701
2702 * trunk/varnish-cache/bin/varnishd/cache_session.c:
2703
2704 eliminate debugging
2705
2706 2006-07-18 13:19 phk
2707
2708 * trunk/varnish-cache/bin/varnishd/cache_expire.c:
2709
2710 Delete binheap root by it's index.
2711
2712 Expect a refcount of one (the one holding the object in the hash)
2713
2714 2006-07-18 13:18 phk
2715
2716 * trunk/varnish-cache/lib/libvarnish/binary_heap.c:
2717
2718 Fix the Parent calculation
2719
2720 2006-07-18 12:46 phk
2721
2722 * trunk/varnish-cache/lib/libvarnish/binary_heap.c:
2723
2724 Set the index of deleted elements to zero
2725
2726 2006-07-18 12:40 phk
2727
2728 * trunk/varnish-cache/lib/libvarnish/binary_heap.c:
2729
2730 Move the root index from zero to one
2731
2732 2006-07-18 12:29 phk
2733
2734 * trunk/varnish-cache/bin/varnishd/cache_fetch.c:
2735
2736 Remove the deref/unbusy stuff from FetchBody() it's done in central.c
2737
2738 2006-07-18 12:28 phk
2739
2740 * trunk/varnish-cache/bin/varnishd/cache_hash.c:
2741
2742 Assert that object is busy when we call unbusy
2743
2744 2006-07-18 12:27 phk
2745
2746 * trunk/varnish-cache/bin/varnishd/cache.h,
2747 trunk/varnish-cache/bin/varnishd/cache_http.c:
2748
2749 Use a void * for http_Read()'s buffer
2750
2751 2006-07-18 10:48 phk
2752
2753 * trunk/varnish-cache/bin/varnishd/cache_pass.c:
2754
2755 Braino this time.
2756
2757 2006-07-18 10:45 phk
2758
2759 * trunk/varnish-cache/bin/varnishd/cache_pass.c:
2760
2761 typo
2762
2763 2006-07-18 10:45 phk
2764
2765 * trunk/varnish-cache/bin/varnishd/cache.h,
2766 trunk/varnish-cache/bin/varnishd/cache_center.c,
2767 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2768 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2769 trunk/varnish-cache/bin/varnishd/cache_http.c,
2770 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2771 trunk/varnish-cache/bin/varnishd/cache_pipe.c:
2772
2773 Add http_Read() which reads from a socket but soaks up any prefeched
2774 tail first and use it all the places where this logic was explicit
2775 before.
2776
2777 Fix Refcounting on objects when we insert/deliver
2778
2779 2006-07-18 10:32 phk
2780
2781 * trunk/varnish-cache/bin/varnishd/cache_pass.c:
2782
2783 Use bigger buffersizes for pass mode
2784
2785 Terminate the sbuf with the reply headers properly.
2786
2787 2006-07-18 09:02 phk
2788
2789 * trunk/varnish-cache/bin/varnishd/cache.h,
2790 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2791 trunk/varnish-cache/bin/varnishd/cache_center.c,
2792 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2793 trunk/varnish-cache/bin/varnishd/cache_http.c,
2794 trunk/varnish-cache/bin/varnishd/cache_vrt.c:
2795
2796 Retire the http_GetReq(), http_GetURL() and http_GetProto() accessor
2797 functions now that struct http is out of the closet.
2798
2799 2006-07-18 08:52 phk
2800
2801 * trunk/varnish-cache/bin/varnishd/cache_center.c:
2802
2803 polish
2804
2805 2006-07-18 08:51 phk
2806
2807 * trunk/varnish-cache/bin/varnishd/cache_pipe.c:
2808
2809 zero means 'all' to http_GetTail()
2810
2811 2006-07-14 13:54 phk
2812
2813 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
2814
2815 use space to separate host and port in -b
2816
2817 2006-07-14 13:52 phk
2818
2819 * trunk/varnish-cache/bin/varnishd/varnishd.c:
2820
2821 Use space to separate host and port in backend spec.
2822
2823 Polish usage message a bit.
2824
2825 2006-07-14 13:33 phk
2826
2827 * trunk/varnish-cache/bin/varnishd/cache.h,
2828 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2829 trunk/varnish-cache/bin/varnishd/cache_center.c,
2830 trunk/varnish-cache/bin/varnishd/cache_hash.c,
2831 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2832 trunk/varnish-cache/bin/varnishd/steps.h:
2833
2834 When during a lookup we encounter a busy object, queue the session on
2835 the objects waitinglist and disembark the worker thread so it can do
2836 something sensible in the mean time.
2837
2838 This feature is unimportant in normal operation, but crucial to
2839 resource management if a popular URL suddenly takes a long time to
2840 reply from the backend.
2841
2842 Without this bit if semi-nasty code, we would tie up one worker
2843 thread per client while waiting for the backend to come to it's
2844 senses.
2845
2846 2006-07-14 12:47 phk
2847
2848 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2849 trunk/varnish-cache/bin/varnishd/cache_center.c:
2850
2851 Have the acceptor launch the session into STP_RECV
2852
2853 2006-07-14 12:45 phk
2854
2855 * trunk/varnish-cache/bin/varnishd/cache.h,
2856 trunk/varnish-cache/bin/varnishd/cache_center.c,
2857 trunk/varnish-cache/bin/varnishd/cache_pool.c:
2858
2859 Use the fact that we have the worker thread in struct sess now.
2860
2861 Move initial and final processing into cnt_recv() and cnt_done()
2862
2863 2006-07-14 12:30 phk
2864
2865 * trunk/varnish-cache/bin/varnishd/cache_center.c:
2866
2867 Have the states tell us if we are done yet with their return value,
2868 so that we can implement disembarking the worker thread of the object
2869 is busy.
2870
2871 2006-07-14 12:22 phk
2872
2873 * trunk/varnish-cache/bin/varnishd/shmlog.c,
2874 trunk/varnish-cache/include/shmlog.h:
2875
2876 Put a starttime in shmem so varnishstat can show average rates.
2877
2878 2006-07-14 12:12 phk
2879
2880 * trunk/varnish-cache/bin/varnishd/shmlog.c:
2881
2882 Flexelint'ing, found a spurious ';'
2883
2884 2006-07-14 12:05 phk
2885
2886 * trunk/varnish-cache/bin/varnishd/shmlog.c,
2887 trunk/varnish-cache/include/shmlog.h:
2888
2889 More SHM creation polishing
2890
2891 2006-07-14 11:44 phk
2892
2893 * trunk/varnish-cache/bin/varnishd/shmlog.c:
2894
2895 Better and more paranoid SHMEM creation logic
2896
2897 2006-07-14 11:42 phk
2898
2899 * trunk/varnish-cache/bin/varnishd/cache_session.c:
2900
2901 propset Id
2902
2903 2006-07-14 11:20 phk
2904
2905 * trunk/varnish-cache/bin/varnishd/cache.h,
2906 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2907 trunk/varnish-cache/bin/varnishd/cache_center.c,
2908 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2909 trunk/varnish-cache/bin/varnishd/cache_pipe.c,
2910 trunk/varnish-cache/bin/varnishd/cache_session.c,
2911 trunk/varnish-cache/include/shmlog_tags.h,
2912 trunk/varnish-cache/include/stat_field.h:
2913
2914 Change "client" to "srcaddr", it's more descriptive.
2915
2916 Add srcaddr management and start charging bytes to the srcaddr.
2917
2918 2006-07-14 10:34 phk
2919
2920 * trunk/varnish-cache/bin/varnishd/cache.h,
2921 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2922 trunk/varnish-cache/bin/varnishd/cache_backend.c,
2923 trunk/varnish-cache/bin/varnishd/common.h,
2924 trunk/varnish-cache/bin/varnishd/tcp.c:
2925
2926 Rework the way we do ascii representations of addresses
2927
2928 2006-07-14 10:16 phk
2929
2930 * trunk/varnish-cache/bin/varnishd/Makefile.am,
2931 trunk/varnish-cache/bin/varnishd/cache.h,
2932 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2933 trunk/varnish-cache/bin/varnishd/cache_center.c,
2934 trunk/varnish-cache/bin/varnishd/cache_main.c,
2935 trunk/varnish-cache/bin/varnishd/cache_session.c:
2936
2937 Move session management to new file (cache_session, SES prefix) in
2938 preparation of adding client tracking.
2939
2940 Move the iovec's from the session to the worker and give the session
2941 a pointer to the worker so we can avoid passing it around as argument.
2942
2943 2006-07-12 23:30 phk
2944
2945 * trunk/varnish-cache/bin/varnishd/cache_hash.c,
2946 trunk/varnish-cache/bin/varnishd/cache_http.c,
2947 trunk/varnish-cache/bin/varnishd/cache_main.c,
2948 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2949 trunk/varnish-cache/bin/varnishd/cache_pipe.c,
2950 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2951 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
2952 trunk/varnish-cache/bin/varnishd/cli_event.c,
2953 trunk/varnish-cache/bin/varnishd/flint.lnt,
2954 trunk/varnish-cache/bin/varnishd/flint.sh,
2955 trunk/varnish-cache/bin/varnishd/rfc2616.c,
2956 trunk/varnish-cache/bin/varnishd/shmlog.c,
2957 trunk/varnish-cache/bin/varnishd/varnishd.c:
2958
2959 More Flexelinting
2960
2961 2006-07-12 22:52 phk
2962
2963 * trunk/varnish-cache/bin/varnishd/cache.h,
2964 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2965 trunk/varnish-cache/bin/varnishd/cache_backend.c,
2966 trunk/varnish-cache/bin/varnishd/cache_ban.c,
2967 trunk/varnish-cache/bin/varnishd/cache_center.c,
2968 trunk/varnish-cache/bin/varnishd/cache_expire.c,
2969 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
2970 trunk/varnish-cache/bin/varnishd/cache_http.c,
2971 trunk/varnish-cache/bin/varnishd/cache_pass.c,
2972 trunk/varnish-cache/bin/varnishd/cache_pipe.c,
2973 trunk/varnish-cache/bin/varnishd/cache_pool.c,
2974 trunk/varnish-cache/bin/varnishd/cache_response.c,
2975 trunk/varnish-cache/bin/varnishd/flint.lnt,
2976 trunk/varnish-cache/bin/varnishd/mgt_child.c:
2977
2978 More flexelinting.
2979
2980 No bugs so far.
2981
2982 2006-07-12 22:07 phk
2983
2984 * trunk/varnish-cache/bin/varnishd/cache_backend.c:
2985
2986 Flexelint harder.
2987
2988 2006-07-12 22:01 phk
2989
2990 * trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
2991 trunk/varnish-cache/bin/varnishd/cache_backend.c,
2992 trunk/varnish-cache/bin/varnishd/flint.lnt,
2993 trunk/varnish-cache/bin/varnishd/varnishd.c:
2994
2995 Give this file a flexelinting
2996
2997 2006-07-12 22:01 phk
2998
2999 * trunk/varnish-cache/bin/varnishd/cache.h:
3000
3001 Improve the INCOMPL() macro.
3002
3003 2006-07-12 20:21 phk
3004
3005 * trunk/varnish-cache/bin/varnishd/cache_vcl.c:
3006
3007 More polishing.
3008
3009 2006-07-12 19:28 phk
3010
3011 * trunk/varnish-cache/bin/varnishd/cache.h,
3012 trunk/varnish-cache/bin/varnishd/cache_center.c,
3013 trunk/varnish-cache/bin/varnishd/cache_expire.c,
3014 trunk/varnish-cache/bin/varnishd/cache_main.c,
3015 trunk/varnish-cache/bin/varnishd/cache_vcl.c:
3016
3017 Move sessmtx to cache_vcl.c and call it vcl_mtx.
3018
3019 Clean up naming for consistency while here.
3020
3021 2006-07-12 15:07 phk
3022
3023 * trunk/varnish-cache/bin/varnishd/cache.h,
3024 trunk/varnish-cache/bin/varnishd/cache_center.c,
3025 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
3026 trunk/varnish-cache/bin/varnishd/cache_hash.c,
3027 trunk/varnish-cache/bin/varnishd/cache_pass.c,
3028 trunk/varnish-cache/include/shmlog_tags.h,
3029 trunk/varnish-cache/include/stat_field.h:
3030
3031 Implement "insert_pass" mode where we cache that an entity must be passed.
3032
3033 2006-07-12 14:13 phk
3034
3035 * trunk/varnish-cache/bin/varnishd/cache_center.c:
3036
3037 Make Pass possible from vcl_hit()
3038
3039 2006-07-12 13:28 phk
3040
3041 * trunk/varnish-cache/bin/varnishd/cache_ban.c,
3042 trunk/varnish-cache/bin/varnishd/cache_expire.c,
3043 trunk/varnish-cache/bin/varnishd/cache_response.c,
3044 trunk/varnish-cache/bin/varnishd/cache_vrt.c,
3045 trunk/varnish-cache/bin/varnishd/common.h,
3046 trunk/varnish-cache/bin/varnishd/hash_classic.c,
3047 trunk/varnish-cache/bin/varnishd/hash_slinger.h,
3048 trunk/varnish-cache/bin/varnishd/rfc2616.c,
3049 trunk/varnish-cache/bin/varnishd/steps.h,
3050 trunk/varnish-cache/bin/varnishd/stevedore.h,
3051 trunk/varnish-cache/bin/varnishd/storage_file.c:
3052
3053 Enable Id keyword
3054
3055 2006-07-12 13:28 phk
3056
3057 * trunk/varnish-cache/bin/varnishd/cache_center.c:
3058
3059 First stab at implementing pass in vcl_miss()
3060
3061 2006-07-12 13:27 phk
3062
3063 * trunk/varnish-cache/bin/varnishd/cache_hash.c:
3064
3065 Add explanation for locking, some minor polishing.
3066
3067 2006-07-12 12:04 phk
3068
3069 * trunk/varnish-cache/bin/varnishd/cache_fetch.c,
3070 trunk/varnish-cache/bin/varnishd/cache_hash.c,
3071 trunk/varnish-cache/bin/varnishd/hash_classic.c,
3072 trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
3073 trunk/varnish-cache/bin/varnishd/hash_slinger.h:
3074
3075 Hash on both URL and Host header. If no host header, hash on URL twice.
3076
3077 2006-07-12 11:48 phk
3078
3079 * trunk/varnish-cache/bin/varnishd/cache_center.c,
3080 trunk/varnish-cache/bin/varnishd/cache_pass.c:
3081
3082 Make Pass work again
3083
3084 2006-07-12 11:45 phk
3085
3086 * trunk/varnish-cache/bin/varnishd/cache_center.c:
3087
3088 Make pipe work again
3089
3090 2006-07-12 08:56 phk
3091
3092 * trunk/varnish-cache/bin/varnishd/cache.h,
3093 trunk/varnish-cache/bin/varnishd/cache_main.c,
3094 trunk/varnish-cache/bin/varnishd/cache_vcl.c:
3095
3096 Fix CLI "config.load"
3097
3098 2006-07-12 08:44 phk
3099
3100 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3101
3102 Always insert a backend when vcl is compiled.
3103
3104 Respect '#' comments in script file.
3105
3106 2006-07-12 08:34 phk
3107
3108 * trunk/varnish-cache/bin/varnishd/varnishd.c,
3109 trunk/varnish-cache/include/libvcl.h,
3110 trunk/varnish-cache/lib/libvcl/vcl_compile.c:
3111
3112 Teach the VCL compiler about default functions, so that users will
3113 not have to copy&paste the default methods if they have no special
3114 requirements for a particular method.
3115
3116 No such facility exists for backends, so a backend description is
3117 now the minumum VCL program.
3118
3119 When we initialize the VCL compiler we hand it a piece of source code
3120 with the "default code", this must include definitions of all methods
3121 named with a "default_" prefix (ie: "default_vcl_recv" etc).
3122
3123 During compilation we always compile this piece of source code in (after
3124 the user supplied VCL source).
3125
3126 If the user did not provide a particular method, the default method is
3127 used instead. The user can also call the default method directly,
3128 for instance by:
3129
3130 sub vcl_recv {
3131 if (req.http.Expect) {
3132 error;
3133 }
3134 call default_vcl_recv;
3135 }
3136
3137 Later on, this could be expanded to allow other subroutines to be
3138 included in the default VCL for the users calling convenience.
3139
3140 2006-07-12 07:45 phk
3141
3142 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3143
3144 Pause after 'vcl' command
3145
3146 2006-07-11 21:35 phk
3147
3148 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3149
3150 EOF detection in libevent is buggy ?? Add exit cmd.
3151
3152 Pause after cli until we see "OK"
3153
3154 2006-07-11 21:30 phk
3155
3156 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3157
3158 add a req command, various adjustments
3159
3160 2006-07-11 21:04 phk
3161
3162 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3163
3164 Add Pause() and Resume() to pace script execution
3165
3166 2006-07-11 21:01 phk
3167
3168 * trunk/varnish-cache/bin/varnishd/cache_main.c:
3169
3170 Add a printf when cached is ready for the benefit of varnishtester
3171
3172 2006-07-11 20:49 phk
3173
3174 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3175
3176 open and close commands
3177
3178 2006-07-11 20:37 phk
3179
3180 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3181
3182 A vcl keyword for loading a new config
3183
3184 2006-07-11 19:29 phk
3185
3186 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3187
3188 Add "cli" to tell varnishd things
3189
3190 2006-07-11 19:16 phk
3191
3192 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3193
3194 If the first char of the serve string is '!', close connection after
3195 sending string.
3196
3197 2006-07-11 19:10 phk
3198
3199 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3200
3201 Add a server facility to act as backend for varnish
3202
3203 2006-07-11 18:21 phk
3204
3205 * trunk/varnish-cache/bin/varnishtester/varnishtester.c:
3206
3207 Minimal ability to start and stop a varnishd
3208
3209 2006-07-11 18:16 phk
3210
3211 * trunk/varnish-cache/bin/varnishd/mgt.h,
3212 trunk/varnish-cache/bin/varnishd/mgt_child.c,
3213 trunk/varnish-cache/bin/varnishd/varnishd.c:
3214
3215 Give 'exit' CLI command some bite. we may want to be more careful
3216 later on.
3217
3218 2006-07-11 17:53 phk
3219
3220 * trunk/varnish-cache/bin/varnishd/varnishd.c:
3221
3222 Unbuffer stdout/stderr
3223
3224 2006-07-11 17:23 phk
3225
3226 * trunk/varnish-cache/bin/Makefile.am,
3227 trunk/varnish-cache/bin/varnishtester,
3228 trunk/varnish-cache/bin/varnishtester/Makefile.am,
3229 trunk/varnish-cache/bin/varnishtester/varnishtester.c,
3230 trunk/varnish-cache/configure.ac:
3231
3232 Add stub varnishtester program
3233
3234 2006-07-11 16:31 phk
3235
3236 * trunk/varnish-cache/bin/varnishd/varnishd.c:
3237
3238 Start the cache process automatically, I've gotten tired of typing
3239 "start" :-)
3240
3241 2006-07-11 16:25 phk
3242
3243 * trunk/varnish-cache/bin/varnishd/varnishd.c:
3244
3245 Allow backend to be specified as "host:port" to -b
3246
3247 2006-07-11 16:17 phk
3248
3249 * trunk/varnish-cache/bin/varnishd/cache_center.c:
3250
3251 add short descriptive comments to each state
3252
3253 2006-07-11 16:10 phk
3254
3255 * trunk/varnish-cache/bin/varnishd/cache.h,
3256 trunk/varnish-cache/bin/varnishd/cache_center.c,
3257 trunk/varnish-cache/bin/varnishd/cache_fetch.c:
3258
3259 Distribute code from FetchSession almost correctly
3260
3261 2006-07-11 16:03 phk
3262
3263 * trunk/varnish-cache/include/vcl_returns.h,
3264 trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
3265 trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
3266 trunk/varnish-cache/lib/libvcl/vcl_token_defs.h:
3267
3268 Add "insert_pass" action in VCL
3269
3270 2006-07-11 15:54 phk
3271
3272 * trunk/varnish-cache/bin/varnishd/cache_center.c:
3273
3274 Make things work again by stuffing the old functions into the new
3275 state engine.
3276
3277 2006-07-11 15:18 phk
3278
3279 * trunk/varnish-cache/bin/varnishd/cache_center.c:
3280
3281 This commit breaks warnish temporarily:
3282
3283 Insert the new master state engine.
3284
3285 A dot(1) graph is embedded in the source code and can be extracted
3286 with:
3287
3288 sed -n '/^DOT/s///p' cache_center.c | dot -Tps > /tmp/_.ps
3289
3290 2006-07-11 13:31 phk
3291
3292 * trunk/varnish-cache/bin/varnishd/cache.h,
3293 trunk/varnish-cache/bin/varnishd/steps.h:
3294
3295 Add enum for major procesing steps
3296
3297 2006-07-11 12:31 phk
3298
3299 * trunk/varnish-cache/bin/varnishd/Makefile.am,
3300 trunk/varnish-cache/bin/varnishd/cache.h,
3301 trunk/varnish-cache/bin/varnishd/cache_center.c,
3302 trunk/varnish-cache/bin/varnishd/cache_pool.c:
3303
3304 Start centralizing the flow of requests through varnish so we get
3305 one source file with the highest level of policy.
3306
3307 2006-07-11 12:30 phk
3308
3309 * trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3310
3311 Make -b and -c less nonsensical when not specified
3312
3313 2006-07-11 12:00 phk
3314
3315 * trunk/varnish-cache/bin/varnishd/varnishd.c:
3316
3317 Pipe requests which come with an Expect header.
3318
3319 XXX: document that
3320 error 417 "expectation failed"
3321 might be a more sensible policy.
3322
3323 2006-07-11 11:41 des
3324
3325 * trunk/varnish-cache/bin/varnishlog/varnishlog.1:
3326
3327 Document -b and -c, and bump date.
3328
3329 2006-07-11 11:36 phk
3330
3331 * trunk/varnish-cache/include/varnishapi.h,
3332 trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3333
3334 Add -b[ackend] and -c[lient] generic options to logtailers
3335
3336 2006-07-11 07:38 phk
3337
3338 * trunk/varnish-cache/bin/varnishd/cache_response.c:
3339
3340 Add 500 messages.
3341
3342 2006-07-11 07:30 phk
3343
3344 * trunk/varnish-cache/bin/varnishd/cache.h,
3345 trunk/varnish-cache/bin/varnishd/cache_fetch.c,
3346 trunk/varnish-cache/bin/varnishd/cache_http.c,
3347 trunk/varnish-cache/bin/varnishd/cache_pass.c,
3348 trunk/varnish-cache/bin/varnishd/cache_pool.c,
3349 trunk/varnish-cache/include/stat_field.h:
3350
3351 Split http_Dissect() into http_DissectRequest() and http_DissectResponse()
3352
3353 2006-07-11 06:30 des
3354
3355 * trunk/varnish-cache/bin/varnishd/varnishd.1:
3356
3357 Add cross-references and a commented-out STANDARDS section.
3358
3359 2006-07-11 06:28 des
3360
3361 * trunk/varnish-cache/include/shmlog_tags.h:
3362
3363 Add a note to update varnishlog(1) whenever this list changes.
3364
3365 2006-07-11 06:27 des
3366
3367 * trunk/varnish-cache/bin/varnishstat/varnishstat.1:
3368
3369 Add cross-references.
3370
3371 2006-07-11 06:26 des
3372
3373 * trunk/varnish-cache/bin/varnishlog/varnishlog.1:
3374
3375 Document the -C, -I, -X, -i, -x options.
3376 Add a list of log entry tags.
3377 Add cross-references to varnishd(1) and varnishstat(1).
3378
3379 2006-07-10 21:54 phk
3380
3381 * trunk/varnish-cache/bin/Makefile.am,
3382 trunk/varnish-cache/bin/varnishtop,
3383 trunk/varnish-cache/bin/varnishtop/Makefile.am,
3384 trunk/varnish-cache/bin/varnishtop/varnishtop.c,
3385 trunk/varnish-cache/configure.ac:
3386
3387 Add varnishtop log-tailer.
3388
3389
3390 Try these:
3391
3392 varnishtop -i url
3393
3394 varhishtop -i header -C -I '^user-agent:'
3395
3396 varhishtop -i header -C -I '^user-agent:' -X MSIE
3397
3398 varhishtop -i header -C -I '^user-agent:.*MSIE'
3399
3400 varhishtop -i header -C -I '^user-agent:.*java'
3401
3402 You can also run them on the logfiles from the live test:
3403
3404 zcat _vlog21.gz | varnishtop -r - -i header ...
3405
3406
3407
3408 2006-07-10 21:49 phk
3409
3410 * trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3411
3412 Fix so that both -I and -X can be specified
3413
3414 2006-07-10 20:49 phk
3415
3416 * trunk/varnish-cache/include/varnishapi.h,
3417 trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3418
3419 Implement -C, -I <regex> and -X <regex> generic options
3420
3421 2006-07-10 20:27 phk
3422
3423 * trunk/varnish-cache/bin/varnishlog/varnishlog.c,
3424 trunk/varnish-cache/include/varnishapi.h,
3425 trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3426
3427 Add tag names array to libvarnishapi, everybody is going to need it.
3428
3429 Implement -i tag[,tag ...] and -x tag[,tag ...] generic arguments.
3430
3431 2006-07-10 19:54 phk
3432
3433 * trunk/varnish-cache/bin/varnishlog/varnishlog.c,
3434 trunk/varnish-cache/bin/varnishstat/varnishstat.c,
3435 trunk/varnish-cache/include/varnishapi.h,
3436 trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3437
3438 Improve libvarnishapi interface to shared memory:
3439
3440 Add function VSL_OpenStats() which directly returns a pointer
3441 to the varnish_stats structure.
3442
3443 Add opaque VSL_data structure as handle to the log-tailer functions.
3444
3445 Add generic argument parsing function for all log-tailers.
3446
3447 Add support for generic "-r <file>" option.
3448
3449 2006-07-10 15:02 phk
3450
3451 * trunk/varnish-cache/bin/varnishd/cache_pool.c,
3452 trunk/varnish-cache/include/stat_field.h:
3453
3454 More statistics about worker threads.
3455
3456 2006-07-10 14:52 phk
3457
3458 * trunk/varnish-cache/bin/varnishd/cache.h,
3459 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
3460 trunk/varnish-cache/bin/varnishd/cache_main.c,
3461 trunk/varnish-cache/bin/varnishd/cache_pool.c,
3462 trunk/varnish-cache/bin/varnishd/heritage.h,
3463 trunk/varnish-cache/bin/varnishd/varnishd.c,
3464 trunk/varnish-cache/bin/varnishlog/varnishlog.c,
3465 trunk/varnish-cache/include/shmlog_tags.h,
3466 trunk/varnish-cache/include/stat_field.h:
3467
3468 Rewrite the worker thread pool code.
3469
3470 Assign prefix WRK to the worker pool.
3471
3472 Introduce a struct workreq since the prefetcher (when it happens) will
3473 not have a session to pass in.
3474
3475 The worker threads get a cond_var each and are hung from a list in
3476 most recently used order.
3477
3478 When a request is queued and the worker thread list is not empty,
3479 tickle the cond_var of the first one.
3480
3481 If no threads were availble the max number of threads is not reached,
3482 try to start another worker thread.
3483
3484 If the max was reached or the start filed (likely due to out of memory)
3485 indicate overflow and let the existing pool deal with it.
3486
3487 Create only the minimum requested number of threads initially.
3488
3489 Allow specification of the timeout before a dynamic worker thread commits
3490 suicide to be specified with -w.
3491
3492 Default parameters are -w1,UINT_MAX,10 {min, max, timeout}
3493
3494 2006-07-10 13:59 phk
3495
3496 * trunk/varnish-cache/bin/varnishd/mgt_child.c,
3497 trunk/varnish-cache/bin/varnishd/varnishd.c:
3498
3499 use explicit eventbase.
3500
3501 2006-07-10 13:58 phk
3502
3503 * trunk/varnish-cache/contrib/libevent/event.c:
3504
3505 Don't ever set current_base in our version of libevent in order to flush
3506 out any bugs it might cause.
3507
3508 2006-07-10 13:48 phk
3509
3510 * trunk/varnish-cache/bin/varnishd/shmlog.c:
3511
3512 Dump errno and strerror in assert
3513
3514 2006-07-10 12:00 phk
3515
3516 * trunk/varnish-cache/bin/varnishd/cache.h,
3517 trunk/varnish-cache/bin/varnishd/cache_backend.c:
3518
3519 Rework the "connect to backend logic".
3520
3521 Avoid calling getaddrinfo() for every connect by catching the result
3522 in the backend structure.
3523
3524 Minimize number of socket/connect calls by caching the last good
3525 address in the backend structure.
3526
3527 If all addresses in the cached getaddrinfo() result fails, call
3528 getaddrinfo() again (to catch DNS changes) and try the list again.
3529
3530 2006-07-10 11:24 phk
3531
3532 * trunk/varnish-cache/bin/varnishd/cache.h,
3533 trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
3534 trunk/varnish-cache/bin/varnishd/cache_backend.c,
3535 trunk/varnish-cache/bin/varnishd/common.h,
3536 trunk/varnish-cache/bin/varnishd/tcp.c:
3537
3538 Move sockaddr->ascii conversion to tcp.c
3539
3540 shmlog both ends of backend connections.
3541
3542 2006-07-10 10:56 phk
3543
3544 * trunk/varnish-cache/bin/varnishd/Makefile.am,
3545 trunk/varnish-cache/bin/varnishd/cache.h,
3546 trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
3547 trunk/varnish-cache/bin/varnishd/cache_shmlog.h,
3548 trunk/varnish-cache/bin/varnishd/common.h,
3549 trunk/varnish-cache/bin/varnishd/mgt.h,
3550 trunk/varnish-cache/bin/varnishd/shmlog.c:
3551
3552 Be more consistent.
3553
3554 cache_shmlog.c contains stuff for both cache and mgt, so remove the
3555 cache_ prefix.
3556
3557 Rename cache_shmlog.h to common.h and put joint stuff there.
3558
3559 2006-07-10 10:31 phk
3560
3561 * trunk/varnish-cache/bin/varnishd/cache_pass.c,
3562 trunk/varnish-cache/bin/varnishd/cache_pipe.c:
3563
3564 put backend session linkage in shmemlog for pipe and pass
3565
3566 2006-07-10 10:06 phk
3567
3568 * trunk/varnish-cache/bin/varnishd/cache_http.c:
3569
3570 Polish HTTP reception a little bit
3571
3572 2006-07-10 10:05 phk
3573
3574 * trunk/varnish-cache/bin/varnishd/heritage.h,
3575 trunk/varnish-cache/bin/varnishd/varnishd.c:
3576
3577 Drop the max length of first line, it's too expensive to enforce.
3578
3579 2006-07-10 09:52 phk
3580
3581 * trunk/varnish-cache/lib/libvarnishapi/shmlog.c:
3582
3583 Fix cosmetic warning
3584
3585 2006-07-10 09:51 phk
3586
3587 * trunk/varnish-cache/bin/varnishstat/varnishstat.c:
3588
3589 Silence cosmetic warning.