| 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. |
| 3590 | | |
| 3591 | | 2006-07-10 09:48 phk |
| 3592 | | |
| 3593 | | * trunk/varnish-cache/lib/libvarnish/time.c, |
| 3594 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 3595 | | |
| 3596 | | Fix cosmetic warnings |
| 3597 | | |
| 3598 | | 2006-07-10 09:47 phk |
| 3599 | | |
| 3600 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3601 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 3602 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 3603 | | trunk/varnish-cache/bin/varnishd/cache_ban.c, |
| 3604 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 3605 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 3606 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3607 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 3608 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 3609 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 3610 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 3611 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.h, |
| 3612 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 3613 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 3614 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 3615 | | trunk/varnish-cache/bin/varnishd/mgt_child.c, |
| 3616 | | trunk/varnish-cache/bin/varnishd/tcp.c, |
| 3617 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 3618 | | |
| 3619 | | Fix a bunch warnings, all cosmetic. |
| 3620 | | |
| 3621 | | I'm using __unused for now, if we need to use something different |
| 3622 | | we can do a find/replace. |
| 3623 | | |
| 3624 | | 2006-07-10 09:28 phk |
| 3625 | | |
| 3626 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 3627 | | |
| 3628 | | Silence some warnings |
| 3629 | | |
| 3630 | | 2006-07-10 09:07 phk |
| 3631 | | |
| 3632 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3633 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 3634 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 3635 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3636 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 3637 | | trunk/varnish-cache/include/stat_field.h: |
| 3638 | | |
| 3639 | | Allocate struct http as part of the session allocation. |
| 3640 | | |
| 3641 | | Remove http_New() and http_Delete() |
| 3642 | | |
| 3643 | | 2006-07-10 08:41 phk |
| 3644 | | |
| 3645 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3646 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 3647 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3648 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 3649 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 3650 | | |
| 3651 | | Add heritage.mem_http_headers which is the maximum number of headers |
| 3652 | | we recognize. |
| 3653 | | |
| 3654 | | Add http_Init() which initializes struct http given sufficient space. |
| 3655 | | |
| 3656 | | Respect heritage mem_* values in http_New() (while we still have it) |
| 3657 | | |
| 3658 | | Allocate backend connections (vbe_conn) with super allocation with |
| 3659 | | space for http and workspace. |
| 3660 | | |
| 3661 | | 2006-07-10 08:10 phk |
| 3662 | | |
| 3663 | | * trunk/varnish-cache/bin/varnishd/heritage.h, |
| 3664 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 3665 | | |
| 3666 | | Put three memory allocation hints into heritage: |
| 3667 | | |
| 3668 | | mem_http_1_line (512) |
| 3669 | | Maximum length of the reqeust/response line of a HTTP message |
| 3670 | | There is no point in filling the entire buffer with junk if |
| 3671 | | we get a preposterously long first line. |
| 3672 | | mem_http_header (4096) |
| 3673 | | Maximum length of entire HTTP header. If we overflow this |
| 3674 | | we return 400. |
| 3675 | | mem_workspace (currently 0) |
| 3676 | | In the future this will be the space we use for constructing |
| 3677 | | headers to send and edits done from VCL. |
| 3678 | | |
| 3679 | | 2006-07-10 07:54 phk |
| 3680 | | |
| 3681 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3682 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 3683 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 3684 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 3685 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c: |
| 3686 | | |
| 3687 | | Take the vbe_conn (backend connection) structure out of the closet. |
| 3688 | | |
| 3689 | | 2006-07-10 07:07 phk |
| 3690 | | |
| 3691 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 3692 | | |
| 3693 | | Turn a comment into english |
| 3694 | | |
| 3695 | | 2006-07-10 07:04 phk |
| 3696 | | |
| 3697 | | * trunk/varnish-cache/bin/varnishd/cache.h: |
| 3698 | | |
| 3699 | | More sensible order of pointers |
| 3700 | | |
| 3701 | | 2006-07-09 21:21 phk |
| 3702 | | |
| 3703 | | * trunk/varnish-cache/include/http_headers.h: |
| 3704 | | |
| 3705 | | Don't pass cache-control through. |
| 3706 | | |
| 3707 | | 2006-07-09 21:01 phk |
| 3708 | | |
| 3709 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 3710 | | |
| 3711 | | Add a -h opt which modifies -o to remove "trivial" entries. |
| 3712 | | |
| 3713 | | Trivial are |
| 3714 | | {GET,HEAD} which gets a hit and returns 200 |
| 3715 | | {GET,HEAD} which gets a miss, fetches, inserts and returns 200 |
| 3716 | | |
| 3717 | | 2006-07-09 09:16 des |
| 3718 | | |
| 3719 | | * trunk/varnish-cache/configure.ac: |
| 3720 | | |
| 3721 | | Don't use braces where they aren't needed. |
| 3722 | | Let automake know about config.h. |
| 3723 | | Bump version number to mark that we have passed the first live test. |
| 3724 | | |
| 3725 | | 2006-07-09 07:13 des |
| 3726 | | |
| 3727 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 3728 | | trunk/varnish-cache/include/Makefile.am, |
| 3729 | | trunk/varnish-cache/lib/libvcl/Makefile.am: |
| 3730 | | |
| 3731 | | List header files so they are included in the distribution tarball. |
| 3732 | | |
| 3733 | | 2006-07-09 06:35 des |
| 3734 | | |
| 3735 | | * trunk/varnish-cache/configure.ac: |
| 3736 | | |
| 3737 | | Use the modern version of AM_INIT_AUTOMAKE, allowing automake to deduce the |
| 3738 | | correct distribution name. |
| 3739 | | |
| 3740 | | 2006-07-08 20:29 phk |
| 3741 | | |
| 3742 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3743 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3744 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c: |
| 3745 | | |
| 3746 | | A few edits for FlexeLint |
| 3747 | | |
| 3748 | | 2006-07-08 20:19 phk |
| 3749 | | |
| 3750 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3751 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 3752 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 3753 | | trunk/varnish-cache/bin/varnishd/cache_ban.c, |
| 3754 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 3755 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 3756 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 3757 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3758 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 3759 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 3760 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 3761 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 3762 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 3763 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 3764 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 3765 | | trunk/varnish-cache/bin/varnishd/hash_classic.c, |
| 3766 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 3767 | | trunk/varnish-cache/bin/varnishd/rfc2616.c, |
| 3768 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 3769 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 3770 | | |
| 3771 | | Sanitize #includes a bit in the cache process by moving fundamental |
| 3772 | | #includes to cache.h |
| 3773 | | |
| 3774 | | 2006-07-08 20:18 phk |
| 3775 | | |
| 3776 | | * trunk/varnish-cache/bin/varnishd/flint.lnt: |
| 3777 | | |
| 3778 | | Silence a bogus warning |
| 3779 | | |
| 3780 | | 2006-07-08 19:54 phk |
| 3781 | | |
| 3782 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3783 | | trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 3784 | | |
| 3785 | | Move struct http into cache.h |
| 3786 | | |
| 3787 | | The original reasoning for having it private to cache_http.c was |
| 3788 | | to avoid pollution with event.h related structures but since that |
| 3789 | | pollution is happening other ways anyway, the cost is too high. |
| 3790 | | |
| 3791 | | Include pthread.h, sys/time.h, and event.h from cache.h |
| 3792 | | |
| 3793 | | 2006-07-08 19:46 des |
| 3794 | | |
| 3795 | | * trunk/varnish-cache/configure.ac: |
| 3796 | | |
| 3797 | | Add --enable-debugging-symbols which enables debugging sysmbols and |
| 3798 | | disables |
| 3799 | | inlining and builtins. |
| 3800 | | |
| 3801 | | 2006-07-08 19:27 des |
| 3802 | | |
| 3803 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 3804 | | |
| 3805 | | Fix "set backend.port". |
| 3806 | | |
| 3807 | | 2006-07-08 19:25 des |
| 3808 | | |
| 3809 | | * trunk/varnish-cache/autogen.des: |
| 3810 | | |
| 3811 | | My version. |
| 3812 | | |
| 3813 | | 2006-07-08 19:25 des |
| 3814 | | |
| 3815 | | * trunk/varnish-cache/autogen.phk: |
| 3816 | | |
| 3817 | | Expand keywords. |
| 3818 | | |
| 3819 | | 2006-07-07 08:40 phk |
| 3820 | | |
| 3821 | | * trunk/varnish-cache/bin/varnishd/cache_pipe.c: |
| 3822 | | |
| 3823 | | Close gracefully in pipe mode |
| 3824 | | |
| 3825 | | 2006-07-07 07:48 phk |
| 3826 | | |
| 3827 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 3828 | | |
| 3829 | | Set SO_LINGER to zero |
| 3830 | | |
| 3831 | | 2006-07-07 07:25 phk |
| 3832 | | |
| 3833 | | * trunk/varnish-cache/bin/varnishd/tcp.c: |
| 3834 | | |
| 3835 | | Tell why bind(2) fails |
| 3836 | | |
| 3837 | | 2006-07-07 07:22 phk |
| 3838 | | |
| 3839 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 3840 | | |
| 3841 | | Pipe anything different from HEAD & GET |
| 3842 | | |
| 3843 | | 2006-07-07 07:22 phk |
| 3844 | | |
| 3845 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 3846 | | |
| 3847 | | Don't filter headers in Pipe mode |
| 3848 | | |
| 3849 | | 2006-07-07 07:22 phk |
| 3850 | | |
| 3851 | | * trunk/varnish-cache/bin/varnishd/cache_pipe.c: |
| 3852 | | |
| 3853 | | Fix pipe mode |
| 3854 | | |
| 3855 | | 2006-07-07 07:22 phk |
| 3856 | | |
| 3857 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 3858 | | |
| 3859 | | Remove debugging printf |
| 3860 | | |
| 3861 | | 2006-07-07 07:15 phk |
| 3862 | | |
| 3863 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3864 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 3865 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 3866 | | |
| 3867 | | Time idle TCP connections out after 30 seconds |
| 3868 | | |
| 3869 | | 2006-07-07 06:29 phk |
| 3870 | | |
| 3871 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3872 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3873 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 3874 | | |
| 3875 | | Dump our buffer as Debug if we have HTTP header trouble. |
| 3876 | | |
| 3877 | | Issue 400 for HTTP header buffer overflow. |
| 3878 | | |
| 3879 | | 2006-07-07 06:27 phk |
| 3880 | | |
| 3881 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 3882 | | |
| 3883 | | Strvis(3) debug data. |
| 3884 | | |
| 3885 | | 2006-07-06 22:33 phk |
| 3886 | | |
| 3887 | | * trunk/varnish-cache/include/http_headers.h: |
| 3888 | | |
| 3889 | | Filter out Content-Range headers. |
| 3890 | | |
| 3891 | | 2006-07-06 21:57 phk |
| 3892 | | |
| 3893 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 3894 | | |
| 3895 | | Always log the numeric code as "Status" |
| 3896 | | |
| 3897 | | 2006-07-06 21:57 phk |
| 3898 | | |
| 3899 | | * trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 3900 | | |
| 3901 | | Log the found objects XID when we have a hash-hit. |
| 3902 | | |
| 3903 | | 2006-07-06 21:56 phk |
| 3904 | | |
| 3905 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 3906 | | |
| 3907 | | Add shmem tag for Hits |
| 3908 | | |
| 3909 | | 2006-07-06 21:47 phk |
| 3910 | | |
| 3911 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 3912 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 3913 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 3914 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 3915 | | trunk/varnish-cache/bin/varnishd/cache_response.c: |
| 3916 | | |
| 3917 | | Refuse all requests without a protocol field with a 400 |
| 3918 | | |
| 3919 | | Implement a function to say "400" with. |
| 3920 | | |
| 3921 | | 2006-07-06 21:04 phk |
| 3922 | | |
| 3923 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 3924 | | trunk/varnish-cache/bin/varnishd/cache_response.c: |
| 3925 | | |
| 3926 | | Add cache_response for yelling at clients |
| 3927 | | |
| 3928 | | 2006-07-06 21:03 phk |
| 3929 | | |
| 3930 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 3931 | | |
| 3932 | | Also flush ordered after the long timeout. |
| 3933 | | |
| 3934 | | 2006-07-06 21:00 phk |
| 3935 | | |
| 3936 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 3937 | | |
| 3938 | | Strengthen HTTP parsing |
| 3939 | | |
| 3940 | | 2006-07-06 20:29 phk |
| 3941 | | |
| 3942 | | * trunk/varnish-cache/bin/varnishd/cache_expire.c: |
| 3943 | | |
| 3944 | | Make sure the grim reaper doesn't touch busy objects either. |
| 3945 | | |
| 3946 | | 2006-07-06 20:26 phk |
| 3947 | | |
| 3948 | | * trunk/varnish-cache/bin/varnishd/cache_expire.c: |
| 3949 | | |
| 3950 | | The grim reaper needs to wait for objects refcount to drop to zero. |
| 3951 | | |
| 3952 | | 2006-07-06 20:23 phk |
| 3953 | | |
| 3954 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 3955 | | |
| 3956 | | Improvements to flush things at timeout and at the end etc. |
| 3957 | | |
| 3958 | | 2006-07-06 13:40 phk |
| 3959 | | |
| 3960 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 3961 | | |
| 3962 | | Silence typical broken client connection messages and move the |
| 3963 | | interesting ones to shmem |
| 3964 | | |
| 3965 | | 2006-07-06 13:33 phk |
| 3966 | | |
| 3967 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c: |
| 3968 | | |
| 3969 | | Fix braino in Pass handling |
| 3970 | | |
| 3971 | | 2006-07-06 13:27 phk |
| 3972 | | |
| 3973 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 3974 | | |
| 3975 | | Skip space before request/response |
| 3976 | | |
| 3977 | | 2006-07-06 13:02 des |
| 3978 | | |
| 3979 | | * trunk/varnish-cache/bin/varnishstat/Makefile.am, |
| 3980 | | trunk/varnish-cache/bin/varnishstat/varnishstat.1: |
| 3981 | | |
| 3982 | | Add a rudimentary man page. |
| 3983 | | |
| 3984 | | 2006-07-06 11:18 phk |
| 3985 | | |
| 3986 | | * trunk/varnish-cache/autogen.phk: |
| 3987 | | |
| 3988 | | My version. |
| 3989 | | |
| 3990 | | 2006-07-06 10:18 phk |
| 3991 | | |
| 3992 | | * trunk/varnish-cache/bin/varnishstat/varnishstat.c: |
| 3993 | | |
| 3994 | | Add exponential hitrate displays (with -c) |
| 3995 | | |
| 3996 | | 2006-07-06 09:31 des |
| 3997 | | |
| 3998 | | * trunk/varnish-cache/bin/varnishlog/Makefile.am, |
| 3999 | | trunk/varnish-cache/bin/varnishlog/varnishlog.1: |
| 4000 | | |
| 4001 | | Add a rudimentary man page. |
| 4002 | | |
| 4003 | | 2006-07-06 09:31 des |
| 4004 | | |
| 4005 | | * trunk/varnish-cache/bin/varnishd/varnishd.1: |
| 4006 | | |
| 4007 | | Expand keywords |
| 4008 | | |
| 4009 | | 2006-07-06 09:13 des |
| 4010 | | |
| 4011 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 4012 | | trunk/varnish-cache/bin/varnishd/varnishd.1: |
| 4013 | | |
| 4014 | | Add a rudimentary man page. |
| 4015 | | |
| 4016 | | 2006-07-06 09:08 phk |
| 4017 | | |
| 4018 | | * trunk/varnish-cache/bin/varnishd/tcp.c: |
| 4019 | | |
| 4020 | | Only complain if accept_filters fail |
| 4021 | | |
| 4022 | | 2006-07-06 09:06 phk |
| 4023 | | |
| 4024 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 4025 | | |
| 4026 | | Remove debugging code. |
| 4027 | | |
| 4028 | | 2006-07-06 09:00 phk |
| 4029 | | |
| 4030 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 4031 | | |
| 4032 | | Add -r file and -w file options. |
| 4033 | | |
| 4034 | | These read/write from/to a binary file. |
| 4035 | | |
| 4036 | | 2006-07-06 08:45 phk |
| 4037 | | |
| 4038 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 4039 | | |
| 4040 | | Increas shmem size to 8M |
| 4041 | | |
| 4042 | | 2006-07-06 08:45 phk |
| 4043 | | |
| 4044 | | * trunk/varnish-cache/bin/varnishd/tcp.c: |
| 4045 | | |
| 4046 | | Add accept filters |
| 4047 | | |
| 4048 | | 2006-07-06 08:43 des |
| 4049 | | |
| 4050 | | * trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 4051 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 4052 | | trunk/varnish-cache/lib/libvarnishapi/shmlog.c: |
| 4053 | | |
| 4054 | | Portability: don't use non-portable mmap(2) flags. |
| 4055 | | |
| 4056 | | 2006-07-06 08:43 des |
| 4057 | | |
| 4058 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4059 | | |
| 4060 | | Portability: Linux does not have SO_NOSIGPIPE. |
| 4061 | | |
| 4062 | | 2006-07-06 08:41 des |
| 4063 | | |
| 4064 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 4065 | | trunk/varnish-cache/bin/varnishd/mgt_child.c, |
| 4066 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 4067 | | trunk/varnish-cache/lib/libvarnish/argv.c: |
| 4068 | | |
| 4069 | | Portability: cast unused parameters to void instead of marking them |
| 4070 | | __unused. |
| 4071 | | |
| 4072 | | 2006-07-06 08:32 phk |
| 4073 | | |
| 4074 | | * trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4075 | | |
| 4076 | | 404 handling |
| 4077 | | |
| 4078 | | 2006-07-06 08:07 des |
| 4079 | | |
| 4080 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c: |
| 4081 | | |
| 4082 | | Use <sys/ioctl.h> instead of <sys/filio.h> to get both the prototype for |
| 4083 | | ioctl(2) and the definition of FIONREAD. |
| 4084 | | |
| 4085 | | 2006-07-05 14:40 phk |
| 4086 | | |
| 4087 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 4088 | | |
| 4089 | | Fix off by one |
| 4090 | | |
| 4091 | | 2006-07-05 14:40 phk |
| 4092 | | |
| 4093 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4094 | | |
| 4095 | | printf format |
| 4096 | | |
| 4097 | | 2006-07-05 13:54 phk |
| 4098 | | |
| 4099 | | * trunk/varnish-cache/bin/varnishstat/varnishstat.c: |
| 4100 | | |
| 4101 | | Calculate rate as signed. |
| 4102 | | |
| 4103 | | 2006-07-05 13:44 phk |
| 4104 | | |
| 4105 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4106 | | |
| 4107 | | Assert non-null first |
| 4108 | | |
| 4109 | | 2006-07-05 13:19 phk |
| 4110 | | |
| 4111 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4112 | | |
| 4113 | | Send "Connection: close" if not HTTP/1.1 |
| 4114 | | |
| 4115 | | 2006-07-05 13:13 phk |
| 4116 | | |
| 4117 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4118 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 4119 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4120 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4121 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 4122 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 4123 | | trunk/varnish-cache/include/stat_field.h: |
| 4124 | | |
| 4125 | | Add more stats |
| 4126 | | |
| 4127 | | 2006-07-05 13:09 phk |
| 4128 | | |
| 4129 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4130 | | |
| 4131 | | Some asserts to guard against trouble. |
| 4132 | | |
| 4133 | | 2006-07-05 12:17 phk |
| 4134 | | |
| 4135 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 4136 | | |
| 4137 | | Another pipeline fix: don't clobber a pipelined partial header |
| 4138 | | |
| 4139 | | 2006-07-05 11:42 phk |
| 4140 | | |
| 4141 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 4142 | | |
| 4143 | | Don't lead http header |
| 4144 | | |
| 4145 | | 2006-07-05 11:09 phk |
| 4146 | | |
| 4147 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4148 | | |
| 4149 | | Free the session memory correctly |
| 4150 | | |
| 4151 | | 2006-07-05 10:59 phk |
| 4152 | | |
| 4153 | | * trunk/varnish-cache/bin/varnishd/cache_hash.c: |
| 4154 | | |
| 4155 | | Free the right header. |
| 4156 | | |
| 4157 | | 2006-07-05 10:55 phk |
| 4158 | | |
| 4159 | | * trunk/varnish-cache/bin/varnishd/cache_hash.c: |
| 4160 | | |
| 4161 | | Don't leak objects headers |
| 4162 | | |
| 4163 | | 2006-07-05 10:01 phk |
| 4164 | | |
| 4165 | | * trunk/varnish-cache/include/http_headers.h: |
| 4166 | | |
| 4167 | | Suppress Accept-Ranges for now. |
| 4168 | | |
| 4169 | | 2006-07-05 09:59 phk |
| 4170 | | |
| 4171 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4172 | | |
| 4173 | | Create an X-Varnish header and put the XID there. |
| 4174 | | |
| 4175 | | 2006-07-05 09:56 phk |
| 4176 | | |
| 4177 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4178 | | trunk/varnish-cache/bin/varnishd/stevedore.h, |
| 4179 | | trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4180 | | |
| 4181 | | Send headers with sendfile |
| 4182 | | |
| 4183 | | 2006-07-05 09:44 phk |
| 4184 | | |
| 4185 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4186 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4187 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4188 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4189 | | trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4190 | | |
| 4191 | | Add Age and Via header to responses. |
| 4192 | | |
| 4193 | | Change arguments to vca_write_obj() (It should really be |
| 4194 | | "send_repsonse()" ?) |
| 4195 | | Store received age and time entered into cache in object. |
| 4196 | | Generate Age: and Via: headers as part of response. |
| 4197 | | |
| 4198 | | 2006-07-05 09:32 phk |
| 4199 | | |
| 4200 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4201 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4202 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 4203 | | |
| 4204 | | Unify logging in the response handling |
| 4205 | | |
| 4206 | | 2006-07-05 09:11 phk |
| 4207 | | |
| 4208 | | * trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 4209 | | |
| 4210 | | log responsecode and length |
| 4211 | | |
| 4212 | | 2006-07-05 09:10 phk |
| 4213 | | |
| 4214 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4215 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4216 | | trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4217 | | |
| 4218 | | Log reponse code and object length |
| 4219 | | |
| 4220 | | 2006-07-05 09:08 phk |
| 4221 | | |
| 4222 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 4223 | | |
| 4224 | | Add Length tag |
| 4225 | | |
| 4226 | | 2006-07-05 08:08 phk |
| 4227 | | |
| 4228 | | * trunk/varnish-cache/bin/varnishstat/varnishstat.c: |
| 4229 | | |
| 4230 | | Show also rate in curses display |
| 4231 | | |
| 4232 | | 2006-07-05 07:45 phk |
| 4233 | | |
| 4234 | | * trunk/varnish-cache/bin/varnishd/cache_shmlog.c: |
| 4235 | | |
| 4236 | | Be more conservative about wraparound and take them up front in all cases. |
| 4237 | | |
| 4238 | | 2006-07-04 22:08 phk |
| 4239 | | |
| 4240 | | * trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4241 | | |
| 4242 | | Implement our TTL calculation. |
| 4243 | | |
| 4244 | | A first quick check against the weird timestamps from the VG frontend |
| 4245 | | squids indicates sensible behaviour. |
| 4246 | | |
| 4247 | | 2006-07-04 21:34 phk |
| 4248 | | |
| 4249 | | * trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4250 | | |
| 4251 | | Long comment describing how TTL calculation will be done. |
| 4252 | | |
| 4253 | | Review encouraged. |
| 4254 | | |
| 4255 | | 2006-07-04 20:00 phk |
| 4256 | | |
| 4257 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4258 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4259 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4260 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 4261 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 4262 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 4263 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4264 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c: |
| 4265 | | |
| 4266 | | Fix HEAD requests: |
| 4267 | | |
| 4268 | | Make modes to http_BuildSbuf descriptive enums. |
| 4269 | | Send GET to backend also for HEAD requests. |
| 4270 | | Don't return body for HEAD requests. |
| 4271 | | |
| 4272 | | 2006-07-04 19:36 phk |
| 4273 | | |
| 4274 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 4275 | | |
| 4276 | | Fix pipelining. |
| 4277 | | |
| 4278 | | A braino in http_Dissect() resulted in an off-by-one error |
| 4279 | | (protected with assert now) |
| 4280 | | |
| 4281 | | Move any remaning bytes in buffer to front and check for |
| 4282 | | a complete header before arming the eventloop on the |
| 4283 | | session. |
| 4284 | | |
| 4285 | | 2006-07-04 14:45 phk |
| 4286 | | |
| 4287 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 4288 | | |
| 4289 | | Make room for protective terminating NUL |
| 4290 | | |
| 4291 | | 2006-07-04 14:19 phk |
| 4292 | | |
| 4293 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c: |
| 4294 | | |
| 4295 | | retry backend open, log diagnostics |
| 4296 | | |
| 4297 | | 2006-07-04 14:18 phk |
| 4298 | | |
| 4299 | | * trunk/varnish-cache/bin/varnishd/cache_main.c: |
| 4300 | | |
| 4301 | | load VCL earlier |
| 4302 | | |
| 4303 | | 2006-07-04 14:18 phk |
| 4304 | | |
| 4305 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4306 | | |
| 4307 | | Lock with a mutex |
| 4308 | | |
| 4309 | | 2006-07-04 13:45 phk |
| 4310 | | |
| 4311 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 4312 | | |
| 4313 | | Shorter sleeps: 1s -> 50msec |
| 4314 | | |
| 4315 | | 2006-07-04 13:44 phk |
| 4316 | | |
| 4317 | | * trunk/varnish-cache/bin/varnishd/cache_shmlog.c: |
| 4318 | | |
| 4319 | | Fix off by one error during wraparound. |
| 4320 | | |
| 4321 | | 2006-07-04 09:28 phk |
| 4322 | | |
| 4323 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4324 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 4325 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 4326 | | |
| 4327 | | Close non HTTP/1.1 request connections |
| 4328 | | |
| 4329 | | 2006-07-04 09:21 phk |
| 4330 | | |
| 4331 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 4332 | | |
| 4333 | | Add missing '%' |
| 4334 | | |
| 4335 | | 2006-07-03 19:45 phk |
| 4336 | | |
| 4337 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4338 | | |
| 4339 | | My workaround for the missing OFF_T_MAX definition was not safe, |
| 4340 | | use a hardcoded "1<<30" which is. |
| 4341 | | |
| 4342 | | 2006-07-03 19:35 phk |
| 4343 | | |
| 4344 | | * trunk/varnish-cache/contrib/libevent/event.c: |
| 4345 | | |
| 4346 | | I have grumbled about the evilness of "current_base" before, and this just |
| 4347 | | proves the point: If two threads call event_init() at the same time, |
| 4348 | | they will both stomp on the same memory via current_base, and in all |
| 4349 | | likelyhood, neither of them will manage to get the job done properly. |
| 4350 | | |
| 4351 | | Instead work on a local variable and don't assign to current_base |
| 4352 | | until the setup is complete. |
| 4353 | | |
| 4354 | | This should be submitted to Niels Provos |
| 4355 | | |
| 4356 | | 2006-07-03 18:35 phk |
| 4357 | | |
| 4358 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4359 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4360 | | |
| 4361 | | Handle IPv6 address -> string conversion too |
| 4362 | | |
| 4363 | | 2006-07-03 18:03 phk |
| 4364 | | |
| 4365 | | * trunk/varnish-cache/bin/varnishd/cache_expire.c: |
| 4366 | | |
| 4367 | | Close race condition |
| 4368 | | |
| 4369 | | 2006-07-03 17:59 phk |
| 4370 | | |
| 4371 | | * trunk/varnish-cache/bin/varnishd/hash_classic.c: |
| 4372 | | |
| 4373 | | Better arg checking |
| 4374 | | |
| 4375 | | 2006-07-03 15:01 phk |
| 4376 | | |
| 4377 | | * trunk/varnish-cache/lib/libvarnish/binary_heap.c: |
| 4378 | | |
| 4379 | | more asserts |
| 4380 | | |
| 4381 | | 2006-07-03 14:39 phk |
| 4382 | | |
| 4383 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4384 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4385 | | |
| 4386 | | avoid const poison |
| 4387 | | |
| 4388 | | 2006-07-03 14:39 phk |
| 4389 | | |
| 4390 | | * trunk/varnish-cache/bin/varnishd/cache_ban.c: |
| 4391 | | |
| 4392 | | Include pthread.h |
| 4393 | | |
| 4394 | | 2006-07-03 14:37 phk |
| 4395 | | |
| 4396 | | * trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 4397 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 4398 | | |
| 4399 | | s/unsigned/size_t/ |
| 4400 | | |
| 4401 | | 2006-07-03 14:36 phk |
| 4402 | | |
| 4403 | | * trunk/varnish-cache/bin/varnishd/hash_simple_list.c: |
| 4404 | | |
| 4405 | | s/init/start/ |
| 4406 | | |
| 4407 | | 2006-07-03 12:41 phk |
| 4408 | | |
| 4409 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 4410 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 4411 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4412 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4413 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4414 | | trunk/varnish-cache/bin/varnishd/hash_classic.c, |
| 4415 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 4416 | | trunk/varnish-cache/bin/varnishd/hash_slinger.h, |
| 4417 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 4418 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 4419 | | trunk/varnish-cache/bin/varnishd/rfc2616.c, |
| 4420 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 4421 | | |
| 4422 | | Add another hash-method with better real-world survival chances: A classic |
| 4423 | | bucketed hash table of lists. Hash is MD5. Number of buckets and number |
| 4424 | | of mutexes can be configured at command line. |
| 4425 | | |
| 4426 | | 2006-07-03 08:30 des |
| 4427 | | |
| 4428 | | * trunk/varnish-cache/configure.ac: |
| 4429 | | |
| 4430 | | Replace --enable-wall and --enable-pedantic with |
| 4431 | | --enable-developer-warnings, |
| 4432 | | which is roughly equivalent to FreeBSD's WARNS level 5 or 6. |
| 4433 | | |
| 4434 | | 2006-07-01 05:44 phk |
| 4435 | | |
| 4436 | | * trunk/varnish-cache/include/http_headers.h: |
| 4437 | | |
| 4438 | | Mark more headers as not end-to-end |
| 4439 | | |
| 4440 | | 2006-06-30 20:22 phk |
| 4441 | | |
| 4442 | | * trunk/varnish-cache/lib/libvarnishapi/shmlog.c: |
| 4443 | | |
| 4444 | | Forgot to add shmlog.c (reminded by des@) |
| 4445 | | |
| 4446 | | 2006-06-30 20:21 phk |
| 4447 | | |
| 4448 | | * trunk/varnish-cache/include/queue.h: |
| 4449 | | |
| 4450 | | Add TAILQ_FOREACH_SAFE() |
| 4451 | | |
| 4452 | | 2006-06-30 20:17 phk |
| 4453 | | |
| 4454 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4455 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4456 | | trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4457 | | |
| 4458 | | move all policy to rfc2616.c |
| 4459 | | |
| 4460 | | 2006-06-30 13:44 des |
| 4461 | | |
| 4462 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4463 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4464 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4465 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4466 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 4467 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 4468 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 4469 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 4470 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 4471 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 4472 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c, |
| 4473 | | trunk/varnish-cache/include/stats.h: |
| 4474 | | |
| 4475 | | Consistently use our own copy of queue.h. |
| 4476 | | |
| 4477 | | 2006-06-30 11:20 phk |
| 4478 | | |
| 4479 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 4480 | | |
| 4481 | | Fix object length double accounting in chunked fetch |
| 4482 | | |
| 4483 | | 2006-06-30 09:14 phk |
| 4484 | | |
| 4485 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 4486 | | |
| 4487 | | Delete compiled VCL file after we tried to load it. |
| 4488 | | |
| 4489 | | 2006-06-29 19:19 phk |
| 4490 | | |
| 4491 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4492 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 4493 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4494 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 4495 | | |
| 4496 | | Log objects banned to shmlog |
| 4497 | | |
| 4498 | | 2006-06-29 19:06 phk |
| 4499 | | |
| 4500 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4501 | | trunk/varnish-cache/bin/varnishd/cache_expire.c: |
| 4502 | | |
| 4503 | | Track objects heap-position |
| 4504 | | |
| 4505 | | 2006-06-29 17:09 phk |
| 4506 | | |
| 4507 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 4508 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 4509 | | trunk/varnish-cache/bin/varnishd/cache_ban.c, |
| 4510 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4511 | | trunk/varnish-cache/bin/varnishd/cache_main.c: |
| 4512 | | |
| 4513 | | Add the ability to instantly ban/purge all cached objects matching |
| 4514 | | a given regexp. |
| 4515 | | |
| 4516 | | 2006-06-29 15:14 phk |
| 4517 | | |
| 4518 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 4519 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 4520 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c, |
| 4521 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 4522 | | |
| 4523 | | Improve shm-logging of VCL activity |
| 4524 | | |
| 4525 | | 2006-06-29 14:37 phk |
| 4526 | | |
| 4527 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4528 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 4529 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4530 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 4531 | | |
| 4532 | | Tag objects with their origin session xid and log it when we clean up. |
| 4533 | | |
| 4534 | | 2006-06-29 13:04 phk |
| 4535 | | |
| 4536 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4537 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 4538 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4539 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 4540 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 4541 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 4542 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4543 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 4544 | | |
| 4545 | | Add a unique transaction-ID to each request, and register it in the |
| 4546 | | shmlog so we can match backend transactions with client transactions. |
| 4547 | | |
| 4548 | | 2006-06-28 21:38 phk |
| 4549 | | |
| 4550 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 4551 | | |
| 4552 | | Convince flexelint that we know what we do with some asserts |
| 4553 | | |
| 4554 | | 2006-06-28 21:33 phk |
| 4555 | | |
| 4556 | | * trunk/varnish-cache/bin/varnishd/cache_shmlog.c: |
| 4557 | | |
| 4558 | | Put a mutex around the shmlog writes, I've seen my first race. |
| 4559 | | |
| 4560 | | 2006-06-28 21:18 phk |
| 4561 | | |
| 4562 | | * trunk/varnish-cache/bin/varnishlog/Makefile.am, |
| 4563 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 4564 | | |
| 4565 | | Add a -o argument which sorts the log into transactions before output, |
| 4566 | | this is a fair bit easier to chew through than the raw log (the default) |
| 4567 | | |
| 4568 | | 2006-06-28 21:03 phk |
| 4569 | | |
| 4570 | | * trunk/varnish-cache/bin/varnishstat/Makefile.am, |
| 4571 | | trunk/varnish-cache/bin/varnishstat/varnishstat.c: |
| 4572 | | |
| 4573 | | Use shmlog api from libvarnishapi |
| 4574 | | |
| 4575 | | 2006-06-28 20:58 phk |
| 4576 | | |
| 4577 | | * trunk/varnish-cache/bin/varnishlog/Makefile.am, |
| 4578 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 4579 | | |
| 4580 | | Use SHMLOG api in libvarnishapi |
| 4581 | | |
| 4582 | | 2006-06-28 20:58 phk |
| 4583 | | |
| 4584 | | * trunk/varnish-cache/include/varnishapi.h, |
| 4585 | | trunk/varnish-cache/lib/libvarnishapi/Makefile.am: |
| 4586 | | |
| 4587 | | Add SHMLOG opening and walking functions to libvarnishapi |
| 4588 | | |
| 4589 | | 2006-06-28 17:46 phk |
| 4590 | | |
| 4591 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4592 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4593 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4594 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 4595 | | |
| 4596 | | Be more consistent about which headers we send back. |
| 4597 | | |
| 4598 | | Start 5 threads in the worker pool. |
| 4599 | | |
| 4600 | | 2006-06-28 16:59 phk |
| 4601 | | |
| 4602 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 4603 | | |
| 4604 | | Construct our own Content-length header, no matter which of the |
| 4605 | | three (straight, chunked, eof) modes we used to fetch the object. |
| 4606 | | |
| 4607 | | 2006-06-28 16:58 phk |
| 4608 | | |
| 4609 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 4610 | | |
| 4611 | | Don't finish the sbuf in mode 3 |
| 4612 | | |
| 4613 | | 2006-06-28 16:57 phk |
| 4614 | | |
| 4615 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 4616 | | |
| 4617 | | Assert that the lengths of the storage for the object add up. |
| 4618 | | |
| 4619 | | 2006-06-28 16:57 phk |
| 4620 | | |
| 4621 | | * trunk/varnish-cache/include/http_headers.h: |
| 4622 | | |
| 4623 | | Don't pass Content-Lenght through, we build it ourselves |
| 4624 | | |
| 4625 | | 2006-06-28 16:20 phk |
| 4626 | | |
| 4627 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4628 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4629 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 4630 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 4631 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c: |
| 4632 | | |
| 4633 | | Pass fd to shmemlog |
| 4634 | | |
| 4635 | | 2006-06-28 16:19 phk |
| 4636 | | |
| 4637 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 4638 | | |
| 4639 | | add tag for generated headers |
| 4640 | | |
| 4641 | | 2006-06-28 16:19 phk |
| 4642 | | |
| 4643 | | * trunk/varnish-cache/include/http_headers.h: |
| 4644 | | |
| 4645 | | Don't pass If-* headers to backend |
| 4646 | | |
| 4647 | | 2006-06-28 16:14 phk |
| 4648 | | |
| 4649 | | * trunk/varnish-cache/bin/varnishd/cache_vrt.c: |
| 4650 | | |
| 4651 | | Apply correct fd in Shmemlog |
| 4652 | | |
| 4653 | | 2006-06-28 16:04 phk |
| 4654 | | |
| 4655 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4656 | | |
| 4657 | | Fix buglets, include test-driver. |
| 4658 | | |
| 4659 | | 2006-06-28 11:29 phk |
| 4660 | | |
| 4661 | | * trunk/varnish-cache/bin/varnishstat/Makefile.am, |
| 4662 | | trunk/varnish-cache/bin/varnishstat/varnishstat.c: |
| 4663 | | |
| 4664 | | Give varnishstat a "-c" option to use curses to continously refresh |
| 4665 | | |
| 4666 | | 2006-06-28 11:21 phk |
| 4667 | | |
| 4668 | | * trunk/varnish-cache/bin/Makefile.am, |
| 4669 | | trunk/varnish-cache/bin/varnishstat, |
| 4670 | | trunk/varnish-cache/bin/varnishstat/Makefile.am, |
| 4671 | | trunk/varnish-cache/bin/varnishstat/varnishstat.c, |
| 4672 | | trunk/varnish-cache/configure.ac: |
| 4673 | | |
| 4674 | | Add varnishstat program |
| 4675 | | |
| 4676 | | 2006-06-28 10:31 phk |
| 4677 | | |
| 4678 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 4679 | | |
| 4680 | | 304's don't have a body |
| 4681 | | |
| 4682 | | 2006-06-28 10:30 phk |
| 4683 | | |
| 4684 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4685 | | |
| 4686 | | Implement ->trim() |
| 4687 | | |
| 4688 | | 2006-06-28 09:39 phk |
| 4689 | | |
| 4690 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4691 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 4692 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4693 | | trunk/varnish-cache/include/stat_field.h: |
| 4694 | | |
| 4695 | | More stats counters |
| 4696 | | |
| 4697 | | 2006-06-28 09:21 phk |
| 4698 | | |
| 4699 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4700 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 4701 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 4702 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 4703 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 4704 | | trunk/varnish-cache/include/shmlog.h, |
| 4705 | | trunk/varnish-cache/include/stat_field.h, |
| 4706 | | trunk/varnish-cache/include/stats.h: |
| 4707 | | |
| 4708 | | Add statistics counter support. |
| 4709 | | |
| 4710 | | stat_field.h defines the counter fields with name, type, (printf)format |
| 4711 | | and description. |
| 4712 | | |
| 4713 | | stats.h defines a structure with these fields. |
| 4714 | | |
| 4715 | | shmlog.h makes the structure part of the shared memory logs header. |
| 4716 | | |
| 4717 | | Implent the "stats" CLI word in the management process. |
| 4718 | | |
| 4719 | | 2006-06-26 19:25 phk |
| 4720 | | |
| 4721 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4722 | | trunk/varnish-cache/bin/varnishd/cache_expire.c: |
| 4723 | | |
| 4724 | | Call VCL to decide discard/prefetch for near-expiry objects. |
| 4725 | | |
| 4726 | | Put discard objects on deathrow where they will be culled from |
| 4727 | | in sequence. |
| 4728 | | |
| 4729 | | (prefetch not implemented yet) |
| 4730 | | |
| 4731 | | 2006-06-26 19:24 phk |
| 4732 | | |
| 4733 | | * trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4734 | | |
| 4735 | | A temporary hack to deal with very old Date: headers until we figure |
| 4736 | | out what's going on. |
| 4737 | | |
| 4738 | | 2006-06-26 19:23 phk |
| 4739 | | |
| 4740 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 4741 | | |
| 4742 | | Implement HTTP/1.0 style fetching. |
| 4743 | | |
| 4744 | | 2006-06-26 17:06 phk |
| 4745 | | |
| 4746 | | * trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 4747 | | |
| 4748 | | Another little tweak |
| 4749 | | |
| 4750 | | 2006-06-26 16:31 phk |
| 4751 | | |
| 4752 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 4753 | | |
| 4754 | | Dump numeric handling also, until we figure out trouble. |
| 4755 | | |
| 4756 | | 2006-06-26 16:30 phk |
| 4757 | | |
| 4758 | | * trunk/varnish-cache/bin/varnishd/cache_hash.c: |
| 4759 | | |
| 4760 | | typo |
| 4761 | | |
| 4762 | | 2006-06-26 16:19 phk |
| 4763 | | |
| 4764 | | * trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 4765 | | |
| 4766 | | Make this work again: record the stevedore in the storage object. |
| 4767 | | |
| 4768 | | 2006-06-26 14:33 phk |
| 4769 | | |
| 4770 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4771 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 4772 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4773 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4774 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4775 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c: |
| 4776 | | |
| 4777 | | Start releasing objects when they expire |
| 4778 | | |
| 4779 | | 2006-06-26 14:00 phk |
| 4780 | | |
| 4781 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4782 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4783 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c: |
| 4784 | | |
| 4785 | | Move a bit more responsibility into the hash-slinger to get a cleaner |
| 4786 | | interface. |
| 4787 | | |
| 4788 | | 2006-06-26 08:58 phk |
| 4789 | | |
| 4790 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 4791 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 4792 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4793 | | trunk/varnish-cache/bin/varnishd/cache_hash.c, |
| 4794 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 4795 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4796 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c: |
| 4797 | | |
| 4798 | | Now that we approach the time where objects have to be destroyed again, |
| 4799 | | we need to move the data structures into the right shape. |
| 4800 | | |
| 4801 | | Push hashing into cache_hash.c |
| 4802 | | |
| 4803 | | Add objhead structure to hold the various hits for "Vary:" headers. |
| 4804 | | |
| 4805 | | 2006-06-24 22:11 phk |
| 4806 | | |
| 4807 | | * trunk/varnish-cache/bin/varnishd/cache_expire.c: |
| 4808 | | |
| 4809 | | A little bit more work on the expiry/prefetch thing. |
| 4810 | | |
| 4811 | | 2006-06-24 21:54 phk |
| 4812 | | |
| 4813 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4814 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 4815 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4816 | | trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4817 | | |
| 4818 | | Use ttl=0 as a "invalid TTL" flag. |
| 4819 | | |
| 4820 | | Mark objects with ttl=0 uncachable. |
| 4821 | | |
| 4822 | | Add cacheable objects to the expiry heap |
| 4823 | | |
| 4824 | | Start an expiry thread which polls the root element once per second |
| 4825 | | |
| 4826 | | 2006-06-24 21:42 phk |
| 4827 | | |
| 4828 | | * trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4829 | | |
| 4830 | | Truncate TTLs in the past to now. |
| 4831 | | |
| 4832 | | 2006-06-24 21:09 phk |
| 4833 | | |
| 4834 | | * trunk/varnish-cache/bin/varnishd/cache.h: |
| 4835 | | |
| 4836 | | Autogenerate prototypes for method calling functions |
| 4837 | | |
| 4838 | | 2006-06-24 21:07 phk |
| 4839 | | |
| 4840 | | * trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 4841 | | trunk/varnish-cache/include/vcl.h, |
| 4842 | | trunk/varnish-cache/include/vcl_returns.h, |
| 4843 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 4844 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 4845 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 4846 | | |
| 4847 | | Add a "timeout" method to VCL, it can return "fetch" or "discard". |
| 4848 | | |
| 4849 | | 2006-06-24 20:50 phk |
| 4850 | | |
| 4851 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 4852 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 4853 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 4854 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 4855 | | |
| 4856 | | Add a token type "METHOD", we use it for reference counting. |
| 4857 | | |
| 4858 | | Add a reference to the first backend {} we encounter, it is the default. |
| 4859 | | Add a reference to all backends assigned explicitly. |
| 4860 | | Add a reference to all methods. |
| 4861 | | |
| 4862 | | Enable reference check, complain if: backend, function or acl is defined |
| 4863 | | but not used, or used but not defined. |
| 4864 | | |
| 4865 | | 2006-06-24 20:12 phk |
| 4866 | | |
| 4867 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 4868 | | |
| 4869 | | Collapse multiline Fc and Fh calls where they fit |
| 4870 | | |
| 4871 | | 2006-06-24 20:09 phk |
| 4872 | | |
| 4873 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 4874 | | |
| 4875 | | More printf sanitation: Create to convenience functions for output to the |
| 4876 | | fh and fc sbufs. |
| 4877 | | |
| 4878 | | 2006-06-24 19:50 phk |
| 4879 | | |
| 4880 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 4881 | | |
| 4882 | | Cave in and use printf format extensions for printing tokens. |
| 4883 | | Both Linux and FreeBSD supports them anyway. |
| 4884 | | |
| 4885 | | 2006-06-24 19:41 phk |
| 4886 | | |
| 4887 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4888 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4889 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4890 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 4891 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 4892 | | trunk/varnish-cache/include/shmlog_tags.h, |
| 4893 | | trunk/varnish-cache/include/vrt.h, |
| 4894 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 4895 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 4896 | | |
| 4897 | | Add more shmemlog tags: |
| 4898 | | one for each VCL method to record the return |
| 4899 | | one for errors |
| 4900 | | one for linking a client session to a backend connection |
| 4901 | | Use them sensibly. |
| 4902 | | Put VCL name of backend into struct backend to improve log messages |
| 4903 | | |
| 4904 | | 2006-06-22 16:17 phk |
| 4905 | | |
| 4906 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4907 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4908 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 4909 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 4910 | | trunk/varnish-cache/include/vcl.h, |
| 4911 | | trunk/varnish-cache/include/vcl_returns.h, |
| 4912 | | trunk/varnish-cache/include/vrt.h, |
| 4913 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 4914 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 4915 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 4916 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 4917 | | |
| 4918 | | Improve the VCL compiler in various ways: |
| 4919 | | |
| 4920 | | Generate the methods and their legal returns with the tcl script. |
| 4921 | | |
| 4922 | | Add consistency checks to make sure methods don't use illegal returns, |
| 4923 | | and also check called subrourtines. |
| 4924 | | |
| 4925 | | Add consistency check to complain about recursive subroutine calls. |
| 4926 | | |
| 4927 | | Add consistency check to complain about unused or undefined subroutines. |
| 4928 | | |
| 4929 | | 2006-06-21 10:28 phk |
| 4930 | | |
| 4931 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 4932 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 4933 | | trunk/varnish-cache/bin/varnishd/cache_expire.c, |
| 4934 | | trunk/varnish-cache/bin/varnishd/cache_main.c: |
| 4935 | | |
| 4936 | | Add (empty) source file for expiry/pretech code |
| 4937 | | |
| 4938 | | 2006-06-21 10:21 phk |
| 4939 | | |
| 4940 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4941 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4942 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 4943 | | trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 4944 | | |
| 4945 | | Start to respect TTL |
| 4946 | | |
| 4947 | | 2006-06-21 10:13 phk |
| 4948 | | |
| 4949 | | * trunk/varnish-cache/bin/varnishd/heritage.h, |
| 4950 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 4951 | | |
| 4952 | | Add "-t default_ttl" option. 120 seconds by default. |
| 4953 | | |
| 4954 | | 2006-06-21 09:58 phk |
| 4955 | | |
| 4956 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 4957 | | |
| 4958 | | Quench some debugging |
| 4959 | | |
| 4960 | | 2006-06-21 08:09 phk |
| 4961 | | |
| 4962 | | * trunk/varnish-cache/include/Makefile.am, |
| 4963 | | trunk/varnish-cache/include/binary_heap.h, |
| 4964 | | trunk/varnish-cache/lib/libvarnish/Makefile.am, |
| 4965 | | trunk/varnish-cache/lib/libvarnish/binary_heap.c, |
| 4966 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 4967 | | |
| 4968 | | Add a binary heap implementation for keeping track of objects expiry time. |
| 4969 | | |
| 4970 | | 2006-06-20 19:49 phk |
| 4971 | | |
| 4972 | | * trunk/varnish-cache/include/vrt.h: |
| 4973 | | |
| 4974 | | typo |
| 4975 | | |
| 4976 | | 2006-06-20 19:38 phk |
| 4977 | | |
| 4978 | | * trunk/varnish-cache/lib/libvcl/flint.lnt, |
| 4979 | | trunk/varnish-cache/lib/libvcl/flint.sh: |
| 4980 | | |
| 4981 | | FlexeLint files |
| 4982 | | |
| 4983 | | 2006-06-20 19:37 phk |
| 4984 | | |
| 4985 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 4986 | | |
| 4987 | | FlexeLint cleanups |
| 4988 | | |
| 4989 | | 2006-06-20 19:31 phk |
| 4990 | | |
| 4991 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 4992 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 4993 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 4994 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 4995 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 4996 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 4997 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 4998 | | trunk/varnish-cache/bin/varnishd/flint.lnt, |
| 4999 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 5000 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5001 | | |
| 5002 | | Polish things to silence FlexeLint a bit |
| 5003 | | |
| 5004 | | 2006-06-20 11:39 phk |
| 5005 | | |
| 5006 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 5007 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5008 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 5009 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5010 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5011 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5012 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5013 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 5014 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 5015 | | trunk/varnish-cache/bin/varnishd/rfc2616.c, |
| 5016 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 5017 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c, |
| 5018 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 5019 | | trunk/varnish-cache/include/vcl.h, |
| 5020 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5021 | | trunk/varnish-cache/include/vrt.h, |
| 5022 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 5023 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: |
| 5024 | | |
| 5025 | | Rename vcl_lang.h to vcl.h and include practically nowhere. |
| 5026 | | |
| 5027 | | Remove #include bogohandling in vcl_gen_fixed_token.tcl |
| 5028 | | |
| 5029 | | 2006-06-20 10:31 phk |
| 5030 | | |
| 5031 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5032 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5033 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5034 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5035 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 5036 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5037 | | trunk/varnish-cache/include/vrt.h, |
| 5038 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5039 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5040 | | |
| 5041 | | At the expense of some complexity and a small runtime overhead, |
| 5042 | | isolate the compiled code from the internal structures of the cache |
| 5043 | | process through of VRT functions. |
| 5044 | | |
| 5045 | | 2006-06-20 09:41 phk |
| 5046 | | |
| 5047 | | * trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 5048 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5049 | | trunk/varnish-cache/include/vrt.h, |
| 5050 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5051 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5052 | | |
| 5053 | | Work towards making struct sess opaque to the generated code. |
| 5054 | | |
| 5055 | | 2006-06-20 09:28 phk |
| 5056 | | |
| 5057 | | * trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 5058 | | trunk/varnish-cache/include/libvcl.h, |
| 5059 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 5060 | | |
| 5061 | | Rename the VCL compilers public functions to VCC prefix |
| 5062 | | |
| 5063 | | 2006-06-20 09:25 phk |
| 5064 | | |
| 5065 | | * trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 5066 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5067 | | trunk/varnish-cache/include/vrt.h, |
| 5068 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5069 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5070 | | |
| 5071 | | Get rid of VCL_FARGS and VCL_PASS_ARGS macros. |
| 5072 | | |
| 5073 | | Generate VGC prefixes instead of VCL. |
| 5074 | | |
| 5075 | | 2006-06-20 09:15 phk |
| 5076 | | |
| 5077 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5078 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5079 | | trunk/varnish-cache/bin/varnishd/cache_vrt.c, |
| 5080 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5081 | | trunk/varnish-cache/include/vrt.h, |
| 5082 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5083 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 5084 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: |
| 5085 | | |
| 5086 | | Start putting some structure in the sources relating to VCL handling: |
| 5087 | | |
| 5088 | | Split the runtime support for compiled varnish programs out and give it the |
| 5089 | | prefix "VRT". |
| 5090 | | |
| 5091 | | Start using the prefix "VGC" for generated code. |
| 5092 | | |
| 5093 | | Prefix "VCC" will be for the compiler and "VCL" for calling the |
| 5094 | | compiled and |
| 5095 | | loaded functions. |
| 5096 | | |
| 5097 | | 2006-06-18 10:28 phk |
| 5098 | | |
| 5099 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5100 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5101 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5102 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5103 | | |
| 5104 | | Output line+pos for counts. |
| 5105 | | |
| 5106 | | 2006-06-18 10:19 phk |
| 5107 | | |
| 5108 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 5109 | | |
| 5110 | | Insert a count-point after each conditional. |
| 5111 | | |
| 5112 | | 2006-06-18 10:16 phk |
| 5113 | | |
| 5114 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 5115 | | |
| 5116 | | Get the sense of string compares right. |
| 5117 | | |
| 5118 | | 2006-06-18 10:12 phk |
| 5119 | | |
| 5120 | | * trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 5121 | | |
| 5122 | | debug printf for max-age |
| 5123 | | |
| 5124 | | 2006-06-18 10:10 phk |
| 5125 | | |
| 5126 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5127 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5128 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5129 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5130 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5131 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5132 | | |
| 5133 | | Implement req.request properly |
| 5134 | | |
| 5135 | | 2006-06-18 10:04 phk |
| 5136 | | |
| 5137 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5138 | | |
| 5139 | | Pass if we spot an Authenticate or Cookie header |
| 5140 | | |
| 5141 | | 2006-06-18 10:03 phk |
| 5142 | | |
| 5143 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 5144 | | |
| 5145 | | Add VCL function for getting HTTP header |
| 5146 | | |
| 5147 | | 2006-06-18 10:02 phk |
| 5148 | | |
| 5149 | | * trunk/varnish-cache/include/vcl_lang.h, |
| 5150 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5151 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5152 | | |
| 5153 | | Add support for investigating random HTTP headers. |
| 5154 | | |
| 5155 | | 2006-06-18 09:16 phk |
| 5156 | | |
| 5157 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5158 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5159 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5160 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 5161 | | |
| 5162 | | Add wrappers around VCL methos so logging and checking of returned handling |
| 5163 | | can be centralized. |
| 5164 | | |
| 5165 | | Remove old handling callbacks. |
| 5166 | | |
| 5167 | | Call hit/miss methods instead of lookup method. |
| 5168 | | |
| 5169 | | 2006-06-18 09:14 phk |
| 5170 | | |
| 5171 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5172 | | |
| 5173 | | add explicit "lookup" to recv method |
| 5174 | | |
| 5175 | | 2006-06-18 09:11 phk |
| 5176 | | |
| 5177 | | * trunk/varnish-cache/include/vcl_lang.h, |
| 5178 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5179 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 5180 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 5181 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 5182 | | |
| 5183 | | Correctly handle \ sequences in .h files in vcl_gen_fixed_token.tcl |
| 5184 | | |
| 5185 | | Make handling a named enum, and use it as a bitmap. |
| 5186 | | |
| 5187 | | Add "lookup" reserved word |
| 5188 | | |
| 5189 | | Add VCL_done() macro to use in compiled code to set handling and drop |
| 5190 | | the per-handling callbacks (apart from VCL_error()) |
| 5191 | | |
| 5192 | | 2006-06-18 07:28 phk |
| 5193 | | |
| 5194 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5195 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 5196 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5197 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5198 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 5199 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 5200 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 5201 | | |
| 5202 | | Add "deliver" keyword to VCL compiler. |
| 5203 | | |
| 5204 | | Split vcl_lookup() in vcl_hit() and vcl_miss() |
| 5205 | | |
| 5206 | | 2006-06-16 10:22 phk |
| 5207 | | |
| 5208 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5209 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5210 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5211 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5212 | | |
| 5213 | | Initial http_GetHdrField() function. |
| 5214 | | |
| 5215 | | Improve chunked encoding, allocate big storage chunks and trim the |
| 5216 | | last one at the end, instead of one storage chunk for each chunk |
| 5217 | | the remote server sends. |
| 5218 | | |
| 5219 | | Call RFC2616 policy code. |
| 5220 | | |
| 5221 | | Store headers from backend in cache and return to client. |
| 5222 | | |
| 5223 | | 2006-06-16 10:20 phk |
| 5224 | | |
| 5225 | | * trunk/varnish-cache/include/vcl_lang.h, |
| 5226 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5227 | | |
| 5228 | | Add header field to object |
| 5229 | | |
| 5230 | | 2006-06-16 10:19 phk |
| 5231 | | |
| 5232 | | * trunk/varnish-cache/include/http_headers.h: |
| 5233 | | |
| 5234 | | Supress Transfer-Encoding |
| 5235 | | |
| 5236 | | 2006-06-16 10:18 phk |
| 5237 | | |
| 5238 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5239 | | trunk/varnish-cache/bin/varnishd/rfc2616.c: |
| 5240 | | |
| 5241 | | The beginnings of rfc2616 policy implemenation. |
| 5242 | | |
| 5243 | | 2006-06-16 10:17 phk |
| 5244 | | |
| 5245 | | * trunk/varnish-cache/bin/varnishd/stevedore.h, |
| 5246 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 5247 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 5248 | | |
| 5249 | | Add trim method to storage backends so chunked encoding can be |
| 5250 | | stored efficiently. |
| 5251 | | |
| 5252 | | 2006-06-16 10:16 phk |
| 5253 | | |
| 5254 | | * trunk/varnish-cache/include/libvarnish.h, |
| 5255 | | trunk/varnish-cache/lib/libvarnish/Makefile.am, |
| 5256 | | trunk/varnish-cache/lib/libvarnish/time.c: |
| 5257 | | |
| 5258 | | Add time parse/format functions to libvarnish |
| 5259 | | |
| 5260 | | 2006-06-15 08:04 phk |
| 5261 | | |
| 5262 | | * trunk/varnish-cache/bin/varnishd/mgt_child.c: |
| 5263 | | |
| 5264 | | less noise |
| 5265 | | |
| 5266 | | 2006-06-15 08:04 phk |
| 5267 | | |
| 5268 | | * trunk/varnish-cache/bin/varnishd/cache_main.c: |
| 5269 | | |
| 5270 | | Less noise |
| 5271 | | |
| 5272 | | 2006-06-14 09:57 phk |
| 5273 | | |
| 5274 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5275 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5276 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5277 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 5278 | | |
| 5279 | | start examining HTTP status codes from backend |
| 5280 | | |
| 5281 | | 2006-06-14 09:39 phk |
| 5282 | | |
| 5283 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5284 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5285 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5286 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5287 | | |
| 5288 | | Add vca_write_obj() which writes an sbuf (as) HTTP header and the |
| 5289 | | object from the sessions to the client. |
| 5290 | | |
| 5291 | | 2006-06-14 09:25 phk |
| 5292 | | |
| 5293 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5294 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5295 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5296 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5297 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5298 | | |
| 5299 | | Clean up session messages a bit |
| 5300 | | |
| 5301 | | 2006-06-14 09:23 phk |
| 5302 | | |
| 5303 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 5304 | | |
| 5305 | | Add HttpError tag |
| 5306 | | |
| 5307 | | 2006-06-14 09:03 phk |
| 5308 | | |
| 5309 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5310 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5311 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5312 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5313 | | |
| 5314 | | Sanitize close/recycle session logic a bit. |
| 5315 | | |
| 5316 | | 2006-06-14 08:53 phk |
| 5317 | | |
| 5318 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5319 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5320 | | trunk/varnish-cache/bin/varnishd/cache_main.c: |
| 5321 | | |
| 5322 | | Initialize the cache_acceptor.c/VCA in the same manner as other parts. |
| 5323 | | |
| 5324 | | 2006-06-14 07:21 phk |
| 5325 | | |
| 5326 | | * trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5327 | | trunk/varnish-cache/bin/varnishd/stevedore.h, |
| 5328 | | trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 5329 | | |
| 5330 | | Give storage backends a "send" method. |
| 5331 | | |
| 5332 | | Let storage_file use sendfile(2) for it. |
| 5333 | | |
| 5334 | | 2006-06-14 06:58 phk |
| 5335 | | |
| 5336 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 5337 | | |
| 5338 | | Complete the storage_file method. |
| 5339 | | |
| 5340 | | 2006-06-13 20:09 phk |
| 5341 | | |
| 5342 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5343 | | |
| 5344 | | Default to "file" stevedore from now on. |
| 5345 | | |
| 5346 | | 2006-06-13 20:06 phk |
| 5347 | | |
| 5348 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 5349 | | |
| 5350 | | Be more aggressive about mmap'ing memory. The size_t thing is a bogus |
| 5351 | | constraint in FreeBSD and we shouldn't really listen to it. |
| 5352 | | |
| 5353 | | On my laptop I can mmap 2422MB file this way. |
| 5354 | | |
| 5355 | | This may be so aggressive that it leaves insufficient address space for |
| 5356 | | malloc/threadstacks and other issues. |
| 5357 | | |
| 5358 | | If we find a way to pick up a platform/architecture specific limit, we |
| 5359 | | can enforce that along the way. |
| 5360 | | |
| 5361 | | For now people can just specify a saner and smaller "-sfile" size. |
| 5362 | | |
| 5363 | | 2006-06-13 13:47 phk |
| 5364 | | |
| 5365 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 5366 | | |
| 5367 | | mmap as much as the file as we are able to when the cache process opens |
| 5368 | | the stevedore. |
| 5369 | | |
| 5370 | | This should probably be (fine-)tuned later on as it might be too aggressive |
| 5371 | | when faced with user errors. |
| 5372 | | |
| 5373 | | Also, might it be possible to mmap() more than MAX_SIZE_T bytes if |
| 5374 | | it is done in multiple calls ? |
| 5375 | | |
| 5376 | | 2006-06-13 13:14 phk |
| 5377 | | |
| 5378 | | * trunk/varnish-cache/bin/varnishd/storage_file.c: |
| 5379 | | |
| 5380 | | Calculate the size of the backing store file. |
| 5381 | | |
| 5382 | | A size can be specified in absolute terms (suffix: k, m, g, t supported), |
| 5383 | | but also as a percentage of the filesystems free space (suffix '%'). |
| 5384 | | |
| 5385 | | If the specified size is larger than an off_t can cope, we bisect |
| 5386 | | repeatedly until it can. |
| 5387 | | |
| 5388 | | If the size exceeds the available space of the filesystem, we truncate |
| 5389 | | to 80% of the free space. |
| 5390 | | |
| 5391 | | Then round down to an integral number of blocks, sized by the larger |
| 5392 | | of the filesystem blocksize and the pagesize. |
| 5393 | | |
| 5394 | | This was tricker than I'd expected... |
| 5395 | | |
| 5396 | | 2006-06-13 13:10 phk |
| 5397 | | |
| 5398 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5399 | | |
| 5400 | | Clone the stevedore before calling its init function and be more precise |
| 5401 | | about any optional arguments. |
| 5402 | | |
| 5403 | | 2006-06-13 08:05 phk |
| 5404 | | |
| 5405 | | * trunk/varnish-cache/bin/varnishd/_stevedore.h, |
| 5406 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5407 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 5408 | | trunk/varnish-cache/bin/varnishd/stevedore.h: |
| 5409 | | |
| 5410 | | After having a strong cup of tea: don't name files with leading underscore |
| 5411 | | even though that's how FreeBSD's kernel does it. In my private world |
| 5412 | | a leading underscore means "junk file, remove at your pleasure". |
| 5413 | | |
| 5414 | | 2006-06-13 08:02 phk |
| 5415 | | |
| 5416 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5417 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 5418 | | trunk/varnish-cache/bin/varnishd/storage_file.c, |
| 5419 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5420 | | |
| 5421 | | Clone the malloc stevedore to the file stevedore |
| 5422 | | |
| 5423 | | 2006-06-13 07:59 phk |
| 5424 | | |
| 5425 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5426 | | |
| 5427 | | Remember to tell getopt about -s |
| 5428 | | |
| 5429 | | 2006-06-13 07:57 phk |
| 5430 | | |
| 5431 | | * trunk/varnish-cache/bin/varnishd/_stevedore.h, |
| 5432 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5433 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5434 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 5435 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 5436 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 5437 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c, |
| 5438 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5439 | | |
| 5440 | | Put more meat on the stevedore (storage backend) interface: |
| 5441 | | |
| 5442 | | Pull the struct definition into _stevedore.h and include this from |
| 5443 | | cache.h and mgt.h, they both need to be able to see it. |
| 5444 | | |
| 5445 | | Add the stevedore pointer as an argument to the stevedore alloc function |
| 5446 | | so multiple stevedores is possible later on. |
| 5447 | | |
| 5448 | | Add the stevedore pointer to the storage object, so freeing it again is |
| 5449 | | possible. |
| 5450 | | |
| 5451 | | Add -s argument processing to select a given stevedore, call it's ->init |
| 5452 | | method and pass the stevedore in the heritage. |
| 5453 | | |
| 5454 | | In the cache process pick stevedore out from heritage, call its open |
| 5455 | | method. |
| 5456 | | |
| 5457 | | 2006-06-13 07:26 phk |
| 5458 | | |
| 5459 | | * trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 5460 | | |
| 5461 | | Use NULL init method |
| 5462 | | |
| 5463 | | 2006-06-13 07:25 phk |
| 5464 | | |
| 5465 | | * trunk/varnish-cache/bin/varnishd/cache_main.c: |
| 5466 | | |
| 5467 | | Allow for NULL init methods for hash and stevedore |
| 5468 | | |
| 5469 | | 2006-05-01 12:59 phk |
| 5470 | | |
| 5471 | | * trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5472 | | |
| 5473 | | Use vca_write/vca_flush |
| 5474 | | |
| 5475 | | 2006-05-01 12:59 phk |
| 5476 | | |
| 5477 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 5478 | | |
| 5479 | | Use vca_write/vca_flush |
| 5480 | | |
| 5481 | | 2006-05-01 12:51 phk |
| 5482 | | |
| 5483 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c: |
| 5484 | | |
| 5485 | | Use vca_write/vca_flush |
| 5486 | | |
| 5487 | | 2006-05-01 12:45 phk |
| 5488 | | |
| 5489 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5490 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 5491 | | |
| 5492 | | Add vca_write() and vca_flush(), two functions which will attempt to |
| 5493 | | use writev() if possible. |
| 5494 | | |
| 5495 | | vca_flush() must be called before any memory previosly given to |
| 5496 | | vca_write is overwritten, and after the last call to vca_write() |
| 5497 | | |
| 5498 | | 2006-05-01 12:28 phk |
| 5499 | | |
| 5500 | | * trunk/varnish-cache/bin/varnishd/flint.lnt, |
| 5501 | | trunk/varnish-cache/bin/varnishd/flint.sh: |
| 5502 | | |
| 5503 | | Add FlexeLint files |
| 5504 | | |
| 5505 | | 2006-05-01 12:27 phk |
| 5506 | | |
| 5507 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5508 | | |
| 5509 | | bandaid for name-clash |
| 5510 | | |
| 5511 | | 2006-05-01 12:27 phk |
| 5512 | | |
| 5513 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c: |
| 5514 | | |
| 5515 | | Keep track of how many connections we have open |
| 5516 | | |
| 5517 | | 2006-05-01 12:27 phk |
| 5518 | | |
| 5519 | | * trunk/varnish-cache/bin/varnishd/cache.h: |
| 5520 | | |
| 5521 | | add missing extern |
| 5522 | | |
| 5523 | | 2006-05-01 10:55 phk |
| 5524 | | |
| 5525 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5526 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5527 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5528 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5529 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 5530 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5531 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5532 | | |
| 5533 | | Add INCOMPL() macro to mark missing code. |
| 5534 | | |
| 5535 | | Add http_HdrIs() to check if we have a given header and if we do |
| 5536 | | if it has a given value. |
| 5537 | | |
| 5538 | | Use it. |
| 5539 | | |
| 5540 | | Ignore SIGPIPE since SO_NOSIGPIPE doesn't work reliably, (but set |
| 5541 | | it on accepted TCP connections anyway). |
| 5542 | | |
| 5543 | | Update passing to match fetching, including a chunked encoding method. |
| 5544 | | |
| 5545 | | 2006-05-01 07:54 phk |
| 5546 | | |
| 5547 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c: |
| 5548 | | |
| 5549 | | Add yet another thread with an event engine to monitor idle backend |
| 5550 | | connections and clean them out if the backend closes. |
| 5551 | | |
| 5552 | | 2006-05-01 07:53 phk |
| 5553 | | |
| 5554 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 5555 | | |
| 5556 | | Centralize "Connection: close" handling from the backend. |
| 5557 | | |
| 5558 | | Loop until we have the entire chunk in chunked encoding |
| 5559 | | |
| 5560 | | 2006-04-25 09:32 phk |
| 5561 | | |
| 5562 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 5563 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5564 | | trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 5565 | | |
| 5566 | | test backend connections at allocation time. |
| 5567 | | |
| 5568 | | General bush-wacking in the fetch code. |
| 5569 | | |
| 5570 | | 2006-04-25 09:31 phk |
| 5571 | | |
| 5572 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5573 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c: |
| 5574 | | |
| 5575 | | Fix argument to http_BuildSbuf |
| 5576 | | |
| 5577 | | 2006-04-25 09:30 phk |
| 5578 | | |
| 5579 | | * trunk/varnish-cache/bin/varnishd/mgt_child.c: |
| 5580 | | |
| 5581 | | Keep alive often enough |
| 5582 | | |
| 5583 | | 2006-04-25 08:17 phk |
| 5584 | | |
| 5585 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 5586 | | |
| 5587 | | Make width colum wider and decimal |
| 5588 | | |
| 5589 | | 2006-04-25 08:17 phk |
| 5590 | | |
| 5591 | | * trunk/varnish-cache/include/shmlog_tags.h, |
| 5592 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5593 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5594 | | |
| 5595 | | Add new shmlog tags and handling states |
| 5596 | | |
| 5597 | | 2006-04-25 08:14 phk |
| 5598 | | |
| 5599 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5600 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5601 | | |
| 5602 | | Implement a rudimentary chunked Transfer-Encoding |
| 5603 | | |
| 5604 | | 2006-04-25 07:10 phk |
| 5605 | | |
| 5606 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 5607 | | |
| 5608 | | reset header count before we dissect |
| 5609 | | |
| 5610 | | 2006-04-25 07:04 phk |
| 5611 | | |
| 5612 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 5613 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 5614 | | |
| 5615 | | Track backend connections in shmem log |
| 5616 | | |
| 5617 | | 2006-04-25 06:52 phk |
| 5618 | | |
| 5619 | | * trunk/varnish-cache/bin/varnishd/cache_http.c: |
| 5620 | | |
| 5621 | | Add an end pointer so allocation size can be changed on the fly |
| 5622 | | |
| 5623 | | 2006-04-25 06:48 phk |
| 5624 | | |
| 5625 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5626 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5627 | | |
| 5628 | | Move shmlog entry, remove debugging |
| 5629 | | |
| 5630 | | 2006-04-25 06:16 phk |
| 5631 | | |
| 5632 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5633 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5634 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5635 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5636 | | trunk/varnish-cache/bin/varnishd/cache_http.c, |
| 5637 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 5638 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5639 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5640 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5641 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5642 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 5643 | | trunk/varnish-cache/include/http_headers.h, |
| 5644 | | trunk/varnish-cache/include/shmlog_tags.h, |
| 5645 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5646 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5647 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5648 | | |
| 5649 | | Redo http header storage and processing |
| 5650 | | |
| 5651 | | 2006-04-24 19:10 phk |
| 5652 | | |
| 5653 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 5654 | | |
| 5655 | | Add an indecisive comment |
| 5656 | | |
| 5657 | | 2006-04-24 19:09 phk |
| 5658 | | |
| 5659 | | * trunk/varnish-cache/include/http_headers.h: |
| 5660 | | |
| 5661 | | Sort and annotate |
| 5662 | | |
| 5663 | | 2006-04-19 06:38 phk |
| 5664 | | |
| 5665 | | * trunk/varnish-cache/bin/varnishd/cache_fetch.c: |
| 5666 | | |
| 5667 | | Loop until we have read it all |
| 5668 | | |
| 5669 | | 2006-04-19 06:34 phk |
| 5670 | | |
| 5671 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5672 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5673 | | trunk/varnish-cache/bin/varnishd/cache_fetch.c, |
| 5674 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5675 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 5676 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c, |
| 5677 | | trunk/varnish-cache/include/shmlog_tags.h, |
| 5678 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5679 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5680 | | |
| 5681 | | Implement enough of FetchSession and DeliverSession that we can actually |
| 5682 | | deliver a cached object. |
| 5683 | | |
| 5684 | | 2006-04-18 08:23 phk |
| 5685 | | |
| 5686 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5687 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5688 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 5689 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5690 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5691 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5692 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5693 | | |
| 5694 | | Add busyflag and strorage link to objects. |
| 5695 | | |
| 5696 | | Initialize default hasher and stevedore. |
| 5697 | | |
| 5698 | | Give each workerthread an object pointer to be kept populated with |
| 5699 | | a template object for when lookups miss and need to insert one. |
| 5700 | | |
| 5701 | | Add libmd to get MD5, (choice of hash-algorithm to be revisited later) |
| 5702 | | |
| 5703 | | Implement lookup, begin on fetch. |
| 5704 | | |
| 5705 | | 2006-04-18 07:34 phk |
| 5706 | | |
| 5707 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5708 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5709 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 5710 | | trunk/varnish-cache/bin/varnishd/storage_malloc.c: |
| 5711 | | |
| 5712 | | Add trivial malloc backed storage backend. |
| 5713 | | |
| 5714 | | 2006-04-12 08:58 phk |
| 5715 | | |
| 5716 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5717 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5718 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5719 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 5720 | | trunk/varnish-cache/include/cli.h, |
| 5721 | | trunk/varnish-cache/include/cli_priv.h, |
| 5722 | | trunk/varnish-cache/include/libvcl.h, |
| 5723 | | trunk/varnish-cache/include/shmlog.h, |
| 5724 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5725 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 5726 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 5727 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 5728 | | trunk/varnish-cache/lib/libvcl/vcl_priv.h, |
| 5729 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 5730 | | |
| 5731 | | Implement the three function VCL model in the compiler. |
| 5732 | | |
| 5733 | | 2006-04-12 08:56 phk |
| 5734 | | |
| 5735 | | * trunk/varnish-cache/include/http_headers.h: |
| 5736 | | |
| 5737 | | Add ETag: header |
| 5738 | | |
| 5739 | | 2006-04-11 08:28 phk |
| 5740 | | |
| 5741 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5742 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5743 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 5744 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 5745 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 5746 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 5747 | | trunk/varnish-cache/bin/varnishd/cli_event.h, |
| 5748 | | trunk/varnish-cache/bin/varnishd/hash_simple_list.c, |
| 5749 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 5750 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 5751 | | trunk/varnish-cache/bin/varnishd/tcp.c: |
| 5752 | | |
| 5753 | | Beginnings of the object lookup stuff: A simple list based |
| 5754 | | implementation to get things moving. |
| 5755 | | |
| 5756 | | 2006-04-06 10:01 phk |
| 5757 | | |
| 5758 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c: |
| 5759 | | |
| 5760 | | Close or recycle backend connections as appropriate |
| 5761 | | |
| 5762 | | 2006-04-06 10:00 phk |
| 5763 | | |
| 5764 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5765 | | trunk/varnish-cache/bin/varnishd/cache_backend.c: |
| 5766 | | |
| 5767 | | Add VBE_RecycleFd() function to recycle backend connections |
| 5768 | | |
| 5769 | | 2006-04-06 09:59 phk |
| 5770 | | |
| 5771 | | * trunk/varnish-cache/include/http_headers.h, |
| 5772 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5773 | | |
| 5774 | | Pass Content-Encoding header |
| 5775 | | |
| 5776 | | 2006-04-06 09:38 phk |
| 5777 | | |
| 5778 | | * trunk/varnish-cache/bin/varnishlog/Makefile.am, |
| 5779 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 5780 | | |
| 5781 | | Output the fd in decimal instead of hex. |
| 5782 | | |
| 5783 | | Do Id Keyword |
| 5784 | | |
| 5785 | | 2006-04-06 09:33 phk |
| 5786 | | |
| 5787 | | * trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 5788 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5789 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5790 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5791 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5792 | | |
| 5793 | | Rename hdr_end to a more sensible rcv_ptr which points to the first |
| 5794 | | unaccounted for character in the buffer. |
| 5795 | | |
| 5796 | | Do Id Keyword |
| 5797 | | |
| 5798 | | 2006-04-06 09:30 phk |
| 5799 | | |
| 5800 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 5801 | | |
| 5802 | | Add shmlog tags for pipe and pass handling |
| 5803 | | |
| 5804 | | 2006-04-06 09:11 phk |
| 5805 | | |
| 5806 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 5807 | | |
| 5808 | | Log tag for session reuse. |
| 5809 | | |
| 5810 | | Do Id Keyword |
| 5811 | | |
| 5812 | | 2006-04-06 09:10 phk |
| 5813 | | |
| 5814 | | * trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5815 | | |
| 5816 | | Recycle sessions instead of retiring them. |
| 5817 | | |
| 5818 | | 2006-04-06 09:09 phk |
| 5819 | | |
| 5820 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c: |
| 5821 | | |
| 5822 | | Prune the bits we used from the input buffer before we recycle the |
| 5823 | | session. |
| 5824 | | |
| 5825 | | 2006-04-06 09:09 phk |
| 5826 | | |
| 5827 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5828 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c: |
| 5829 | | |
| 5830 | | Add a vca_recycle_session() function which sticks a session back into |
| 5831 | | the acceptors event engine. |
| 5832 | | |
| 5833 | | Do Id keyword |
| 5834 | | |
| 5835 | | 2006-04-06 09:08 phk |
| 5836 | | |
| 5837 | | * trunk/varnish-cache/bin/varnishd/cache_httpd.c: |
| 5838 | | |
| 5839 | | Don't log the terminating NUL on response proto field. |
| 5840 | | |
| 5841 | | 2006-04-06 08:18 phk |
| 5842 | | |
| 5843 | | * trunk/varnish-cache/bin/varnishd/cache_httpd.c: |
| 5844 | | |
| 5845 | | Add an assert, remove debugging. |
| 5846 | | |
| 5847 | | 2006-04-06 08:18 phk |
| 5848 | | |
| 5849 | | * trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5850 | | |
| 5851 | | Respect VCL choice of handling |
| 5852 | | |
| 5853 | | Do Id keyword |
| 5854 | | |
| 5855 | | 2006-04-06 08:16 phk |
| 5856 | | |
| 5857 | | * trunk/varnish-cache/bin/varnishd/mgt_child.c: |
| 5858 | | |
| 5859 | | Don't attempt to restart child process (yet). |
| 5860 | | |
| 5861 | | Add Id Keyword handling |
| 5862 | | |
| 5863 | | 2006-04-06 08:15 phk |
| 5864 | | |
| 5865 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c: |
| 5866 | | |
| 5867 | | It's cheaper to pipe than to pass, so if the client indicates |
| 5868 | | "Connection: close", pipe instead of passing. |
| 5869 | | |
| 5870 | | 2006-04-06 07:50 phk |
| 5871 | | |
| 5872 | | * trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5873 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c: |
| 5874 | | |
| 5875 | | Use HttpdBuildSbuf() |
| 5876 | | |
| 5877 | | Enable Id keyword |
| 5878 | | |
| 5879 | | 2006-04-06 07:50 phk |
| 5880 | | |
| 5881 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5882 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c: |
| 5883 | | |
| 5884 | | Add a function to (re)build a HTTP request or response into an sbuf. |
| 5885 | | |
| 5886 | | Enable Id keyword |
| 5887 | | |
| 5888 | | 2006-04-05 10:33 phk |
| 5889 | | |
| 5890 | | * trunk/varnish-cache/autogen.sh: |
| 5891 | | |
| 5892 | | Eliminate leaked developer hacks. |
| 5893 | | |
| 5894 | | 2006-04-05 09:40 phk |
| 5895 | | |
| 5896 | | * trunk/varnish-cache/autogen.sh, |
| 5897 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 5898 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 5899 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5900 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5901 | | trunk/varnish-cache/bin/varnishd/cache_pool.c: |
| 5902 | | |
| 5903 | | Account for the last byte of the header. |
| 5904 | | |
| 5905 | | 2006-04-04 10:35 des |
| 5906 | | |
| 5907 | | * trunk/varnish-cache/configure.ac, |
| 5908 | | trunk/varnish-cache/lib/libcompat/Makefile.am, |
| 5909 | | trunk/varnish-cache/lib/libcompat/strlcat.c, |
| 5910 | | trunk/varnish-cache/lib/libcompat/strlcpy.c: |
| 5911 | | |
| 5912 | | I can't get AM_CONDITIONAL to work properly, so use a bigger hammer. |
| 5913 | | |
| 5914 | | 2006-04-04 10:09 des |
| 5915 | | |
| 5916 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 5917 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 5918 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 5919 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5920 | | trunk/varnish-cache/bin/varnishd/mgt_child.c: |
| 5921 | | |
| 5922 | | More portability changes: include config.h and compat.h, get rid of |
| 5923 | | __unused. |
| 5924 | | |
| 5925 | | 2006-04-04 10:08 des |
| 5926 | | |
| 5927 | | * trunk/varnish-cache/bin/varnishd/Makefile.am: |
| 5928 | | |
| 5929 | | Link in libcompat, and libsbuf is now static. |
| 5930 | | |
| 5931 | | 2006-04-04 10:08 des |
| 5932 | | |
| 5933 | | * trunk/varnish-cache/lib/libsbuf/Makefile.am: |
| 5934 | | |
| 5935 | | Make libsbuf static. |
| 5936 | | |
| 5937 | | 2006-04-04 10:07 des |
| 5938 | | |
| 5939 | | * trunk/varnish-cache/configure.ac, |
| 5940 | | trunk/varnish-cache/include/Makefile.am, |
| 5941 | | trunk/varnish-cache/include/compat.h, |
| 5942 | | trunk/varnish-cache/lib/Makefile.am, |
| 5943 | | trunk/varnish-cache/lib/libcompat, |
| 5944 | | trunk/varnish-cache/lib/libcompat/Makefile.am, |
| 5945 | | trunk/varnish-cache/lib/libcompat/strlcat.c, |
| 5946 | | trunk/varnish-cache/lib/libcompat/strlcpy.c: |
| 5947 | | |
| 5948 | | Add a libcompat with strlcat() and strlcpy() from OpenBSD. |
| 5949 | | |
| 5950 | | 2006-04-04 09:05 phk |
| 5951 | | |
| 5952 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5953 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 5954 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5955 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c, |
| 5956 | | trunk/varnish-cache/include/http_headers.h, |
| 5957 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5958 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5959 | | |
| 5960 | | Get pass-through working for the first request. |
| 5961 | | |
| 5962 | | Now we can start to play with multi-request sessions and all that. |
| 5963 | | |
| 5964 | | 2006-04-04 08:20 phk |
| 5965 | | |
| 5966 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 5967 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 5968 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5969 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 5970 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5971 | | trunk/varnish-cache/include/http_headers.h, |
| 5972 | | trunk/varnish-cache/include/shmlog_tags.h, |
| 5973 | | trunk/varnish-cache/include/vcl_lang.h, |
| 5974 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 5975 | | |
| 5976 | | Add HTTP response headers and processing. |
| 5977 | | |
| 5978 | | 2006-04-04 07:46 phk |
| 5979 | | |
| 5980 | | * trunk/varnish-cache/include/cli_priv.h, |
| 5981 | | trunk/varnish-cache/include/libvarnish.h, |
| 5982 | | trunk/varnish-cache/lib/libvarnish/argv.c, |
| 5983 | | trunk/varnish-cache/lib/libvarnish/cli.c: |
| 5984 | | |
| 5985 | | Reverse constification of Argv functions. After cascading through all |
| 5986 | | the CLI functions we hit the fact that the evbuffer functions in libevent |
| 5987 | | are not properly constified. |
| 5988 | | |
| 5989 | | It's better to deconst the error messages and just "let it be known" that |
| 5990 | | argv[0] is const (or NULL). |
| 5991 | | |
| 5992 | | 2006-04-04 07:30 phk |
| 5993 | | |
| 5994 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 5995 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 5996 | | trunk/varnish-cache/bin/varnishd/cache_pass.c, |
| 5997 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 5998 | | trunk/varnish-cache/include/http_headers.h, |
| 5999 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6000 | | |
| 6001 | | Get "Pass" mode moving |
| 6002 | | |
| 6003 | | 2006-04-04 07:29 phk |
| 6004 | | |
| 6005 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 6006 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6007 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c: |
| 6008 | | |
| 6009 | | Make the "receive a HTTP protocol header" code generic |
| 6010 | | |
| 6011 | | 2006-04-04 07:27 phk |
| 6012 | | |
| 6013 | | * trunk/varnish-cache/include/vcl_lang.h: |
| 6014 | | |
| 6015 | | Add a session callback pointer to struct sess. |
| 6016 | | |
| 6017 | | 2006-04-04 07:26 phk |
| 6018 | | |
| 6019 | | * trunk/varnish-cache/bin/varnishd/cli_event.c: |
| 6020 | | |
| 6021 | | Use bufferevent_base_set() from libevent |
| 6022 | | |
| 6023 | | 2006-04-04 07:24 phk |
| 6024 | | |
| 6025 | | * trunk/varnish-cache/contrib/libevent/event.h: |
| 6026 | | |
| 6027 | | Add a missing prototype until libevent people catch up. |
| 6028 | | |
| 6029 | | 2006-04-04 07:24 phk |
| 6030 | | |
| 6031 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 6032 | | |
| 6033 | | Add a Debug shmemlog tag. |
| 6034 | | |
| 6035 | | 2006-04-04 07:24 des |
| 6036 | | |
| 6037 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6038 | | trunk/varnish-cache/include/cli_priv.h, |
| 6039 | | trunk/varnish-cache/include/libvarnish.h, |
| 6040 | | trunk/varnish-cache/lib/libvarnish/argv.c, |
| 6041 | | trunk/varnish-cache/lib/libvarnish/cli.c, |
| 6042 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 6043 | | |
| 6044 | | Portability tweaks: use our own sbuf.h and queue.h; get rid of |
| 6045 | | __DECONST; get |
| 6046 | | rid of digittoint() (which is pointless since ISO C guarantees that digits |
| 6047 | | are consecutive in the execution character set); get rid of __unused. |
| 6048 | | |
| 6049 | | Also fix a buglet in argv.c's BackSlash() (parsing of octal numbers), and |
| 6050 | | constify the array passed around by ParseArgv() and FreeArgv(). |
| 6051 | | |
| 6052 | | 2006-04-03 14:41 phk |
| 6053 | | |
| 6054 | | * trunk/varnish-cache/bin/varnishd/cache_httpd.c: |
| 6055 | | |
| 6056 | | Move memset further up. |
| 6057 | | |
| 6058 | | 2006-04-03 14:20 des |
| 6059 | | |
| 6060 | | * trunk/varnish-cache/Makefile.am, trunk/varnish-cache/autogen.sh, |
| 6061 | | trunk/varnish-cache/configure.ac, trunk/varnish-cache/contrib/Makefile.am: |
| 6062 | | |
| 6063 | | Hook up libevent to the build. Note that this should be made |
| 6064 | | conditional at |
| 6065 | | some later date. |
| 6066 | | |
| 6067 | | 2006-04-03 14:04 des |
| 6068 | | |
| 6069 | | * trunk/varnish-cache/contrib/libevent/WIN32-Code/provos@badschwartau.provos.org.12766: |
| 6070 | | |
| 6071 | | |
| 6072 | | GC |
| 6073 | | |
| 6074 | | 2006-04-03 12:05 des |
| 6075 | | |
| 6076 | | * trunk/varnish-cache/contrib/libevent/sample/Makefile.in, |
| 6077 | | trunk/varnish-cache/contrib/libevent/test/Makefile.in: |
| 6078 | | |
| 6079 | | Remove generated files which were committed by mistake. |
| 6080 | | |
| 6081 | | 2006-04-03 11:59 des |
| 6082 | | |
| 6083 | | * trunk/varnish-cache/contrib/libevent/Makefile.am, |
| 6084 | | trunk/varnish-cache/contrib/libevent/README, |
| 6085 | | trunk/varnish-cache/contrib/libevent/WIN32-Code/win32.c, |
| 6086 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/libevent.dsp, |
| 6087 | | trunk/varnish-cache/contrib/libevent/buffer.c, |
| 6088 | | trunk/varnish-cache/contrib/libevent/configure.in, |
| 6089 | | trunk/varnish-cache/contrib/libevent/devpoll.c, |
| 6090 | | trunk/varnish-cache/contrib/libevent/epoll.c, |
| 6091 | | trunk/varnish-cache/contrib/libevent/evbuffer.c, |
| 6092 | | trunk/varnish-cache/contrib/libevent/event.3, |
| 6093 | | trunk/varnish-cache/contrib/libevent/event.c, |
| 6094 | | trunk/varnish-cache/contrib/libevent/event.h, |
| 6095 | | trunk/varnish-cache/contrib/libevent/event_rpcgen.py, |
| 6096 | | trunk/varnish-cache/contrib/libevent/event_tagging.c, |
| 6097 | | trunk/varnish-cache/contrib/libevent/http.c, |
| 6098 | | trunk/varnish-cache/contrib/libevent/http.h, |
| 6099 | | trunk/varnish-cache/contrib/libevent/kqueue.c, |
| 6100 | | trunk/varnish-cache/contrib/libevent/log.h, |
| 6101 | | trunk/varnish-cache/contrib/libevent/poll.c, |
| 6102 | | trunk/varnish-cache/contrib/libevent/rtsig.c, |
| 6103 | | trunk/varnish-cache/contrib/libevent/select.c, |
| 6104 | | trunk/varnish-cache/contrib/libevent/signal.c, |
| 6105 | | trunk/varnish-cache/contrib/libevent/strlcpy.c, |
| 6106 | | trunk/varnish-cache/contrib/libevent/test/Makefile.am, |
| 6107 | | trunk/varnish-cache/contrib/libevent/test/regress.c, |
| 6108 | | trunk/varnish-cache/contrib/libevent/test/regress.h, |
| 6109 | | trunk/varnish-cache/contrib/libevent/test/regress.rpc, |
| 6110 | | trunk/varnish-cache/contrib/libevent/test/regress_http.c, |
| 6111 | | trunk/varnish-cache/contrib/libevent/test/test-weof.c, |
| 6112 | | trunk/varnish-cache/contrib/libevent/test/test.sh: |
| 6113 | | |
| 6114 | | Update from libevent CVS trunk. |
| 6115 | | |
| 6116 | | 2006-04-03 11:05 phk |
| 6117 | | |
| 6118 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 6119 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 6120 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 6121 | | trunk/varnish-cache/include/shmlog_tags.h, |
| 6122 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6123 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6124 | | |
| 6125 | | Segregate http header fields into a separate structure, we will |
| 6126 | | reuse them a few places by the looks of it. |
| 6127 | | |
| 6128 | | Add VCA_UNKNOWNHDR (=10) fields for unknown HTTP headers. |
| 6129 | | If more headers arrive than that, they're lost (and logged as such). |
| 6130 | | |
| 6131 | | 2006-04-03 11:03 phk |
| 6132 | | |
| 6133 | | * trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6134 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 6135 | | trunk/varnish-cache/bin/varnishd/cli_event.h, |
| 6136 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 6137 | | trunk/varnish-cache/bin/varnishd/mgt_child.c, |
| 6138 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6139 | | |
| 6140 | | How I wish people would think more ahead when writing libraries like |
| 6141 | | libevent. The entire "implicit event engine" api assumption stinks. |
| 6142 | | |
| 6143 | | Deal with it better. |
| 6144 | | |
| 6145 | | 2006-04-03 09:02 phk |
| 6146 | | |
| 6147 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6148 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 6149 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6150 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 6151 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 6152 | | trunk/varnish-cache/bin/varnishd/cache_pipe.c, |
| 6153 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 6154 | | trunk/varnish-cache/include/http_headers.h, |
| 6155 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6156 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6157 | | |
| 6158 | | A little step for humanity but a big step for varnish: |
| 6159 | | |
| 6160 | | Implement pipe-through mode and see the first web-pages actually |
| 6161 | | pass through varnish. |
| 6162 | | |
| 6163 | | 2006-04-03 07:27 phk |
| 6164 | | |
| 6165 | | * trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 6166 | | |
| 6167 | | Call the init function when the VCL code is loaded. |
| 6168 | | We may want to postpone this to use time later on. |
| 6169 | | |
| 6170 | | 2006-04-03 07:14 phk |
| 6171 | | |
| 6172 | | * trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 6173 | | trunk/varnish-cache/include/http_headers.h, |
| 6174 | | trunk/varnish-cache/include/shmlog_tags.h, |
| 6175 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6176 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6177 | | |
| 6178 | | Add 5 dummy fields to the http headers, we will need them subsequently. |
| 6179 | | |
| 6180 | | 2006-03-31 08:27 phk |
| 6181 | | |
| 6182 | | * trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6183 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 6184 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6185 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 6186 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: |
| 6187 | | |
| 6188 | | Use http_headers.h to define session fields for headers and to parse |
| 6189 | | them out of the header. |
| 6190 | | |
| 6191 | | 2006-03-31 08:26 phk |
| 6192 | | |
| 6193 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 6194 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c: |
| 6195 | | |
| 6196 | | Add missing pthread.h includes |
| 6197 | | |
| 6198 | | 2006-03-31 08:25 phk |
| 6199 | | |
| 6200 | | * trunk/varnish-cache/include/shmlog_tags.h: |
| 6201 | | |
| 6202 | | Use http_headers.h to define HTTP header tags for logging |
| 6203 | | |
| 6204 | | 2006-03-31 08:24 phk |
| 6205 | | |
| 6206 | | * trunk/varnish-cache/include/http_headers.h: |
| 6207 | | |
| 6208 | | Reusable macro definition of HTTP headers. We will need these |
| 6209 | | several different places in the sources. |
| 6210 | | |
| 6211 | | 2006-03-30 11:16 phk |
| 6212 | | |
| 6213 | | * trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 6214 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6215 | | |
| 6216 | | get us closer to a connection to the backend |
| 6217 | | |
| 6218 | | 2006-03-30 10:56 phk |
| 6219 | | |
| 6220 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 6221 | | |
| 6222 | | Rework the compilation of backend specifications in order to be able |
| 6223 | | to check the provided hostname/portname at compile time. |
| 6224 | | |
| 6225 | | 2006-03-30 09:26 phk |
| 6226 | | |
| 6227 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6228 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 6229 | | trunk/varnish-cache/bin/varnishd/cache_backend.c, |
| 6230 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6231 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 6232 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 6233 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6234 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 6235 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6236 | | |
| 6237 | | Add the beginning of a backend connection pool |
| 6238 | | |
| 6239 | | 2006-03-30 08:05 phk |
| 6240 | | |
| 6241 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 6242 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6243 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 6244 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 6245 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6246 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6247 | | |
| 6248 | | Promote the poll mutex to be a session mutex so that we can use it |
| 6249 | | for the VCL reference as well, this saves locking operations. |
| 6250 | | |
| 6251 | | Call the atual VCL code when we get the request. |
| 6252 | | |
| 6253 | | 2006-03-30 07:05 phk |
| 6254 | | |
| 6255 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6256 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 6257 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6258 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 6259 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6260 | | trunk/varnish-cache/bin/varnishd/cache_pool.c, |
| 6261 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 6262 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 6263 | | trunk/varnish-cache/include/vcl_lang.h, |
| 6264 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 6265 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 6266 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 6267 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 6268 | | |
| 6269 | | Integrate the VCL code closer in the cache process: The passed |
| 6270 | | argument will be the session structure. |
| 6271 | | |
| 6272 | | Add the pool of worker threads (cache_pool). With a unitary nature |
| 6273 | | of the VCL code, the HTTP parsing can be postponed to the worker thread. |
| 6274 | | |
| 6275 | | This actually helps us with CPU cache locality as it will reduce the |
| 6276 | | amount of memory allocated on one CPU but freed on another. |
| 6277 | | |
| 6278 | | 2006-03-27 14:12 phk |
| 6279 | | |
| 6280 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 6281 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6282 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 6283 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6284 | | |
| 6285 | | Add config.load, config.inline and config.use commands. |
| 6286 | | |
| 6287 | | 2006-03-27 14:11 phk |
| 6288 | | |
| 6289 | | * trunk/varnish-cache/include/libvcl.h: |
| 6290 | | |
| 6291 | | Forgot to add this one. Prototypes for the VCL compiler. |
| 6292 | | |
| 6293 | | 2006-03-27 14:10 phk |
| 6294 | | |
| 6295 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 6296 | | |
| 6297 | | Add VCL_CompileFile() function. |
| 6298 | | |
| 6299 | | 2006-03-27 13:59 phk |
| 6300 | | |
| 6301 | | * trunk/varnish-cache/bin/varnishd/mgt_child.c: |
| 6302 | | |
| 6303 | | Just return if there is nothing to wait for. We get SIGCHLD'ed on |
| 6304 | | the popen child process. |
| 6305 | | |
| 6306 | | 2006-03-27 13:57 phk |
| 6307 | | |
| 6308 | | * trunk/varnish-cache/include/cli_priv.h: |
| 6309 | | |
| 6310 | | Add a macro which we can #ifdef |
| 6311 | | |
| 6312 | | 2006-03-27 12:27 phk |
| 6313 | | |
| 6314 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6315 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 6316 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6317 | | trunk/varnish-cache/bin/varnishd/cache_vcl.c, |
| 6318 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 6319 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6320 | | |
| 6321 | | Build default VCL from "-b backend_IP" option and pass it to client |
| 6322 | | via heritage. |
| 6323 | | |
| 6324 | | 2006-03-27 11:51 phk |
| 6325 | | |
| 6326 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c: |
| 6327 | | |
| 6328 | | edge closer towards being a nice member of society |
| 6329 | | |
| 6330 | | 2006-03-27 11:22 phk |
| 6331 | | |
| 6332 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6333 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6334 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6335 | | |
| 6336 | | Experimentally pull in VCL program |
| 6337 | | |
| 6338 | | 2006-03-27 11:21 phk |
| 6339 | | |
| 6340 | | * trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 6341 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 6342 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 6343 | | trunk/varnish-cache/lib/libvcl/vcl_lang.h, |
| 6344 | | trunk/varnish-cache/lib/libvcl/vcl_priv.h: |
| 6345 | | |
| 6346 | | Actually generate a shared object |
| 6347 | | |
| 6348 | | 2006-03-27 11:21 phk |
| 6349 | | |
| 6350 | | * trunk/varnish-cache/include/vcl_lang.h: |
| 6351 | | |
| 6352 | | Stuff VCL programs needs to know about. |
| 6353 | | |
| 6354 | | 2006-03-27 09:02 phk |
| 6355 | | |
| 6356 | | * trunk/varnish-cache/configure.ac: |
| 6357 | | |
| 6358 | | add libvcl |
| 6359 | | |
| 6360 | | 2006-03-27 09:01 phk |
| 6361 | | |
| 6362 | | * trunk/varnish-cache/lib/libvcl/Makefile, |
| 6363 | | trunk/varnish-cache/lib/libvcl/Makefile.am: |
| 6364 | | |
| 6365 | | Put under control of auto* tools |
| 6366 | | |
| 6367 | | 2006-03-27 09:01 phk |
| 6368 | | |
| 6369 | | * trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: |
| 6370 | | |
| 6371 | | Newly generated code |
| 6372 | | |
| 6373 | | 2006-03-27 09:00 phk |
| 6374 | | |
| 6375 | | * trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: |
| 6376 | | |
| 6377 | | Don't generate sparse array code. |
| 6378 | | |
| 6379 | | 2006-03-24 10:46 phk |
| 6380 | | |
| 6381 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 6382 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6383 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c, |
| 6384 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 6385 | | |
| 6386 | | More complete HTTP parsing and logging. |
| 6387 | | |
| 6388 | | 2006-03-24 10:23 phk |
| 6389 | | |
| 6390 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6391 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6392 | | trunk/varnish-cache/bin/varnishd/cache_httpd.c: |
| 6393 | | |
| 6394 | | Change session memory management to avoid <event.h> pollution |
| 6395 | | |
| 6396 | | Add fledling httpd parsing |
| 6397 | | |
| 6398 | | 2006-03-24 10:22 phk |
| 6399 | | |
| 6400 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 6401 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c: |
| 6402 | | |
| 6403 | | Add a VSLR() variant which logs a byte range without spending time in |
| 6404 | | sprintf |
| 6405 | | |
| 6406 | | 2006-03-24 09:45 phk |
| 6407 | | |
| 6408 | | * trunk/varnish-cache/bin/varnishd/cache.h, |
| 6409 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6410 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 6411 | | |
| 6412 | | Log remote IP#:port on session open |
| 6413 | | |
| 6414 | | 2006-03-24 09:14 phk |
| 6415 | | |
| 6416 | | * trunk/varnish-cache/bin/varnishlog/varnishlog.c: |
| 6417 | | |
| 6418 | | put symbolic names on the tags |
| 6419 | | |
| 6420 | | 2006-03-24 09:05 phk |
| 6421 | | |
| 6422 | | * trunk/varnish-cache/bin/Makefile.am, |
| 6423 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 6424 | | trunk/varnish-cache/bin/varnishlog, |
| 6425 | | trunk/varnish-cache/bin/varnishlog/Makefile.am, |
| 6426 | | trunk/varnish-cache/bin/varnishlog/varnishlog.c, |
| 6427 | | trunk/varnish-cache/configure.ac: |
| 6428 | | |
| 6429 | | Add a minimal log tailer. |
| 6430 | | |
| 6431 | | 2006-03-24 08:43 phk |
| 6432 | | |
| 6433 | | * trunk/varnish-cache/include/cli.h, |
| 6434 | | trunk/varnish-cache/include/libvarnish.h, |
| 6435 | | trunk/varnish-cache/include/shmlog.h, |
| 6436 | | trunk/varnish-cache/include/shmlog_tags.h: |
| 6437 | | |
| 6438 | | Move the SHM tags into a resuable .h file. |
| 6439 | | |
| 6440 | | Minor nits |
| 6441 | | |
| 6442 | | 2006-03-23 15:31 phk |
| 6443 | | |
| 6444 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6445 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 6446 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6447 | | trunk/varnish-cache/bin/varnishd/cache_shmlog.c, |
| 6448 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 6449 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6450 | | |
| 6451 | | Add shared memory log setup and stuffer function in the child process. |
| 6452 | | |
| 6453 | | Log whenever we get a CLI ping |
| 6454 | | |
| 6455 | | 2006-03-23 12:20 phk |
| 6456 | | |
| 6457 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6458 | | trunk/varnish-cache/bin/varnishd/cache.h, |
| 6459 | | trunk/varnish-cache/bin/varnishd/cache_acceptor.c, |
| 6460 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6461 | | trunk/varnish-cache/bin/varnishd/mgt_child.c, |
| 6462 | | trunk/varnish-cache/bin/varnishd/tcp.c, |
| 6463 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6464 | | |
| 6465 | | Now we're starting to get somewhere: Accept connections and assemble |
| 6466 | | a HTTP request. |
| 6467 | | |
| 6468 | | 2006-03-23 08:45 phk |
| 6469 | | |
| 6470 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6471 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 6472 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 6473 | | trunk/varnish-cache/bin/varnishd/tcp.c, |
| 6474 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6475 | | |
| 6476 | | Open TCP sockets |
| 6477 | | |
| 6478 | | 2006-03-17 13:41 phk |
| 6479 | | |
| 6480 | | * trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6481 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 6482 | | trunk/varnish-cache/bin/varnishd/cli_event.h, |
| 6483 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 6484 | | trunk/varnish-cache/bin/varnishd/mgt_child.c, |
| 6485 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6486 | | |
| 6487 | | Make it possible to suspend and resume a cli connection while we wait |
| 6488 | | for response from the child (or otherwise). |
| 6489 | | |
| 6490 | | Add a generic "pass-through" handler for cli requests we just pass on |
| 6491 | | to the child. |
| 6492 | | |
| 6493 | | 2006-03-17 10:03 phk |
| 6494 | | |
| 6495 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6496 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6497 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 6498 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 6499 | | trunk/varnish-cache/bin/varnishd/mgt.h, |
| 6500 | | trunk/varnish-cache/bin/varnishd/mgt_child.c, |
| 6501 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6502 | | |
| 6503 | | Add multiplexing for the mgt->child cli connection and get ping/pong |
| 6504 | | working across it. |
| 6505 | | |
| 6506 | | The management process will now keep the child process watchdog from |
| 6507 | | expiring. |
| 6508 | | |
| 6509 | | 2006-03-16 12:14 phk |
| 6510 | | |
| 6511 | | * trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6512 | | trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 6513 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 6514 | | trunk/varnish-cache/lib/libvarnish/argv.c, |
| 6515 | | trunk/varnish-cache/lib/libvarnish/cli.c: |
| 6516 | | |
| 6517 | | cleanup |
| 6518 | | |
| 6519 | | 2006-03-16 10:48 phk |
| 6520 | | |
| 6521 | | * trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6522 | | trunk/varnish-cache/bin/varnishd/cache_main.c, |
| 6523 | | trunk/varnish-cache/bin/varnishd/heritage.h, |
| 6524 | | trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6525 | | |
| 6526 | | Expand the empty shell a bit. |
| 6527 | | |
| 6528 | | Add CLI handler on stdin (for now, in production only if |
| 6529 | | debug is specified). |
| 6530 | | |
| 6531 | | Implement help, verbos, ping and start. |
| 6532 | | |
| 6533 | | start forks the child process, sets up listeners on its stdout/stderr |
| 6534 | | (where nothing should arrive in production). |
| 6535 | | |
| 6536 | | Add SIGCHLD handler to reap and restart the child. |
| 6537 | | |
| 6538 | | Add shell "main" for the child: Set up a CLI handler on the pipes |
| 6539 | | passed as heritage. |
| 6540 | | |
| 6541 | | Add ping command and keepalive timeout. |
| 6542 | | |
| 6543 | | 2006-03-16 10:46 phk |
| 6544 | | |
| 6545 | | * trunk/varnish-cache/bin/varnishd/cli_event.c, |
| 6546 | | trunk/varnish-cache/bin/varnishd/cli_event.h: |
| 6547 | | |
| 6548 | | Functions to handle the CLI with event(3)'s buffer events. |
| 6549 | | |
| 6550 | | This may eventually belong in a library for wider use. |
| 6551 | | |
| 6552 | | 2006-03-16 09:02 phk |
| 6553 | | |
| 6554 | | * trunk/varnish-cache/include/cli.h, |
| 6555 | | trunk/varnish-cache/include/cli_priv.h, |
| 6556 | | trunk/varnish-cache/lib/libvarnish/Makefile.am, |
| 6557 | | trunk/varnish-cache/lib/libvarnish/cli.c, |
| 6558 | | trunk/varnish-cache/lib/libvcl/Makefile: |
| 6559 | | |
| 6560 | | Generic and public stuff for CLI protocol handling. |
| 6561 | | |
| 6562 | | 2006-03-16 08:30 phk |
| 6563 | | |
| 6564 | | * trunk/varnish-cache/include/cli.h: |
| 6565 | | |
| 6566 | | add min+max argument counts |
| 6567 | | |
| 6568 | | 2006-03-15 20:34 phk |
| 6569 | | |
| 6570 | | * trunk/varnish-cache/include/cli.h: |
| 6571 | | |
| 6572 | | Add definitions pertaining to the ascii-protocol which will be used |
| 6573 | | multiple different places in the varnish architecture. |
| 6574 | | |
| 6575 | | 2006-03-14 12:54 des |
| 6576 | | |
| 6577 | | * trunk/varnish-cache/contrib, trunk/varnish-cache/contrib/libevent, |
| 6578 | | trunk/varnish-cache/contrib/libevent/Makefile.am, |
| 6579 | | trunk/varnish-cache/contrib/libevent/README, |
| 6580 | | trunk/varnish-cache/contrib/libevent/WIN32-Code, |
| 6581 | | trunk/varnish-cache/contrib/libevent/WIN32-Code/config.h, |
| 6582 | | trunk/varnish-cache/contrib/libevent/WIN32-Code/misc.c, |
| 6583 | | trunk/varnish-cache/contrib/libevent/WIN32-Code/misc.h, |
| 6584 | | trunk/varnish-cache/contrib/libevent/WIN32-Code/provos@badschwartau.provos.org.12766, |
| 6585 | | trunk/varnish-cache/contrib/libevent/WIN32-Code/win32.c, |
| 6586 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj, |
| 6587 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/event_test, |
| 6588 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/event_test/event_test.dsp, |
| 6589 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/event_test/test.txt, |
| 6590 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/libevent.dsp, |
| 6591 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/libevent.dsw, |
| 6592 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/signal_test, |
| 6593 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/signal_test/signal_test.dsp, |
| 6594 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/time_test, |
| 6595 | | trunk/varnish-cache/contrib/libevent/WIN32-Prj/time_test/time_test.dsp, |
| 6596 | | trunk/varnish-cache/contrib/libevent/acconfig.h, |
| 6597 | | trunk/varnish-cache/contrib/libevent/buffer.c, |
| 6598 | | trunk/varnish-cache/contrib/libevent/compat, |
| 6599 | | trunk/varnish-cache/contrib/libevent/compat/sys, |
| 6600 | | trunk/varnish-cache/contrib/libevent/compat/sys/_time.h, |
| 6601 | | trunk/varnish-cache/contrib/libevent/compat/sys/queue.h, |
| 6602 | | trunk/varnish-cache/contrib/libevent/compat/sys/tree.h, |
| 6603 | | trunk/varnish-cache/contrib/libevent/configure.in, |
| 6604 | | trunk/varnish-cache/contrib/libevent/devpoll.c, |
| 6605 | | trunk/varnish-cache/contrib/libevent/epoll.c, |
| 6606 | | trunk/varnish-cache/contrib/libevent/epoll_sub.c, |
| 6607 | | trunk/varnish-cache/contrib/libevent/evbuffer.c, |
| 6608 | | trunk/varnish-cache/contrib/libevent/event-internal.h, |
| 6609 | | trunk/varnish-cache/contrib/libevent/event.3, |
| 6610 | | trunk/varnish-cache/contrib/libevent/event.c, |
| 6611 | | trunk/varnish-cache/contrib/libevent/event.h, |
| 6612 | | trunk/varnish-cache/contrib/libevent/evsignal.h, |
| 6613 | | trunk/varnish-cache/contrib/libevent/kqueue.c, |
| 6614 | | trunk/varnish-cache/contrib/libevent/log.c, |
| 6615 | | trunk/varnish-cache/contrib/libevent/log.h, |
| 6616 | | trunk/varnish-cache/contrib/libevent/poll.c, |
| 6617 | | trunk/varnish-cache/contrib/libevent/rtsig.c, |
| 6618 | | trunk/varnish-cache/contrib/libevent/sample, |
| 6619 | | trunk/varnish-cache/contrib/libevent/sample/Makefile.am, |
| 6620 | | trunk/varnish-cache/contrib/libevent/sample/Makefile.in, |
| 6621 | | trunk/varnish-cache/contrib/libevent/sample/event-test.c, |
| 6622 | | trunk/varnish-cache/contrib/libevent/sample/signal-test.c, |
| 6623 | | trunk/varnish-cache/contrib/libevent/sample/time-test.c, |
| 6624 | | trunk/varnish-cache/contrib/libevent/select.c, |
| 6625 | | trunk/varnish-cache/contrib/libevent/signal.c, |
| 6626 | | trunk/varnish-cache/contrib/libevent/test, |
| 6627 | | trunk/varnish-cache/contrib/libevent/test/Makefile.am, |
| 6628 | | trunk/varnish-cache/contrib/libevent/test/Makefile.in, |
| 6629 | | trunk/varnish-cache/contrib/libevent/test/bench.c, |
| 6630 | | trunk/varnish-cache/contrib/libevent/test/regress.c, |
| 6631 | | trunk/varnish-cache/contrib/libevent/test/test-eof.c, |
| 6632 | | trunk/varnish-cache/contrib/libevent/test/test-init.c, |
| 6633 | | trunk/varnish-cache/contrib/libevent/test/test-time.c, |
| 6634 | | trunk/varnish-cache/contrib/libevent/test/test-weof.c, |
| 6635 | | trunk/varnish-cache/contrib/libevent/test/test.sh: |
| 6636 | | |
| 6637 | | Add Niels Provos's libevent 1.1a. |
| 6638 | | |
| 6639 | | 2006-03-14 12:00 des |
| 6640 | | |
| 6641 | | * trunk/varnish-cache/include/hash.h, |
| 6642 | | trunk/varnish-cache/include/libvarnish.h, |
| 6643 | | trunk/varnish-cache/include/queue.h, |
| 6644 | | trunk/varnish-cache/include/sbuf.h, trunk/varnish-cache/include/tree.h: |
| 6645 | | |
| 6646 | | Set the correct property (svn:keywords, not svn:keyword) |
| 6647 | | |
| 6648 | | 2006-03-14 11:57 des |
| 6649 | | |
| 6650 | | * trunk/varnish-cache/lib/libsbuf/Makefile.am, |
| 6651 | | trunk/varnish-cache/lib/libsbuf/sbuf.3, |
| 6652 | | trunk/varnish-cache/lib/libsbuf/sbuf.c: |
| 6653 | | |
| 6654 | | Add a man page, and set the correct property (svn:keywords, not |
| 6655 | | svn:keyword) |
| 6656 | | |
| 6657 | | 2006-03-14 09:31 phk |
| 6658 | | |
| 6659 | | * trunk/varnish-cache/bin/varnishd/varnishd.c: |
| 6660 | | |
| 6661 | | Add some trivial bits while I think about the hard ones |
| 6662 | | |
| 6663 | | 2006-03-14 09:15 phk |
| 6664 | | |
| 6665 | | * trunk/varnish-cache/include/Makefile.am, |
| 6666 | | trunk/varnish-cache/include/libvarnish.h, |
| 6667 | | trunk/varnish-cache/lib/libvarnish/Makefile.am, |
| 6668 | | trunk/varnish-cache/lib/libvarnish/argv.c: |
| 6669 | | |
| 6670 | | Add a function to break a command line like string into an argv[]. |
| 6671 | | This will be useful for the various text based protocols etc. |
| 6672 | | |
| 6673 | | 2006-03-13 14:23 des |
| 6674 | | |
| 6675 | | * trunk/varnish-cache/include/Makefile.am, |
| 6676 | | trunk/varnish-cache/include/hash.h, |
| 6677 | | trunk/varnish-cache/include/queue.h, trunk/varnish-cache/include/tree.h: |
| 6678 | | |
| 6679 | | Add hash.h, queue.h and tree.h from NetBSD-CURRENT. |
| 6680 | | |
| 6681 | | 2006-03-13 14:14 des |
| 6682 | | |
| 6683 | | * trunk/varnish-cache/configure.ac, trunk/varnish-cache/include/sbuf.h, |
| 6684 | | trunk/varnish-cache/lib/Makefile.am, trunk/varnish-cache/lib/libsbuf, |
| 6685 | | trunk/varnish-cache/lib/libsbuf/Makefile.am, |
| 6686 | | trunk/varnish-cache/lib/libsbuf/sbuf.c: |
| 6687 | | |
| 6688 | | Add libsbuf, based on the latest sbuf code from FreeBSD-CURRENT. |
| 6689 | | |
| 6690 | | 2006-03-13 13:30 phk |
| 6691 | | |
| 6692 | | * trunk/varnish-cache/autogen.sh: |
| 6693 | | |
| 6694 | | Pick up the gnu-autotools binary directory if we spot one. This |
| 6695 | | makes life on FreeBSD somewhat easier. |
| 6696 | | |
| 6697 | | 2006-03-13 12:37 phk |
| 6698 | | |
| 6699 | | * trunk/varnish-cache/lib/Makefile.am, trunk/varnish-cache/lib/libvcl, |
| 6700 | | trunk/varnish-cache/lib/libvcl/Makefile, |
| 6701 | | trunk/varnish-cache/lib/libvcl/sample.vcl, |
| 6702 | | trunk/varnish-cache/lib/libvcl/vcl_compile.c, |
| 6703 | | trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c, |
| 6704 | | trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl, |
| 6705 | | trunk/varnish-cache/lib/libvcl/vcl_lang.h, |
| 6706 | | trunk/varnish-cache/lib/libvcl/vcl_priv.h, |
| 6707 | | trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: |
| 6708 | | |
| 6709 | | Add first cut of VCL compiler to the tree. |
| 6710 | | |
| 6711 | | The Makefile is a temporary shim until I get the auto* stuff working. |
| 6712 | | |
| 6713 | | The sample.vcl is a small mock-up to test the compiler. |
| 6714 | | |
| 6715 | | Some of the .h files needs to move other places in the fullness of time. |
| 6716 | | |
| 6717 | | But other than that... |
| 6718 | | |
| 6719 | | 2006-03-02 10:32 des |
| 6720 | | |
| 6721 | | * trunk/varnish-cache: |
| 6722 | | |
| 6723 | | Ignore generated files; generated with the following command: |
| 6724 | | |
| 6725 | | svk propset svn:ignore "$(svk status | awk '/^\?/ { print $2 }')" . |
| 6726 | | |
| 6727 | | 2006-03-02 10:31 des |
| 6728 | | |
| 6729 | | * trunk/varnish-cache/include/Makefile.am, |
| 6730 | | trunk/varnish-cache/include/varnish, |
| 6731 | | trunk/varnish-cache/include/varnish/assert.h, |
| 6732 | | trunk/varnish-cache/include/varnishapi.h, |
| 6733 | | trunk/varnish-cache/lib/libvarnishapi/Makefile.am, |
| 6734 | | trunk/varnish-cache/lib/libvarnishapi/varnish_debug.c, |
| 6735 | | trunk/varnish-cache/lib/libvarnishapi/varnish_log.c, |
| 6736 | | trunk/varnish-cache/lib/libvarnishapi/varnish_util.c: |
| 6737 | | |
| 6738 | | Untested & undocumented login code. I don't have time to continue working |
| 6739 | | on it right now, but I want it in the tree so phk doesn't start duplicating |
| 6740 | | my effort. |
| 6741 | | |
| 6742 | | 2006-03-02 10:29 des |
| 6743 | | |
| 6744 | | * trunk/varnish-cache/bin/varnishd: |
| 6745 | | |
| 6746 | | Add varnishd to ignore list. |
| 6747 | | |
| 6748 | | 2006-02-27 14:21 des |
| 6749 | | |
| 6750 | | * trunk/varnish-cache/include: |
| 6751 | | |
| 6752 | | Ignore generated files. |
| 6753 | | |
| 6754 | | 2006-02-27 14:21 des |
| 6755 | | |
| 6756 | | * trunk/varnish-cache/lib, trunk/varnish-cache/lib/libvarnish, |
| 6757 | | trunk/varnish-cache/lib/libvarnishapi: |
| 6758 | | |
| 6759 | | Ignore generated files. |
| 6760 | | |
| 6761 | | 2006-02-27 14:21 des |
| 6762 | | |
| 6763 | | * trunk/varnish-cache/bin, trunk/varnish-cache/bin/varnishd: |
| 6764 | | |
| 6765 | | Ignore generated files. |
| 6766 | | |
| 6767 | | 2006-02-27 11:10 des |
| 6768 | | |
| 6769 | | * trunk/varnish-cache/autogen.sh, |
| 6770 | | trunk/varnish-cache/lib/libvarnish/Makefile.am, |
| 6771 | | trunk/varnish-cache/lib/libvarnishapi/Makefile.am: |
| 6772 | | |
| 6773 | | Correct libtool idiom: run libtoolize after aclocal, and use LTLIBRARIES |
| 6774 | | instead of LIBRARIES. |
| 6775 | | |
| 6776 | | 2006-02-27 09:55 des |
| 6777 | | |
| 6778 | | * trunk/varnish-cache/LICENSE: |
| 6779 | | |
| 6780 | | Don't forget the license! |
| 6781 | | |
| 6782 | | 2006-02-24 14:35 des |
| 6783 | | |
| 6784 | | * trunk/varnish-cache/Makefile.am, trunk/varnish-cache/autogen.sh, |
| 6785 | | trunk/varnish-cache/bin, trunk/varnish-cache/bin/Makefile.am, |
| 6786 | | trunk/varnish-cache/bin/varnishd, |
| 6787 | | trunk/varnish-cache/bin/varnishd/Makefile.am, |
| 6788 | | trunk/varnish-cache/bin/varnishd/varnishd.c, |
| 6789 | | trunk/varnish-cache/configure.ac, trunk/varnish-cache/include, |
| 6790 | | trunk/varnish-cache/include/Makefile.am, |
| 6791 | | trunk/varnish-cache/include/varnishapi.h, trunk/varnish-cache/lib, |
| 6792 | | trunk/varnish-cache/lib/Makefile.am, |
| 6793 | | trunk/varnish-cache/lib/libvarnish, |
| 6794 | | trunk/varnish-cache/lib/libvarnish/Makefile.am, |
| 6795 | | trunk/varnish-cache/lib/libvarnishapi, |
| 6796 | | trunk/varnish-cache/lib/libvarnishapi/Makefile.am: |
| 6797 | | |
| 6798 | | Source tree structure as agreed. |
| 6799 | | |
| 6800 | | 2006-02-22 14:31 des |
| 6801 | | |
| 6802 | | * trunk/varnish-cache, trunk/varnish-doc, trunk/varnish-proto, |
| 6803 | | trunk/varnish-tools: |
| 6804 | | |
| 6805 | | Additional subdivisions. |
| 6806 | | |