Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: varnish-0.9
Fetching contributors…

Cannot retrieve contributors at this time

file 6011 lines (4262 sloc) 187.221 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011
2006-08-10 14:04 des

* branches/0.9, branches/0.9/varnish-cache/configure.ac: Fork 0.9.

2006-08-10 13:03 des

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Rewrite
pass_chunked().

2006-08-10 11:48 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Got the
requesttime right this time.

I am noticing free()'s that are freeing empty
variables/pointers. Have to find where is happens.
Also noticing IP adresses not set correctly.

Still load of debugcode.

2006-08-10 11:10 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Updated to
work with new inner workings (ReqStart, ReqEnd, sbuf replacement
etc).

Code now compiles.

2006-08-10 08:56 des

* trunk/varnish-cache/bin/varnishd/tcp.c: FreeBSD needs
<netinet/in.h> for IPPROTO_IPV6 and IPV6_V6ONLY.

2006-08-10 07:38 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Added some
more meat to the program. Loads of debug code still on.

Next step is to add the correct time. It's a bit tricky, and I
haven't gotten it right just yet.

2006-08-09 14:49 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/configure.ac: Add an epoll()-based acceptor
for Linux 2.6. Simple empirical tests indicate
that epoll() performs significantly better than poll() (less CPU
usage).

2006-08-09 12:38 des

* trunk/varnish-cache/bin/varnishd/cache_center.c: Clear reference
to backend when we release our VCL reference.

2006-08-09 11:24 des

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/include/vrt_obj.h,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
trunk/varnish-cache/lib/libvcl/vcc_obj.c: Add support for using
separate backends for separate virtual hosts:

- remove the obj.backend variable, which is not connected to
anything.
- define a req.backend variable and implement l/r functions for
it
- complete / correct support for setting / comparing backend
values

2006-08-09 11:22 des

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c: Cosmetic:
redefine HTTP_HDR_* as an enum and rename MAX_HTTP_HDRS to
HTTP_HDR_MAX.

2006-08-09 09:36 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/tcp.c: Rewrite open_tcp(): use
only one listening socket. Try for a combined
IPv6 / IPv4 socket; if IPv6 is not available, fall back to an
IPv4 socket.

2006-08-08 14:52 des

* trunk/varnish-cache/lib/libvarnishapi/shmlog.c: While FreeBSD
defaults to MAP_SHARED, Linux requires either MAP_SHARED or
MAP_PRIVATE to be specified. Do so.

2006-08-08 14:00 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/configure.ac: Autodetect the need to link
against libdl for dlopen().

2006-08-08 12:57 des

* trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/compat/setproctitle.h,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libcompat/setproctitle.c: Add a
setproctitle() stub to libcompat.

2006-08-08 12:57 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: #include
"compat/srandomdev.h" for srandomdev()

2006-08-08 12:55 des

* trunk/varnish-cache/include/compat/vis.h,
trunk/varnish-cache/lib/libcompat/vis.c: Expand keywords.

2006-08-08 12:46 des

* trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/configure.ac: #include <sys/vfs.h> for
fstatfs if it is available.

2006-08-08 12:45 des

* trunk/varnish-cache/configure.ac: Now that we define
_GNU_SOURCE, the asprintf() / vasprintf() hack is no
longer required.

2006-08-08 12:42 des

* trunk/varnish-cache/configure.ac: Defining _GNU_SOURCE gives us
native asprintf() and strptime() on glibc
systems, and has no effect on FreeBSD.

2006-08-08 12:31 des

* trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishtop/Makefile.am,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/compat/vis.h,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libcompat/vis.c: Bring in FreeBSD's
version of vis(3), strvis(3) and strvisx(3).

2006-08-08 12:15 des

* trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/compat/srandomdev.h,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libcompat/srandomdev.c: Add a simple
srandomdev() implementation inspired by the one in FreeBSD.

2006-08-08 09:15 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: The correct
header for poll() is <poll.h>, not <sys/poll.h> like the Linux
man page says (poll() is an XSI extension in SUSv[23])

2006-08-08 07:47 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/configure.ac: Autodetect the availability of
kqueue() and / or poll().

2006-08-08 07:47 des

* trunk/varnish-cache/bin/varnishstat/varnishstat.c: #include
"libvarnish.h" for varnish_version().

2006-08-08 07:36 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Add back
sendfile support (under #ifdef HAVE_SENDFILE) but don't engage
it for small objects on the suspicion that it has highish setup
cost.

2006-08-08 07:17 des

* trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/tcp.c,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/compat,
trunk/varnish-cache/include/compat.h,
trunk/varnish-cache/include/compat/asprintf.h,
trunk/varnish-cache/include/compat/strlcat.h,
trunk/varnish-cache/include/compat/strlcpy.h,
trunk/varnish-cache/include/compat/vasprintf.h,
trunk/varnish-cache/lib/libcompat/asprintf.c,
trunk/varnish-cache/lib/libcompat/strlcat.c,
trunk/varnish-cache/lib/libcompat/strlcpy.c,
trunk/varnish-cache/lib/libcompat/vasprintf.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c: Split compat.h
into one header per function to avoid issues with e.g. the
vasprintf() prototype needing <stdarg.h> even when it isn't used.

2006-08-08 07:15 des

* trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishstat/Makefile.am:
varnish{ncsa,stat} also need librt.

2006-08-08 07:03 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/hash_classic.c,
trunk/varnish-cache/configure.ac: Attempt to detect the
availability of RSA's MD5 implementation, and the
need to link against libmd to get it.
Attempt to detect the need for linking against librt to get
clock_gettime().

2006-08-08 07:01 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Fix braino

2006-08-08 06:39 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Default to 4096
buckets and 256 mutexes

2006-08-08 06:38 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Use crc32 hash
by default, MD5 is a compile time option

2006-08-08 06:37 phk

* trunk/varnish-cache/bin/varnishd/flint.lnt: lbv_assert never
returns

2006-08-07 21:08 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_token.c: 64bit changes

2006-08-07 21:01 phk

* trunk/varnish-cache/configure.ac: Add -Wformat and remove
-fno-inline which disables it.

2006-08-07 21:01 phk

* trunk/varnish-cache/lib/libvarnish/assert.c: Fix printf format
error

2006-08-07 20:50 phk

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/configure.ac: Update to new shmlog tag

2006-08-07 20:47 phk

* trunk/varnish-cache/lib/libvcl/vcc_acl.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_priv.h,
trunk/varnish-cache/lib/libvcl/vcc_token.c: Eliminate use of
extensible printf

2006-08-07 20:24 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Improve the "-d"
and "-d -d" facilities.

When we close a CLI and it had fd# 0 and/or fd#1, reopen these
as /dev/null so the will not be reused for the CLI pipe to the
child on next restart, otherwise stdout/stderr output from the
manager would get sent there and confuse the clients CLI reader.

Don't double free a pointer to the CLI buffer.

Accept non-zero results from cli_readres() errors are non-fatal.

Use stderr more consistently for manager debugging.

2006-08-07 18:33 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: An assert to catch
silly errors.

2006-08-07 17:27 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/include/shmlog_tags.h: Rename SHMlog tags
for consistency
XID -> ReqStart
ReqServTime -> ReqEnd

2006-08-07 17:18 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Remove printf
extensions used for development debugging

2006-08-07 17:18 phk

* trunk/varnish-cache/include/libvarnish.h: Make assert do the
right thing

2006-08-07 17:15 phk

* trunk/varnish-cache/lib/libvcl/vcc_token.c: Clean up #includes

2006-08-07 17:10 phk

* trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/assert.c: Call __assert()
lbv_assert() instead.

2006-08-07 17:08 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/lib/libvarnish/assert.c: quench warnings
related to libvarnish.h

2006-08-07 16:45 des

* trunk/varnish-cache/configure.ac: Don't trust the documentation
- when it says "additional headers", it
actually means "additional code to place before main() in the
test program"

2006-08-07 16:42 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/bin/varnishd/hash_classic.c,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/bin/varnishd/shmlog.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/tcp.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/bin/varnishtester/varnishtester.c,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/argv.c,
trunk/varnish-cache/lib/libvarnish/assert.c: Add our own assert
in libvarnish.h

Include libvarnish.h from cache.h and mgt.h

2006-08-07 16:29 des

* trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: #include
"libvarnish.h" for varnish_version().

2006-08-07 16:26 des

* trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c: #include
"compat.h" for asprintf().

2006-08-07 16:24 des

* trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/lib/libvcl/vcc_acl.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_token.c: vsb.h is not a
system header.

2006-08-07 16:23 des

* trunk/varnish-cache/bin/varnishtop/varnishtop.c: #include
"libvarnish.h" for varnish_version().

2006-08-07 16:23 des

* trunk/varnish-cache/bin/varnishd/mgt_vcc.c: #include "compat.h"
for asprintf(). Sort includes.

2006-08-07 16:20 des

* trunk/varnish-cache/bin/varnishd/varnishd.c: Define INFTIM if it
isn't already.

2006-08-07 16:20 des

* trunk/varnish-cache/bin/varnishd/storage_file.c: Spell SIZE_MAX
correctly.

2006-08-07 16:17 des

* trunk/varnish-cache/bin/varnishd/mgt_event.c: Define INFTIM if
it isn't already.

2006-08-07 16:17 des

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: #include <compat.h>
for asprintf().

2006-08-07 16:15 phk

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: Handle CLI trouble
with the childproc

2006-08-07 16:14 phk

* trunk/varnish-cache/include/cli.h,
trunk/varnish-cache/lib/libvarnish/cli_common.c: Add CLIS_COMMS
errno (400) and return an error text as well.

2006-08-07 16:11 des

* trunk/varnish-cache/bin/varnishd/tcp.c,
trunk/varnish-cache/configure.ac: Check whether we have accept
filters before trying to use them.

2006-08-07 16:05 phk

* trunk/varnish-cache/lib/libvarnish/cli_common.c: Handle read
errors on the cli pipes.

2006-08-07 15:54 des

* trunk/varnish-cache/configure.ac: Improve descriptions of
HAVE_ASPRINTF / HAVE_VASPRINTF.

2006-08-07 15:54 phk

* trunk/varnish-cache/lib/libvarnish/vsb.c: Quench warnings.

2006-08-07 15:51 des

* trunk/varnish-cache/include/compat.h,
trunk/varnish-cache/lib/libcompat/vasprintf.c: My idiocy knows
no bounds. Make sure this actually builds.

2006-08-07 15:47 des

* trunk/varnish-cache/configure.ac: Improve detection of the
presence and usability of asprintf() / vasprintf().

2006-08-07 15:42 des

* trunk/varnish-cache/include/compat.h: paste-o.

2006-08-07 15:24 des

* trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/compat.h,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libcompat/asprintf.c,
trunk/varnish-cache/lib/libcompat/strlcat.c,
trunk/varnish-cache/lib/libcompat/strlcpy.c,
trunk/varnish-cache/lib/libcompat/vasprintf.c: Add
implementations of asprintf(3) and vasprintf(3).

2006-08-07 15:09 des

* trunk/varnish-cache/include/libvarnish.h: Relucantly include
<time.h> for time_t. We'll have to clean up our header
files at some point.

2006-08-07 15:08 des

* trunk/varnish-cache/bin/varnishd/shmlog.c: Remove redundant
definition of __assert().

2006-08-07 15:00 des

* trunk/varnish-cache/include/libvarnish.h: TIM_{format,parse}()
are used unconditionally, so declare them unconditionally.

2006-08-07 15:00 des

* trunk/varnish-cache/bin/varnishd/cache.h: Sort includes, add
<stdint.h> for uint64_t.

2006-08-07 14:55 des

* trunk/varnish-cache/lib/libvcl/vcc_compile.c: Eliminate __unused.

2006-08-07 14:52 des

* trunk/varnish-cache/lib/libvarnish/cli_common.c: Sort includes,
add <stdint.h> for uintptr_t.

2006-08-07 12:42 des

* trunk/varnish-cache/lib/libvarnish/vsb.3: Define
str-Lb-libvarnish so ".Lb libvarnish" will work. This should be
in
a shared file somewhere with some soelim magic in the Makefile,
but don't
bother right now - the file isn't installed anyway.

2006-08-07 12:35 des

* trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishstat/varnishstat.c,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/version.c: Add a -V option
(display version and exit) to all programs.

2006-08-07 11:09 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_vrt_re.c,
trunk/varnish-cache/bin/varnishd/flint.lnt,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/bin/varnishtop/Makefile.am,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/cli_common.h,
trunk/varnish-cache/include/libvcl.h,
trunk/varnish-cache/include/sbuf.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/include/vsb.h,
trunk/varnish-cache/lib/Makefile.am,
trunk/varnish-cache/lib/libsbuf,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/cli_common.c,
trunk/varnish-cache/lib/libvarnish/vsb.3,
trunk/varnish-cache/lib/libvarnish/vsb.c,
trunk/varnish-cache/lib/libvcl/vcc_acl.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcc_token.c: Fold libsbuf into
libvarnish, with s/sbuf/vsb/g.

2006-08-07 10:46 phk

* trunk/varnish-cache/bin/varnishd/cache_pipe.c: Timeout pipe
connections after 600 seconds.

2006-08-07 10:40 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Use a 600
second timeout, 120 second is too little.

2006-08-07 09:21 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Set
SO_SNDTIMEO to 120 seconds

2006-08-07 08:42 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/stevedore.h,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c: First step of
slow client handling: Lose the stevedore function
for sending and instead record the fd+off_t in the storage
object.

This eliminates sendfile from storage_file.c, next step is to put
it back in the generic code in cache_response.c

2006-08-07 05:52 des

* trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/lib/libvarnish/cli_common.c: Update #include
directives.

2006-08-07 05:49 des

* trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.h,
trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/include/binary_heap.h,
trunk/varnish-cache/include/cli_priv.h,
trunk/varnish-cache/include/miniobj.h,
trunk/varnish-cache/include/stats.h,
trunk/varnish-cache/include/varnish/assert.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvarnish/argv.c,
trunk/varnish-cache/lib/libvarnish/binary_heap.c,
trunk/varnish-cache/lib/libvarnish/cli.c,
trunk/varnish-cache/lib/libvarnish/time.c,
trunk/varnish-cache/lib/libvarnishapi/varnish_debug.c,
trunk/varnish-cache/lib/libvarnishapi/varnish_log.c,
trunk/varnish-cache/lib/libvarnishapi/varnish_util.c: Expand
keywords.

2006-08-07 05:49 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/common_cli.c,
trunk/varnish-cache/bin/varnishd/common_cli.h,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/cli_common.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/cli_common.c: Move
common_cli.[ch] out of varnishd, and rename them to
cli_common.[ch].

2006-08-07 05:47 des

* trunk/varnish-cache/bin/varnishd/Makefile.am: List headers in
noinst_HEADERS instead of SOURCES.

2006-08-07 00:21 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Fresh start
after study of output from varnishlog -o.

First off is IP adress logging and clearing.

2006-08-06 17:00 des

* trunk/varnish-cache: Add compile to svn:ignore.

2006-08-06 16:55 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Make
-w -
work as expected.

2006-08-06 15:02 des

* trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishtester/Makefile.am,
trunk/varnish-cache/bin/varnishtop/Makefile.am,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libsbuf/Makefile.am,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnishapi/Makefile.am,
trunk/varnish-cache/lib/libvcl/Makefile.am: Systematically
include config.h.

2006-08-06 14:33 des

* trunk/varnish-cache/bin/varnishd/Makefile.am: Forcibly include
config.h.

2006-08-06 13:51 des

* trunk/varnish-cache/configure.ac: Change version to "trunk"
until I can figure out a way to have it reflect
the current date.

2006-08-06 13:49 des

* trunk/varnish-cache/configure.ac: Include -pipe in CFLAGS.
Reduce optimization level to -O when debugging.

2006-08-06 12:51 des

* trunk/varnish-cache: Adjust directory properties.

2006-08-06 12:49 des

* trunk/varnish-cache/bin/varnishlog,
trunk/varnish-cache/bin/varnishncsa,
trunk/varnish-cache/bin/varnishstat,
trunk/varnish-cache/bin/varnishtester,
trunk/varnish-cache/bin/varnishtop,
trunk/varnish-cache/lib/libcompat,
trunk/varnish-cache/lib/libsbuf, trunk/varnish-cache/lib/libvcl:
Adjust directory properties.

2006-08-06 12:26 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishstat/Makefile.am: Add missing
headers and man pages.

2006-08-06 12:26 des

* trunk/varnish-cache/autogen.sh: We no longer have any
CONFIG_SUBDIRS.

2006-08-06 12:25 des

* trunk/varnish-cache/include/Makefile.am: Add missing headers.

2006-08-06 12:23 des

* trunk/varnish-cache/Makefile.am: Umm, *really* retire libevent.

2006-08-06 12:23 des

* trunk/varnish-cache/Makefile.am,
trunk/varnish-cache/configure.ac, trunk/varnish-cache/contrib:
Retire libevent.

2006-08-06 12:20 des

* trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/configure.ac: Fully disconnect varnishtester.

2006-08-06 00:44 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: I have
realized that I have major structure problems. I will have to
study varnishlog output a bit more to understand it better.

May wanna start clean again, and use hardearned knowledge to
make better and more robust structure.

2006-08-05 22:43 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Checks show
that my IP adress checker is very restrictive and probably
deletes other loglines. We still bleeds null lines also.

This will have to be cleaned up.

2006-08-05 22:12 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Loglines with
no IP should no longer appear. That also cleared all lines
containing a null. Not sure if my check for IP is to harsly
implemented and cleans to much.

2006-08-05 21:35 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Centralized
the stringwriting at last, also started memory cleanup.

2006-08-05 21:11 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Added user,
loginname, statuscode (200, 304 etc.), byte and referer to make
a logline compliant. User and loginname is hardcoded. Referer
and User-agen is unclean. Timecode is not working. This version
leaks memory bigtime, and is not ready for alpha yet.

2006-08-05 20:52 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: For
consistency: Go to deliver state instead of delivering locally.

2006-08-05 18:11 phk

* trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c: Make vcl
methods call their defaults as a last resort.

Fix the location table so it knows about the default code too.

2006-08-05 17:30 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: And that is not a
good idea either.

2006-08-05 17:30 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: This was not a
valid test.

2006-08-05 17:04 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Add some
undocumented code to look for something that worries me.

2006-08-05 16:41 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Issue error
message for CLI::start and CLI::stop if child is
not in a legal state for command.

2006-08-05 16:32 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Also trap SIGTERM

2006-08-05 16:31 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: More work on the
debug stunt

2006-08-05 15:55 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c: Plug memory leaks
related to starting/stopping child.

2006-08-05 15:40 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Replace
client_should_run with a 5 state enum to avoid races if multiple
CLI sources yell at the same time.

2006-08-05 15:38 phk

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: Bail if the cli pipe
is not ready

2006-08-05 15:38 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Polish the
debugstunt and make it possible to avoid it.

2006-08-05 15:35 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c: We don't disturb
ourselves.

2006-08-05 14:24 phk

* trunk/varnish-cache/bin/varnishd/common_cli.c,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c: More defensive
coding and a couple of bugs less.

2006-08-05 14:22 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: More defensive
coding.

2006-08-05 12:45 phk

* trunk/varnish-cache/bin/varnishd/common_cli.c,
trunk/varnish-cache/bin/varnishd/common_cli.h,
trunk/varnish-cache/bin/varnishd/mgt_cli.c: Add a timeout to
reads from the child CLI pipe so we don't hang
for ever.

2006-08-05 12:24 phk

* trunk/varnish-cache/bin/varnishd/flint.lnt: Improve.

2006-08-05 12:24 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Style cleanup.

remove two unused variables.

2006-08-05 12:24 phk

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: Remove unused include

Fix function arg type

2006-08-05 12:23 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: Make sanity
check of binheap permanent and fix style accordingly.

2006-08-05 12:23 phk

* trunk/varnish-cache/bin/varnishd/common_cli.c: Remove unused
include

free buffer on error.

2006-08-05 12:22 phk

* trunk/varnish-cache/bin/varnishd/cache_cli.c: Make sure we don't
overflow the line buffer

Remove unused #include

2006-08-05 12:20 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_vcl.c: Remove unused "ip"
from backend.

Make VCL_Load static, and give it a NULL check.

2006-08-05 12:19 phk

* trunk/varnish-cache/bin/varnishd/common_cli.h: Cleanup unused
stuff

2006-08-05 12:19 phk

* trunk/varnish-cache/bin/varnishd/mgt.h: Remove prototypes for no
longer existing functions

2006-08-05 12:18 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: Remove unused
includes

2006-08-05 12:17 phk

* trunk/varnish-cache/bin/varnishd/flint.sh: don't search libevent
for includes

2006-08-05 12:17 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c: style fix

2006-08-05 12:16 phk

* trunk/varnish-cache/bin/varnishd/mgt_vcc.c: Rename struct vcls
to vclprog

2006-08-05 11:44 phk

* trunk/varnish-cache/bin/varnishd/cli_common.c: remove old file

2006-08-05 11:16 phk

* trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c: Change manager to
use mgt_event.h instead of threads to be lazy thread
developer compatible.

POSIX, no surprise, doesn't really tell what should happen to a
threaded
process which forks and consequently implemenations vary
somewhat,
from Solaris which seems to Do The Right Thing, via Linux where
it
works "most of the time" and to FreeBSD which more or less
actively
sabotages any such attempt.

Grin and live with it...

2006-08-05 11:13 phk

* trunk/varnish-cache/bin/varnishd/cache_cli.c: Remove pthread.h
include, it's included in cache.h

2006-08-05 11:12 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c: Remove debugging
printfs

2006-08-05 11:08 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c: More bugfixes

2006-08-05 11:07 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: Add assert

2006-08-05 10:31 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_event.h: bugfixes

2006-08-05 09:27 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_event.h: Add signal support.

2006-08-05 08:49 phk

* trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_event.h: bugfixes

2006-08-05 08:19 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/mgt_event.c,
trunk/varnish-cache/bin/varnishd/mgt_event.h: Add a miniature
event engine based on poll(2).

It's general enough to find other uses, but right now it's only
for
the manager process.

2006-08-05 01:17 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Got the IP,
Request and User-Agent sorted out. Working on the time

2006-08-04 20:03 phk

* trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Initialize all
directions to "opposite" for -b and -c to avoid
spurious first entries.

2006-08-04 19:42 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Use id for
printing

2006-08-04 19:36 phk

* trunk/varnish-cache/include/stat_field.h: Stats field changes

2006-08-04 19:36 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_session.c: More
comprehensive performance stats and a few asserts, just in case.

2006-08-04 11:10 phk

* trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.h,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c: Now that we keep
track of loaded VCLs in the manager, we might
as well allow their manipulation also when the child is not
running.

2006-08-04 10:54 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.h,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/include/cli.h,
trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl: Redo VCL
program handling.

Keep track of all loaded VCL programs in the manager and tell the
child to load them via VCL.

Don't start he acceptor thread until a "start" command cones down
the CLI.

XXX: Right now we leak stuff when a VCL program is dicarded

2006-08-04 10:23 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.h,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Redo our management
of compiled VCL programs:

Take default_vcl out of heritage.

Keep track of all compiled VCL files and delete them at
exit.

After starting child, use CLI to load all vcl programs
and then issue "start" via the CLI.

In the cacher, don't start the acceptor until we get
a start command.

2006-08-04 09:19 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_vcc.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Move VCL compiler
related stuff to mgt_vcc.c

2006-08-04 09:06 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Remove old cli
related stuff, it now lives elsewhere

2006-08-04 09:06 phk

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: reimplement CLI stats

2006-08-04 07:21 phk

* trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c: Implement CLI ping
in manager, this is a "per hop" command.

Add mgt_cli_askchild() function to poke the CLI interface to
the child.

Use it to ping the child every second.

2006-08-04 07:20 phk

* trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/common_cli.c,
trunk/varnish-cache/bin/varnishd/common_cli.h: Move
cli_func_ping to common_cli

2006-08-04 07:19 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c: SIGCHLD has
already been taken care of earlier.

2006-08-04 06:53 phk

* trunk/varnish-cache/bin/varnishd/common_cli.c,
trunk/varnish-cache/bin/varnishd/common_cli.h,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/include/cli.h: Change the CLI protocol in a
subtle but useful way:

The first line of the response has a fixed format ("%-3d %-8u\n")
and consequently fixed length (CLI_LINE0_LEN == 13).

This makes parsing responses more efficient. Add a function
in common_cli to do so.

2006-08-04 06:23 phk

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: (Re)Implement
passthru of cli commands, we can now talk with the
cache process again.

2006-08-04 06:21 phk

* trunk/varnish-cache/include/cli.h: Add CLIS_CANT status code for
when something is valid but currently
impossible.

2006-08-04 06:21 phk

* trunk/varnish-cache/bin/varnishd/cache_cli.c: Typo: write cli
result to correct pipe.

2006-08-03 23:42 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Placed a new
sbuf_clear at a more strategic place. It got cluttered when a
host left without SessionClose of SessionReuse.

2006-08-03 22:01 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Got a
workaround for IP adress fetching. If we connect logger while
Varnish is running, we won't catch the IP from SessionOpen since
it's already done that. Workaround is to catch the IP from
SessionReuse if IP of session is NULL

2006-08-03 19:21 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Fix copy&paste
bug in fetch_chunked.

2006-08-03 19:20 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Sanitycheck that
the length of an object adds up, right when we
fetch it.

2006-08-03 11:46 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Imlement stopping
and restarting of child process.

Not as useful as it will be yet, see ticket 22

2006-08-03 11:45 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Make the pipe-stunt
debug process smarter.

2006-08-03 10:37 phk

* trunk/varnish-cache/bin/Makefile.am: Take varnishtester out of
the loop until it can be de-libevented

2006-08-03 10:37 phk

* trunk/varnish-cache/bin/varnishd/mgt_cli.c: Add stop command as
well.

2006-08-03 10:16 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Think I have
found a program structure that works. Filling in bits to build
logline.

2006-08-03 09:45 phk

* trunk/varnish-cache/Makefile.am, trunk/varnish-cache/autogen.sh,
trunk/varnish-cache/bin/varnishtester/Makefile.am: Remove
libevent from the picture.

2006-08-03 09:45 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cli_common.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/cli_event.h,
trunk/varnish-cache/bin/varnishd/common_cli.c,
trunk/varnish-cache/bin/varnishd/common_cli.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/mgt_cli.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Rip out the old CLI
handling and start over, more or less.

Still bits missing.

2006-08-03 06:45 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_cli.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cli_event.h: Rework the cache
process CLI handling:

We are only accepting CLI from the pipes in heritage, so simply
run a loop reading those, dispatching lines as we see them.

Export CLI_cmds[] so that the management process can see it,
we might as well take advantage of the shared binary where we
can.

2006-08-02 22:53 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Added
SessionReuse so I now write a logline for SessionClose and
SessionReuse.

2006-08-02 22:33 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Starting to
get the structure right (I think). Thx for the NULL on each
string Poul-Hennning :)

2006-08-02 20:59 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: Add an assert,
just in case.

2006-08-02 20:54 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: Fix a bug when
deleting items in the binheap

2006-08-02 19:12 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: log StatAddr
with fd=0 to avoid out-of-order confusion

2006-08-02 18:17 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Allow ENOENT
on removing kqueue events, a close will have drained
them already.

2006-08-02 18:12 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Tell daemon(3) to
not chdir in debugging mode so we can find our core dumps.

2006-08-02 17:45 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Enter pass mode
through the front door.

2006-08-02 17:27 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: More asserts,
sp->vbc this time.

2006-08-02 15:55 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Remember to clear
sp->vbc

2006-08-02 13:28 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Don my plumbers
outfit and twist a lot of pipes into shape:

When -d(ebug) is specified we fork before calling daemon.

The parent process becomes a miniature cat(1) program which
connects
stdin/stdout with the management process stdin/stdout.

It also knows that SIGINT should be passed on to the management
process
in order to make it DTRT.

Any other cause of death for this "debugger" process will (once I
teach the CLI about it) not affect the running varnish and
therefore
it will be possible to start varnish in debugging mode, tweak
things
a bit and CTRL-D and leave it running in the properly
daemon(3)'ed
background.

The reason for this rather complicated bit of pipework is that we
can not call daemon(3) once we have started any threads (only the
calling thread survives) and we would loose our parent
relationship
to the cache process also.

2006-08-02 12:05 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Typo: Also
monitor remote sockets with the poll based acceptor.

2006-08-02 11:58 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c: Remove the
libevent from the backend pool manager.

Simplify the logic here while we're at it.

2006-08-02 11:18 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Add <stdarg.h>
include

2006-08-02 11:17 phk

* trunk/varnish-cache/bin/varnishd/cache_pipe.c: Remove unused
struct.

2006-08-02 10:53 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c: Simplify
backend connection memory management.

2006-08-02 10:40 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Replace
libevent based acceptor with poll(2) based acceptor.

2006-08-02 09:34 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_http.c: Bite the bullet
and write an alternate acceptor which uses kqueue
directly instead of libevent.

Degeneralize the header reading code in cache_http.c which seems
to
be cleaner anyway.

An #ifdef at the top of cache_acceptor.c selects which
implementation
you want: libevent or kqueue.

2006-08-02 07:23 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Convert pipe to
use poll(2) on the two filedescriptors it cares about
and eliminate the per-workerthread event engine entirely.

2006-08-02 07:07 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c: I have nothing
but circumstantial evidence that libevent is involved
in the current stack corruption I see, but we might as well avoid
using it where we can:

Don't engage the eventengine when we talk to the backend, just
call
read(2) directly.

2006-08-02 04:57 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/hash_classic.c: More miniobj
paranoia

2006-08-01 19:48 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: More miniobj
checks

2006-08-01 17:54 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: More miniobj
checks

2006-08-01 16:42 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/flint.lnt: More miniobj checks

2006-08-01 16:26 phk

* trunk/varnish-cache/bin/varnishd/cache_response.c: more miniobj
checks

2006-08-01 15:09 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/cache_vrt_acl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt_re.c: Flinting.

2006-08-01 15:08 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Make 32bit
limitation work better.

2006-08-01 15:08 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Fixx off by one
error.

2006-08-01 14:53 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/storage_file.c: Add miniobj
checks om SMF and STORAGE

2006-08-01 12:38 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c: This is getting
too longhaired: Give backend connections another
http header which we can use to build the object headers in.

2006-08-01 12:04 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Experiment:
don't use req's workspace to build object http header.

2006-08-01 09:39 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/include/shmlog_tags.h: Record timestamp when
we have received completed HTTP request header,
and define this as the "start of request timestamp".

Define "end of request timestamp" as when we are ready to
transmit
HTTP header back.

SHMlog the start and difference between start and stop with
ReqServTime
tag.

Keep track of idle sessions using CLOCK_MONOTONIC to avoid
trouble
here should our clock get stepped.

2006-07-31 22:21 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Added some
more toying with the data. All is still a mess, and I am not
sure of structure yet. PHK is also doing changes in areas that
will be needed.

2006-07-31 22:09 phk

* trunk/varnish-cache/bin/varnishd/shmlog.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Always NUL
terminate shmlog entries.

2006-07-31 21:49 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/include/shmlog_tags.h: Create three groups
of seven SHMlog tags:

{Rx,Tx,Obj}{Request,Response,Status,URL,Protocol,Header,LostHeader}

And log http header munching accordingly.

2006-07-31 21:46 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Remove unused
variable

2006-07-31 21:37 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: addr might be
NULL if we are called from the prefetcher.

2006-07-31 21:04 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Add
http_ClrHeader() and cure an unintended bug-oid its use exposes:
we checked if the request is a GET long after we should have.

2006-07-31 20:38 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Add a
http_SetResp() function for constructing HTTP responses (like
304).

Eliminate the header index from http_SetHeader() which is no
unused.

2006-07-31 20:27 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/include/shmlog_tags.h: Log the headers we
store in the object under ObjHeader so that
we don't get two confusing batches of TxHeader in the sessions
logentries.

2006-07-31 19:18 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Fix the
dot-graph

2006-07-31 14:50 andersb

* trunk/varnish-cache/bin/varnishncsa/varnishncsa.c: Initial
commit of real structure. This code will print the User-Agent.

2006-07-31 07:26 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Introduce
http_SetHeader() for setting a http header to a const string,
no need to waste time printf'ing in this case, and no need to
waste workspace.

2006-07-31 07:13 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Don't fill more
than half the workspace with received data, we need to
have space for composing the reply as well.

Without this fix, the entire workspace could be filled with
pipelined
requests and we would have no space to compose the reply.

2006-07-31 06:36 des

* trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/bin/varnishncsa,
trunk/varnish-cache/bin/varnishncsa/Makefile.am,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.1,
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c,
trunk/varnish-cache/configure.ac: Clone varnishncsa off of
varnishlog. Anders will hack on it to produce
NCSA-style (common / combined) logs.

2006-07-31 06:24 des

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Unbreak build.

2006-07-28 13:41 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: "HEAD" has 4
characters.

2006-07-24 10:13 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: remove this file
(again)

2006-07-22 22:01 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: reorg a little
bit.

2006-07-22 21:20 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/stevedore.h,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c: Eliminate
redundant args from stevedore->send()

Have WRK_Write() and friends return number of bytes (we can't use
WRK_Flush() as that may act on both header and body).

Collect more stats.

2006-07-22 20:57 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/stat_field.h: Add per address, per
session and total statistics.

We (will) collect data in unlocked per workerthread accumulators
and whenever the workerthread leaves the session, we charge the
bill to the srcaddr (issuing a StatAddr shmrecord), to the
session
and to the global counters in the stats struct.

When sessions die we issue a StatSess shmrecord.

StatAddr and StatSess has the same format:
address
port (always zero for StatAddr)
duration (seconds)
#sessions
#requests
#pipe
#pass
#fetch
#hdrbytes
#bodybytes

2006-07-22 16:55 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Make sure there
always is a Host: header in fetch requests.

We fill it in with backend.hostname, but this may not be optimal
(direct IP# etc etc) so VCL should be able to override it.

2006-07-22 16:26 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Action pass
from vcl_hit() needs to go to STP_PASS

2006-07-22 16:15 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c: Always use GET
and HTTP/1.1 against the backend for fetch

2006-07-22 13:58 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: exit after error

2006-07-22 12:00 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_vrt_re.c,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c: Implement
regexp matching of strings in VCL.

For now we default to REG_EXTENDED, but it might make sense
to let the user control this flag and the case sensitivity.

Another concern is the stringification of regexps, it may lead
to backslash madness. Maybe we should define '...' string types
also and do no backslash substitution in those at all.

2006-07-22 10:41 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt_acl.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcc_acl.c,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c: Change the acl
syntax slightly: the ( ... ) should enclose all of
the rule (ie: also ! and /mask if present).

Implement matching for IPv4.

Acl tests are shmlogged as follows (doc candidate):

shmlog tag: VCL_actl

"NO_MATCH $acl"
client did not match access list $acl
"FAIL $acl $rule"
getaddrinfo(3) failed on $rule which had a '!'
"MATCH $acl $rule"
client matched $rule
"NEG_MATCH $acl $rule"
client matched negated (!) $rule

2006-07-22 10:35 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_session.c: Store the
socket address in the session

2006-07-22 09:38 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/cache_vrt_acl.c,
trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/include/vrt_obj.h,
trunk/varnish-cache/lib/libvcl/vcc_acl.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl: VCL
compiler:
add two sbufs for "init" and "fini" actions.

VCL ACLs: Change syntax and implementation as follows.

ACL Syntax now works the following way:

acl $name {
! ( "myhost.com" ) ;
"10.0.0.1" /8 ;
}

The '!' means not. If the address matches the rest of the rule
the address does NOT match the acl and the search terminates
here.

Enclosing the string in paranthesis means that the rule will be
ignored
if the string cannot be converted to an address (with
getaddrinfo).

When a string can not be looked up, and is not enclosed in a
paranthesis, a positive rule (ie: without !) will not match and a
negative rule (with !) will match.

A mask can always be supplied, no matter the style of the string
given, so it is possible to do things like:

{ "fw.ourcompany.dom" / 24 }

Which means "any host on the same /24 subnet as
fw.ourcompany.dom".


Unfortunately getaddrinfo() does not return a TTL for the
results,
in the future we may want to use some kind of timeout to refresh
the lookups.

2006-07-22 08:02 phk

* trunk/varnish-cache/include/vrt_obj.h,
trunk/varnish-cache/lib/libvcl/Makefile.am,
trunk/varnish-cache/lib/libvcl/vcc_acl.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
trunk/varnish-cache/lib/libvcl/vcc_obj.c: Split IP/ACL
compilation into vcc_acl.c

2006-07-21 22:12 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/storage_file.c: Unless the user
specifies an explicit size, don't use more than 2GB
on 32 bit architectures to avoid running out of address room

Make FlexeLint happy.

2006-07-21 21:57 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcc_token.c: Make FlexeLint
happier

2006-07-21 21:42 phk

* trunk/varnish-cache/autogen.phk: Drop this one now.

2006-07-21 21:28 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c: Implement TTL
adjustment from VCL

Log in shmem where the TTL came from (doc-candidate):

696613561 RFC 900 1153517009 1153517014 1153517914 900 0
| | | | | | | |
| | | | | | |
age
| | | | | |
max-age
| | | | | Expires: header
| | | | Date: header
| | | "now"
| | TTL relative to "now"
| who set the TTL
xid of object

or

696613561 VCL 20 1153517009
| | | |
| | | "now"
| | TTL relative to "now"
| who set the TTL
xid of object

2006-07-21 21:13 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vrt_obj.h,
trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
trunk/varnish-cache/lib/libvcl/vcc_obj.c: More VRT work.

Use macros for trivial objects which are just a field in a
struct.

2006-07-21 21:01 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vrt.h: Update VRT to minimal
functional level again

2006-07-21 20:51 phk

* trunk/varnish-cache/include/vrt_obj.h,
trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
trunk/varnish-cache/lib/libvcl/vcc_obj.c: Use const char* for
safety

2006-07-21 20:45 phk

* trunk/varnish-cache/include/binary_heap.h,
trunk/varnish-cache/include/miniobj.h,
trunk/varnish-cache/include/stat_field.h,
trunk/varnish-cache/include/stats.h,
trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/include/vcl_returns.h: Update

2006-07-21 20:44 phk

* trunk/varnish-cache/include/vrt_obj.h: This file is generated.

2006-07-21 20:43 phk

* trunk/varnish-cache/lib/libvcl/Makefile.am,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl,
trunk/varnish-cache/lib/libvcl/vcc_obj.c,
trunk/varnish-cache/lib/libvcl/vcc_token.c: Automate generation
of tables and prototypes for the objects which
VCL programs can manipulate.

2006-07-21 18:12 phk

* trunk/varnish-cache/lib/libvcl/Makefile.am,
trunk/varnish-cache/lib/libvcl/vcc_compile.c,
trunk/varnish-cache/lib/libvcl/vcc_compile.h,
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcc_obj.c,
trunk/varnish-cache/lib/libvcl/vcc_priv.h,
trunk/varnish-cache/lib/libvcl/vcc_token.c,
trunk/varnish-cache/lib/libvcl/vcc_token_defs.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_priv.h,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Move things
over to the correct "VCC" prefix.

Split some stuff into separate files while we're at it.

2006-07-21 16:25 phk

* trunk/varnish-cache/include/http_headers.h: update comment

2006-07-21 16:15 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/include/shmlog_tags.h: Properly log TTL
calculation to shmem

2006-07-21 16:06 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Fix formatting of
responses.

2006-07-21 16:05 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: Log TTL calculation
on the right fd

2006-07-21 15:25 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Work on
logtailer api a bit:

By default, start at the last entry in shared memory. To dump
the
entire segment from the start, specify '-d' option.

Terminate programs when '-r $file' reaches EOF

2006-07-21 12:18 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/bin/varnishd/flint.lnt: Cleanup

2006-07-21 12:08 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c: Magic check on
struct vbe

2006-07-21 12:06 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c: Better name

2006-07-21 11:55 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/include/stat_field.h: Convert fetch, insert
and deliver to use new HTTP header munging code.

Remove sbuf from workerthread, it is only used in the Error
handling
now and it will probably not even survive that in the long run.

2006-07-21 10:44 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Make pipe use the
new http manipulation.

2006-07-21 09:32 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/http_headers.h: HTTP header munging
part (N of M)

NB: Only pass mode (lightly) tested right now.

Give up on the three element array per header and use a two
element struct
instead, it reduces obfuscation and removes risk of pointer
fandango.

Introduce #defined filtercontrol in http_headers.h, use them in
a new
field. Only Pass is there for now.

Use the http-workspace for building headers instead of sbuf.

Move uiovec handling to cache_pool.c where it more naturally
belongs
and so we can use it on both backends and sessions.

Add http header munging functiosn for copying, printf'ing,
filtering and
writing headers.

2006-07-21 07:18 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/shmlog_tags.h: Rename shmlog tags
for headers to RxHeader and TxHeader that's more
logical.

Rename http_Init() to http_Setup() to avoid clash with
HTTP_Init().

Remove unused variable

2006-07-20 22:08 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c: Yet another
refinement to the way we store and deal with HTTP headers.

Record a triplet of {start, data, end} for all HTTP data items.

This represents a regrettable uglification of the sourcecode, but
most of it compiles out to constants and the runtime benefits
will
be worth it.

Generate H_FOO magic strings for all the headers we know about.
These strings have a length as first char and always ends in ':'.

Also genereate H_FOO format strings in VCL compiler.

Mandate (with assert) that header references happen using H_FOO
strings.

Make number of allowed HTTP headers a compile time constant (32)
but make the workspace a run-time variable (4096).

Introduce new SHM tag for dumping aborted HTTP protocol requests.

2006-07-20 15:10 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: Add XXX comment

2006-07-20 14:46 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/include/stat_field.h: Keep an eye on deathrow

2006-07-20 14:40 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: More asserts

2006-07-20 14:23 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c: We need to check
the TTL here also, if a (sequence of) slow client(s)
manages to hold the document referenced, the prefetcher may never
get lucky with it and it will linger here much past last sell
date.

2006-07-20 13:42 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Only reference
srcaddr on first request on session

2006-07-20 13:39 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: Be more
paranoid about srcaddr

2006-07-20 13:33 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: upd

2006-07-20 13:29 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/include/stat_field.h: Keep track of active
source addresses

2006-07-20 12:03 phk

* trunk/varnish-cache/bin/varnishtop/varnishtop.c: Add -1 option
that stops comparison after first field.

Useful with commands like:

varnishtop -i header -1
varnishtop -i srcaddr -1

where the variable part of the entry is less relevant.

2006-07-20 10:10 phk

* trunk/varnish-cache/bin/varnishstat/varnishstat.c: Show also
average since start

2006-07-20 09:58 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Hmm, that was a
bad idea.

2006-07-20 09:42 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Loop till we have
everything.

2006-07-20 09:29 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Implement
"If-Modified-Since" conditional queries

2006-07-20 08:29 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Remove
explicit worker thread arguments.

2006-07-20 08:25 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Move the
delivery functions from acceptor to response

2006-07-19 21:16 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/stat_field.h: Rework the worker
thread pool logic slightly, we were leaking
threads before.

2006-07-19 21:14 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/shmlog.c,
trunk/varnish-cache/bin/varnishstat/varnishstat.c,
trunk/varnish-cache/include/stats.h: Include a "start_time"
timestamp in the stats and teach varnishstats
to print it in curses mode.

Some polishing and cleanup.

2006-07-19 20:07 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Use insert_pass in
vcl_fetch() so we cache the uncacheability.

2006-07-19 20:06 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Don't explode
on trim's to zero size.

Real fix should (maybe) be to callers

2006-07-19 19:49 phk

* trunk/varnish-cache/bin/varnishtop/varnishtop.c: Update only
once per second.

2006-07-19 19:48 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Make sure width and
precision arguments to printf %*.*s are ints.

2006-07-19 19:47 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: Don't panic on
NULL srcaddr, but revisit later when we know the
details. Is it the Prefetcher ?

2006-07-19 19:45 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: Delete the
right list item.

2006-07-19 19:45 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Don't bother
determining if we should close if we already have done so.
Also: we may not have valid headers if cache_http.c threw a 400.

2006-07-19 19:43 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Make sure hp->v
is NUL terminated.

2006-07-19 12:37 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/hash_classic.c: Use miniobj.h
to catch pointer trouble

2006-07-19 12:36 phk

* trunk/varnish-cache/include/miniobj.h: Add miniobj.h for
debugging

2006-07-19 11:53 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: Avoid the Error path
for now.

2006-07-19 11:11 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: handle 302 for now.

2006-07-19 08:33 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: Properly zero the
worker structure when we start a thread.

2006-07-18 13:47 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: eliminate
debugging

2006-07-18 13:19 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: Delete binheap
root by it's index.

Expect a refcount of one (the one holding the object in the hash)

2006-07-18 13:18 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: Fix the Parent
calculation

2006-07-18 12:46 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: Set the index
of deleted elements to zero

2006-07-18 12:40 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: Move the root
index from zero to one

2006-07-18 12:29 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Remove the
deref/unbusy stuff from FetchBody() it's done in central.c

2006-07-18 12:28 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c: Assert that
object is busy when we call unbusy

2006-07-18 12:27 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c: Use a void * for
http_Read()'s buffer

2006-07-18 10:48 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Braino this time.

2006-07-18 10:45 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: typo

2006-07-18 10:45 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: Add http_Read()
which reads from a socket but soaks up any prefeched
tail first and use it all the places where this logic was
explicit
before.

Fix Refcounting on objects when we insert/deliver

2006-07-18 10:32 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Use bigger
buffersizes for pass mode

Terminate the sbuf with the reply headers properly.

2006-07-18 09:02 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c: Retire the
http_GetReq(), http_GetURL() and http_GetProto() accessor
functions now that struct http is out of the closet.

2006-07-18 08:52 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: polish

2006-07-18 08:51 phk

* trunk/varnish-cache/bin/varnishd/cache_pipe.c: zero means 'all'
to http_GetTail()

2006-07-14 13:54 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: use space
to separate host and port in -b

2006-07-14 13:52 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Use space to
separate host and port in backend spec.

Polish usage message a bit.

2006-07-14 13:33 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/steps.h: When during a lookup
we encounter a busy object, queue the session on
the objects waitinglist and disembark the worker thread so it
can do
something sensible in the mean time.

This feature is unimportant in normal operation, but crucial to
resource management if a popular URL suddenly takes a long time
to
reply from the backend.

Without this bit if semi-nasty code, we would tie up one worker
thread per client while waiting for the backend to come to it's
senses.

2006-07-14 12:47 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c: Have the
acceptor launch the session into STP_RECV

2006-07-14 12:45 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Use the fact that
we have the worker thread in struct sess now.

Move initial and final processing into cnt_recv() and cnt_done()

2006-07-14 12:30 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Have the states
tell us if we are done yet with their return value,
so that we can implement disembarking the worker thread of the
object
is busy.

2006-07-14 12:22 phk

* trunk/varnish-cache/bin/varnishd/shmlog.c,
trunk/varnish-cache/include/shmlog.h: Put a starttime in shmem
so varnishstat can show average rates.

2006-07-14 12:12 phk

* trunk/varnish-cache/bin/varnishd/shmlog.c: Flexelint'ing, found
a spurious ';'

2006-07-14 12:05 phk

* trunk/varnish-cache/bin/varnishd/shmlog.c,
trunk/varnish-cache/include/shmlog.h: More SHM creation polishing

2006-07-14 11:44 phk

* trunk/varnish-cache/bin/varnishd/shmlog.c: Better and more
paranoid SHMEM creation logic

2006-07-14 11:42 phk

* trunk/varnish-cache/bin/varnishd/cache_session.c: propset Id

2006-07-14 11:20 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_session.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/stat_field.h: Change "client" to
"srcaddr", it's more descriptive.

Add srcaddr management and start charging bytes to the srcaddr.

2006-07-14 10:34 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/common.h,
trunk/varnish-cache/bin/varnishd/tcp.c: Rework the way we do
ascii representations of addresses

2006-07-14 10:16 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_session.c: Move session
management to new file (cache_session, SES prefix) in
preparation of adding client tracking.

Move the iovec's from the session to the worker and give the
session
a pointer to the worker so we can avoid passing it around as
argument.

2006-07-12 23:30 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/flint.lnt,
trunk/varnish-cache/bin/varnishd/flint.sh,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/bin/varnishd/shmlog.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: More Flexelinting

2006-07-12 22:52 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_ban.c,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/flint.lnt,
trunk/varnish-cache/bin/varnishd/mgt_child.c: More flexelinting.

No bugs so far.

2006-07-12 22:07 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c: Flexelint
harder.

2006-07-12 22:01 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/flint.lnt,
trunk/varnish-cache/bin/varnishd/varnishd.c: Give this file a
flexelinting

2006-07-12 22:01 phk

* trunk/varnish-cache/bin/varnishd/cache.h: Improve the INCOMPL()
macro.

2006-07-12 20:21 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c: More polishing.

2006-07-12 19:28 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c: Move sessmtx to
cache_vcl.c and call it vcl_mtx.

Clean up naming for consistency while here.

2006-07-12 15:07 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/stat_field.h: Implement
"insert_pass" mode where we cache that an entity must be passed.

2006-07-12 14:13 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Make Pass
possible from vcl_hit()

2006-07-12 13:28 phk

* trunk/varnish-cache/bin/varnishd/cache_ban.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_response.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/common.h,
trunk/varnish-cache/bin/varnishd/hash_classic.c,
trunk/varnish-cache/bin/varnishd/hash_slinger.h,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/bin/varnishd/steps.h,
trunk/varnish-cache/bin/varnishd/stevedore.h,
trunk/varnish-cache/bin/varnishd/storage_file.c: Enable Id
keyword

2006-07-12 13:28 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: First stab at
implementing pass in vcl_miss()

2006-07-12 13:27 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c: Add explanation
for locking, some minor polishing.

2006-07-12 12:04 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/hash_classic.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/hash_slinger.h: Hash on both
URL and Host header. If no host header, hash on URL twice.

2006-07-12 11:48 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c: Make Pass work
again

2006-07-12 11:45 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Make pipe work
again

2006-07-12 08:56 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c: Fix CLI
"config.load"

2006-07-12 08:44 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: Always
insert a backend when vcl is compiled.

Respect '#' comments in script file.

2006-07-12 08:34 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/libvcl.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c: Teach the VCL
compiler about default functions, so that users will
not have to copy&paste the default methods if they have no
special
requirements for a particular method.

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

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

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

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

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

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

2006-07-12 07:45 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: Pause
after 'vcl' command

2006-07-11 21:35 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: EOF
detection in libevent is buggy ?? Add exit cmd.

Pause after cli until we see "OK"

2006-07-11 21:30 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: add a req
command, various adjustments

2006-07-11 21:04 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: Add
Pause() and Resume() to pace script execution

2006-07-11 21:01 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c: Add a printf when
cached is ready for the benefit of varnishtester

2006-07-11 20:49 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: open and
close commands

2006-07-11 20:37 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: A vcl
keyword for loading a new config

2006-07-11 19:29 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: Add "cli"
to tell varnishd things

2006-07-11 19:16 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: If the
first char of the serve string is '!', close connection after
sending string.

2006-07-11 19:10 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: Add a
server facility to act as backend for varnish

2006-07-11 18:21 phk

* trunk/varnish-cache/bin/varnishtester/varnishtester.c: Minimal
ability to start and stop a varnishd

2006-07-11 18:16 phk

* trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Give 'exit' CLI
command some bite. we may want to be more careful
later on.

2006-07-11 17:53 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Unbuffer
stdout/stderr

2006-07-11 17:23 phk

* trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/bin/varnishtester,
trunk/varnish-cache/bin/varnishtester/Makefile.am,
trunk/varnish-cache/bin/varnishtester/varnishtester.c,
trunk/varnish-cache/configure.ac: Add stub varnishtester program

2006-07-11 16:31 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Start the cache
process automatically, I've gotten tired of typing "start" :-)

2006-07-11 16:25 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Allow backend to be
specified as "host:port" to -b

2006-07-11 16:17 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: add short
descriptive comments to each state

2006-07-11 16:10 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c: Distribute code
from FetchSession almost correctly

2006-07-11 16:03 phk

* trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Add
"insert_pass" action in VCL

2006-07-11 15:54 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: Make things
work again by stuffing the old functions into the new
state engine.

2006-07-11 15:18 phk

* trunk/varnish-cache/bin/varnishd/cache_center.c: This commit
breaks warnish temporarily:

Insert the new master state engine.

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

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

2006-07-11 13:31 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/steps.h: Add enum for major
procesing steps

2006-07-11 12:31 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_center.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Start
centralizing the flow of requests through varnish so we get
one source file with the highest level of policy.

2006-07-11 12:30 phk

* trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Make -b and -c
less nonsensical when not specified

2006-07-11 12:00 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Pipe requests which
come with an Expect header.

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

2006-07-11 11:41 des

* trunk/varnish-cache/bin/varnishlog/varnishlog.1: Document -b and
-c, and bump date.

2006-07-11 11:36 phk

* trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Add -b[ackend]
and -c[lient] generic options to logtailers

2006-07-11 07:38 phk

* trunk/varnish-cache/bin/varnishd/cache_response.c: Add 500
messages.

2006-07-11 07:30 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/stat_field.h: Split http_Dissect()
into http_DissectRequest() and http_DissectResponse()

2006-07-11 06:30 des

* trunk/varnish-cache/bin/varnishd/varnishd.1: Add
cross-references and a commented-out STANDARDS section.

2006-07-11 06:28 des

* trunk/varnish-cache/include/shmlog_tags.h: Add a note to update
varnishlog(1) whenever this list changes.

2006-07-11 06:27 des

* trunk/varnish-cache/bin/varnishstat/varnishstat.1: Add
cross-references.

2006-07-11 06:26 des

* trunk/varnish-cache/bin/varnishlog/varnishlog.1: Document the
-C, -I, -X, -i, -x options.
Add a list of log entry tags.
Add cross-references to varnishd(1) and varnishstat(1).

2006-07-10 21:54 phk

* trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/bin/varnishtop,
trunk/varnish-cache/bin/varnishtop/Makefile.am,
trunk/varnish-cache/bin/varnishtop/varnishtop.c,
trunk/varnish-cache/configure.ac: Add varnishtop log-tailer.


Try these:

varnishtop -i url

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

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

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

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

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

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



2006-07-10 21:49 phk

* trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Fix so that both
-I and -X can be specified

2006-07-10 20:49 phk

* trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Implement -C, -I
<regex> and -X <regex> generic options

2006-07-10 20:27 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Add tag names
array to libvarnishapi, everybody is going to need it.

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

2006-07-10 19:54 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/bin/varnishstat/varnishstat.c,
trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Improve
libvarnishapi interface to shared memory:

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

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

Add generic argument parsing function for all log-tailers.

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

2006-07-10 15:02 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/stat_field.h: More statistics about
worker threads.

2006-07-10 14:52 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/stat_field.h: Rewrite the worker
thread pool code.

Assign prefix WRK to the worker pool.

Introduce a struct workreq since the prefetcher (when it
happens) will
not have a session to pass in.

The worker threads get a cond_var each and are hung from a list
in
most recently used order.

When a request is queued and the worker thread list is not empty,
tickle the cond_var of the first one.

If no threads were availble the max number of threads is not
reached,
try to start another worker thread.

If the max was reached or the start filed (likely due to out of
memory)
indicate overflow and let the existing pool deal with it.

Create only the minimum requested number of threads initially.

Allow specification of the timeout before a dynamic worker
thread commits
suicide to be specified with -w.

Default parameters are -w1,UINT_MAX,10 {min, max, timeout}

2006-07-10 13:59 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: use explicit
eventbase.

2006-07-10 13:58 phk

* trunk/varnish-cache/contrib/libevent/event.c: Don't ever set
current_base in our version of libevent in order to flush
out any bugs it might cause.

2006-07-10 13:48 phk

* trunk/varnish-cache/bin/varnishd/shmlog.c: Dump errno and
strerror in assert

2006-07-10 12:00 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c: Rework the
"connect to backend logic".

Avoid calling getaddrinfo() for every connect by catching the
result
in the backend structure.

Minimize number of socket/connect calls by caching the last good
address in the backend structure.

If all addresses in the cached getaddrinfo() result fails, call
getaddrinfo() again (to catch DNS changes) and try the list
again.

2006-07-10 11:24 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/common.h,
trunk/varnish-cache/bin/varnishd/tcp.c: Move sockaddr->ascii
conversion to tcp.c

shmlog both ends of backend connections.

2006-07-10 10:56 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.h,
trunk/varnish-cache/bin/varnishd/common.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/shmlog.c: Be more consistent.

cache_shmlog.c contains stuff for both cache and mgt, so remove
the
cache_ prefix.

Rename cache_shmlog.h to common.h and put joint stuff there.

2006-07-10 10:31 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: put backend
session linkage in shmemlog for pipe and pass

2006-07-10 10:06 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Polish HTTP
reception a little bit

2006-07-10 10:05 phk

* trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Drop the max length
of first line, it's too expensive to enforce.

2006-07-10 09:52 phk

* trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Fix cosmetic
warning

2006-07-10 09:51 phk

* trunk/varnish-cache/bin/varnishstat/varnishstat.c: Silence
cosmetic warning.

2006-07-10 09:48 phk

* trunk/varnish-cache/lib/libvarnish/time.c,
trunk/varnish-cache/lib/libvcl/vcl_compile.c: Fix cosmetic
warnings

2006-07-10 09:47 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_ban.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.h,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/tcp.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Fix a bunch
warnings, all cosmetic.

I'm using __unused for now, if we need to use something different
we can do a find/replace.

2006-07-10 09:28 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Silence some
warnings

2006-07-10 09:07 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/include/stat_field.h: Allocate struct http
as part of the session allocation.

Remove http_New() and http_Delete()

2006-07-10 08:41 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Add
heritage.mem_http_headers which is the maximum number of headers
we recognize.

Add http_Init() which initializes struct http given sufficient
space.

Respect heritage mem_* values in http_New() (while we still have
it)

Allocate backend connections (vbe_conn) with super allocation
with
space for http and workspace.

2006-07-10 08:10 phk

* trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Put three memory
allocation hints into heritage:

mem_http_1_line (512)
Maximum length of the reqeust/response line of a HTTP message
There is no point in filling the entire buffer with junk if
we get a preposterously long first line.
mem_http_header (4096)
Maximum length of entire HTTP header. If we overflow this
we return 400.
mem_workspace (currently 0)
In the future this will be the space we use for constructing
headers to send and edits done from VCL.

2006-07-10 07:54 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: Take the vbe_conn
(backend connection) structure out of the closet.

2006-07-10 07:07 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Turn a comment
into english

2006-07-10 07:04 phk

* trunk/varnish-cache/bin/varnishd/cache.h: More sensible order of
pointers

2006-07-09 21:21 phk

* trunk/varnish-cache/include/http_headers.h: Don't pass
cache-control through.

2006-07-09 21:01 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Add a -h opt
which modifies -o to remove "trivial" entries.

Trivial are
{GET,HEAD} which gets a hit and returns 200
{GET,HEAD} which gets a miss, fetches, inserts and returns 200

2006-07-09 09:16 des

* trunk/varnish-cache/configure.ac: Don't use braces where they
aren't needed.
Let automake know about config.h.
Bump version number to mark that we have passed the first live
test.

2006-07-09 07:13 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/lib/libvcl/Makefile.am: List header files so
they are included in the distribution tarball.

2006-07-09 06:35 des

* trunk/varnish-cache/configure.ac: Use the modern version of
AM_INIT_AUTOMAKE, allowing automake to deduce the
correct distribution name.

2006-07-08 20:29 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c: A few edits for
FlexeLint

2006-07-08 20:19 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_ban.c,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/hash_classic.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c: Sanitize
#includes a bit in the cache process by moving fundamental
#includes to cache.h

2006-07-08 20:18 phk

* trunk/varnish-cache/bin/varnishd/flint.lnt: Silence a bogus
warning

2006-07-08 19:54 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c: Move struct http
into cache.h

The original reasoning for having it private to cache_http.c was
to avoid pollution with event.h related structures but since that
pollution is happening other ways anyway, the cost is too high.

Include pthread.h, sys/time.h, and event.h from cache.h

2006-07-08 19:46 des

* trunk/varnish-cache/configure.ac: Add --enable-debugging-symbols
which enables debugging sysmbols and disables
inlining and builtins.

2006-07-08 19:27 des

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Fix "set
backend.port".

2006-07-08 19:25 des

* trunk/varnish-cache/autogen.des: My version.

2006-07-08 19:25 des

* trunk/varnish-cache/autogen.phk: Expand keywords.

2006-07-07 08:40 phk

* trunk/varnish-cache/bin/varnishd/cache_pipe.c: Close gracefully
in pipe mode

2006-07-07 07:48 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Set SO_LINGER
to zero

2006-07-07 07:25 phk

* trunk/varnish-cache/bin/varnishd/tcp.c: Tell why bind(2) fails

2006-07-07 07:22 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Pipe anything
different from HEAD & GET

2006-07-07 07:22 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Don't filter
headers in Pipe mode

2006-07-07 07:22 phk

* trunk/varnish-cache/bin/varnishd/cache_pipe.c: Fix pipe mode

2006-07-07 07:22 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Remove
debugging printf

2006-07-07 07:15 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Time idle TCP
connections out after 30 seconds

2006-07-07 06:29 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Dump our buffer
as Debug if we have HTTP header trouble.

Issue 400 for HTTP header buffer overflow.

2006-07-07 06:27 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Strvis(3) debug
data.

2006-07-06 22:33 phk

* trunk/varnish-cache/include/http_headers.h: Filter out
Content-Range headers.

2006-07-06 21:57 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Always log
the numeric code as "Status"

2006-07-06 21:57 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: Log the found
objects XID when we have a hash-hit.

2006-07-06 21:56 phk

* trunk/varnish-cache/include/shmlog_tags.h: Add shmem tag for Hits

2006-07-06 21:47 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_response.c: Refuse all
requests without a protocol field with a 400

Implement a function to say "400" with.

2006-07-06 21:04 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_response.c: Add
cache_response for yelling at clients

2006-07-06 21:03 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Also flush
ordered after the long timeout.

2006-07-06 21:00 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Strengthen HTTP
parsing

2006-07-06 20:29 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: Make sure the
grim reaper doesn't touch busy objects either.

2006-07-06 20:26 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: The grim reaper
needs to wait for objects refcount to drop to zero.

2006-07-06 20:23 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Improvements to
flush things at timeout and at the end etc.

2006-07-06 13:40 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Silence typical
broken client connection messages and move the
interesting ones to shmem

2006-07-06 13:33 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Fix braino in
Pass handling

2006-07-06 13:27 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Skip space before
request/response

2006-07-06 13:02 des

* trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishstat/varnishstat.1: Add a
rudimentary man page.

2006-07-06 11:18 phk

* trunk/varnish-cache/autogen.phk: My version.

2006-07-06 10:18 phk

* trunk/varnish-cache/bin/varnishstat/varnishstat.c: Add
exponential hitrate displays (with -c)

2006-07-06 09:31 des

* trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.1: Add a
rudimentary man page.

2006-07-06 09:31 des

* trunk/varnish-cache/bin/varnishd/varnishd.1: Expand keywords

2006-07-06 09:13 des

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/varnishd.1: Add a rudimentary
man page.

2006-07-06 09:08 phk

* trunk/varnish-cache/bin/varnishd/tcp.c: Only complain if
accept_filters fail

2006-07-06 09:06 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Remove debugging
code.

2006-07-06 09:00 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Add -r file and
-w file options.

These read/write from/to a binary file.

2006-07-06 08:45 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Increas shmem size
to 8M

2006-07-06 08:45 phk

* trunk/varnish-cache/bin/varnishd/tcp.c: Add accept filters

2006-07-06 08:43 des

* trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Portability:
don't use non-portable mmap(2) flags.

2006-07-06 08:43 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Portability:
Linux does not have SO_NOSIGPIPE.

2006-07-06 08:41 des

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/lib/libvarnish/argv.c: Portability: cast
unused parameters to void instead of marking them __unused.

2006-07-06 08:32 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: 404 handling

2006-07-06 08:07 des

* trunk/varnish-cache/bin/varnishd/cache_backend.c: Use
<sys/ioctl.h> instead of <sys/filio.h> to get both the prototype
for
ioctl(2) and the definition of FIONREAD.

2006-07-05 14:40 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Fix off by one

2006-07-05 14:40 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: printf format

2006-07-05 13:54 phk

* trunk/varnish-cache/bin/varnishstat/varnishstat.c: Calculate
rate as signed.

2006-07-05 13:44 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Assert non-null
first

2006-07-05 13:19 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Send
"Connection: close" if not HTTP/1.1

2006-07-05 13:13 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/include/stat_field.h: Add more stats

2006-07-05 13:09 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Some asserts to
guard against trouble.

2006-07-05 12:17 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Another pipeline
fix: don't clobber a pipelined partial header

2006-07-05 11:42 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Don't lead http
header

2006-07-05 11:09 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Free the
session memory correctly

2006-07-05 10:59 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c: Free the right
header.

2006-07-05 10:55 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c: Don't leak
objects headers

2006-07-05 10:01 phk

* trunk/varnish-cache/include/http_headers.h: Suppress
Accept-Ranges for now.

2006-07-05 09:59 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Create an
X-Varnish header and put the XID there.

2006-07-05 09:56 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/stevedore.h,
trunk/varnish-cache/bin/varnishd/storage_file.c: Send headers
with sendfile

2006-07-05 09:44 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c: Add Age and Via
header to responses.

Change arguments to vca_write_obj() (It should really be
"send_repsonse()" ?)
Store received age and time entered into cache in object.
Generate Age: and Via: headers as part of response.

2006-07-05 09:32 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Unify logging in
the response handling

2006-07-05 09:11 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: log responsecode
and length

2006-07-05 09:10 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c: Log reponse code and
object length

2006-07-05 09:08 phk

* trunk/varnish-cache/include/shmlog_tags.h: Add Length tag

2006-07-05 08:08 phk

* trunk/varnish-cache/bin/varnishstat/varnishstat.c: Show also
rate in curses display

2006-07-05 07:45 phk

* trunk/varnish-cache/bin/varnishd/cache_shmlog.c: Be more
conservative about wraparound and take them up front in all
cases.

2006-07-04 22:08 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: Implement our TTL
calculation.

A first quick check against the weird timestamps from the VG
frontend
squids indicates sensible behaviour.

2006-07-04 21:34 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: Long comment
describing how TTL calculation will be done.

Review encouraged.

2006-07-04 20:00 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c: Fix HEAD
requests:

Make modes to http_BuildSbuf descriptive enums.
Send GET to backend also for HEAD requests.
Don't return body for HEAD requests.

2006-07-04 19:36 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Fix pipelining.

A braino in http_Dissect() resulted in an off-by-one error
(protected with assert now)

Move any remaning bytes in buffer to front and check for
a complete header before arming the eventloop on the
session.

2006-07-04 14:45 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Make room for
protective terminating NUL

2006-07-04 14:19 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c: retry backend
open, log diagnostics

2006-07-04 14:18 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c: load VCL earlier

2006-07-04 14:18 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Lock with a
mutex

2006-07-04 13:45 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Shorter sleeps:
1s -> 50msec

2006-07-04 13:44 phk

* trunk/varnish-cache/bin/varnishd/cache_shmlog.c: Fix off by one
error during wraparound.

2006-07-04 09:28 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Close non
HTTP/1.1 request connections

2006-07-04 09:21 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Add missing '%'

2006-07-03 19:45 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: My workaround
for the missing OFF_T_MAX definition was not safe,
use a hardcoded "1<<30" which is.

2006-07-03 19:35 phk

* trunk/varnish-cache/contrib/libevent/event.c: I have grumbled
about the evilness of "current_base" before, and this just
proves the point: If two threads call event_init() at the same
time,
they will both stomp on the same memory via current_base, and in
all
likelyhood, neither of them will manage to get the job done
properly.

Instead work on a local variable and don't assign to current_base
until the setup is complete.

This should be submitted to Niels Provos

2006-07-03 18:35 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Handle IPv6
address -> string conversion too

2006-07-03 18:03 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: Close race
condition

2006-07-03 17:59 phk

* trunk/varnish-cache/bin/varnishd/hash_classic.c: Better arg
checking

2006-07-03 15:01 phk

* trunk/varnish-cache/lib/libvarnish/binary_heap.c: more asserts

2006-07-03 14:39 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c: avoid const
poison

2006-07-03 14:39 phk

* trunk/varnish-cache/bin/varnishd/cache_ban.c: Include pthread.h

2006-07-03 14:37 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c:
s/unsigned/size_t/

2006-07-03 14:36 phk

* trunk/varnish-cache/bin/varnishd/hash_simple_list.c:
s/init/start/

2006-07-03 12:41 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/hash_classic.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/hash_slinger.h,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Add another
hash-method with better real-world survival chances: A classic
bucketed hash table of lists. Hash is MD5. Number of buckets
and number
of mutexes can be configured at command line.

2006-07-03 08:30 des

* trunk/varnish-cache/configure.ac: Replace --enable-wall and
--enable-pedantic with --enable-developer-warnings,
which is roughly equivalent to FreeBSD's WARNS level 5 or 6.

2006-07-01 05:44 phk

* trunk/varnish-cache/include/http_headers.h: Mark more headers as
not end-to-end

2006-06-30 20:22 phk

* trunk/varnish-cache/lib/libvarnishapi/shmlog.c: Forgot to add
shmlog.c (reminded by des@)

2006-06-30 20:21 phk

* trunk/varnish-cache/include/queue.h: Add TAILQ_FOREACH_SAFE()

2006-06-30 20:17 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c: move all policy to
rfc2616.c

2006-06-30 13:44 des

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c,
trunk/varnish-cache/include/stats.h: Consistently use our own
copy of queue.h.

2006-06-30 11:20 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Fix object
length double accounting in chunked fetch

2006-06-30 09:14 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c: Delete compiled
VCL file after we tried to load it.

2006-06-29 19:19 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/include/shmlog_tags.h: Log objects banned to
shmlog

2006-06-29 19:06 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c: Track objects
heap-position

2006-06-29 17:09 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_ban.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_main.c: Add the ability
to instantly ban/purge all cached objects matching
a given regexp.

2006-06-29 15:14 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/include/shmlog_tags.h: Improve shm-logging
of VCL activity

2006-06-29 14:37 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/include/shmlog_tags.h: Tag objects with
their origin session xid and log it when we clean up.

2006-06-29 13:04 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/shmlog_tags.h: Add a unique
transaction-ID to each request, and register it in the
shmlog so we can match backend transactions with client
transactions.

2006-06-28 21:38 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Convince
flexelint that we know what we do with some asserts

2006-06-28 21:33 phk

* trunk/varnish-cache/bin/varnishd/cache_shmlog.c: Put a mutex
around the shmlog writes, I've seen my first race.

2006-06-28 21:18 phk

* trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.c: Add a -o
argument which sorts the log into transactions before output,
this is a fair bit easier to chew through than the raw log (the
default)

2006-06-28 21:03 phk

* trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishstat/varnishstat.c: Use shmlog
api from libvarnishapi

2006-06-28 20:58 phk

* trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.c: Use SHMLOG api
in libvarnishapi

2006-06-28 20:58 phk

* trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/Makefile.am: Add SHMLOG
opening and walking functions to libvarnishapi

2006-06-28 17:46 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Be more
consistent about which headers we send back.

Start 5 threads in the worker pool.

2006-06-28 16:59 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Construct our
own Content-length header, no matter which of the
three (straight, chunked, eof) modes we used to fetch the object.

2006-06-28 16:58 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Don't finish the
sbuf in mode 3

2006-06-28 16:57 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Assert that
the lengths of the storage for the object add up.

2006-06-28 16:57 phk

* trunk/varnish-cache/include/http_headers.h: Don't pass
Content-Lenght through, we build it ourselves

2006-06-28 16:20 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: Pass fd to
shmemlog

2006-06-28 16:19 phk

* trunk/varnish-cache/include/shmlog_tags.h: add tag for generated
headers

2006-06-28 16:19 phk

* trunk/varnish-cache/include/http_headers.h: Don't pass If-*
headers to backend

2006-06-28 16:14 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c: Apply correct fd
in Shmemlog

2006-06-28 16:04 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Fix buglets,
include test-driver.

2006-06-28 11:29 phk

* trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishstat/varnishstat.c: Give
varnishstat a "-c" option to use curses to continously refresh

2006-06-28 11:21 phk

* trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/bin/varnishstat,
trunk/varnish-cache/bin/varnishstat/Makefile.am,
trunk/varnish-cache/bin/varnishstat/varnishstat.c,
trunk/varnish-cache/configure.ac: Add varnishstat program

2006-06-28 10:31 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: 304's don't have
a body

2006-06-28 10:30 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Implement
->trim()

2006-06-28 09:39 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/stat_field.h: More stats counters

2006-06-28 09:21 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/shmlog.h,
trunk/varnish-cache/include/stat_field.h,
trunk/varnish-cache/include/stats.h: Add statistics counter
support.

stat_field.h defines the counter fields with name, type,
(printf)format
and description.

stats.h defines a structure with these fields.

shmlog.h makes the structure part of the shared memory logs
header.

Implent the "stats" CLI word in the management process.

2006-06-26 19:25 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c: Call VCL to
decide discard/prefetch for near-expiry objects.

Put discard objects on deathrow where they will be culled from
in sequence.

(prefetch not implemented yet)

2006-06-26 19:24 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: A temporary hack to
deal with very old Date: headers until we figure
out what's going on.

2006-06-26 19:23 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Implement
HTTP/1.0 style fetching.

2006-06-26 17:06 phk

* trunk/varnish-cache/bin/varnishd/storage_malloc.c: Another
little tweak

2006-06-26 16:31 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c: Dump numeric
handling also, until we figure out trouble.

2006-06-26 16:30 phk

* trunk/varnish-cache/bin/varnishd/cache_hash.c: typo

2006-06-26 16:19 phk

* trunk/varnish-cache/bin/varnishd/storage_malloc.c: Make this
work again: record the stevedore in the storage object.

2006-06-26 14:33 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c: Start
releasing objects when they expire

2006-06-26 14:00 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c: Move a bit
more responsibility into the hash-slinger to get a cleaner
interface.

2006-06-26 08:58 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_hash.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c: Now that we
approach the time where objects have to be destroyed again,
we need to move the data structures into the right shape.

Push hashing into cache_hash.c

Add objhead structure to hold the various hits for "Vary:"
headers.

2006-06-24 22:11 phk

* trunk/varnish-cache/bin/varnishd/cache_expire.c: A little bit
more work on the expiry/prefetch thing.

2006-06-24 21:54 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c: Use ttl=0 as a
"invalid TTL" flag.

Mark objects with ttl=0 uncachable.

Add cacheable objects to the expiry heap

Start an expiry thread which polls the root element once per
second

2006-06-24 21:42 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: Truncate TTLs in the
past to now.

2006-06-24 21:09 phk

* trunk/varnish-cache/bin/varnishd/cache.h: Autogenerate
prototypes for method calling functions

2006-06-24 21:07 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Add a "timeout"
method to VCL, it can return "fetch" or "discard".

2006-06-24 20:50 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Add a token
type "METHOD", we use it for reference counting.

Add a reference to the first backend {} we encounter, it is the
default.
Add a reference to all backends assigned explicitly.
Add a reference to all methods.

Enable reference check, complain if: backend, function or acl is
defined
but not used, or used but not defined.

2006-06-24 20:12 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Collapse multiline
Fc and Fh calls where they fit

2006-06-24 20:09 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: More printf
sanitation: Create to convenience functions for output to the
fh and fc sbufs.

2006-06-24 19:50 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Cave in and use
printf format extensions for printing tokens.
Both Linux and FreeBSD supports them anyway.

2006-06-24 19:41 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add more
shmemlog tags:
one for each VCL method to record the return
one for errors
one for linking a client session to a backend connection
Use them sensibly.
Put VCL name of backend into struct backend to improve log
messages

2006-06-22 16:17 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/include/vcl_returns.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Improve the VCL
compiler in various ways:

Generate the methods and their legal returns with the tcl script.

Add consistency checks to make sure methods don't use illegal
returns,
and also check called subrourtines.

Add consistency check to complain about recursive subroutine
calls.

Add consistency check to complain about unused or undefined
subroutines.

2006-06-21 10:28 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_expire.c,
trunk/varnish-cache/bin/varnishd/cache_main.c: Add (empty)
source file for expiry/pretech code

2006-06-21 10:21 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c: Start to respect TTL

2006-06-21 10:13 phk

* trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Add "-t
default_ttl" option. 120 seconds by default.

2006-06-21 09:58 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Quench some
debugging

2006-06-21 08:09 phk

* trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/binary_heap.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/binary_heap.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add a binary
heap implementation for keeping track of objects expiry time.

2006-06-20 19:49 phk

* trunk/varnish-cache/include/vrt.h: typo

2006-06-20 19:38 phk

* trunk/varnish-cache/lib/libvcl/flint.lnt,
trunk/varnish-cache/lib/libvcl/flint.sh: FlexeLint files

2006-06-20 19:37 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: FlexeLint cleanups

2006-06-20 19:31 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/flint.lnt,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Polish things to
silence FlexeLint a bit

2006-06-20 11:39 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/rfc2616.c,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/vcl.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: Rename
vcl_lang.h to vcl.h and include practically nowhere.

Remove #include bogohandling in vcl_gen_fixed_token.tcl

2006-06-20 10:31 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: At the expense
of some complexity and a small runtime overhead,
isolate the compiled code from the internal structures of the
cache
process through of VRT functions.

2006-06-20 09:41 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Work towards
making struct sess opaque to the generated code.

2006-06-20 09:28 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/libvcl.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c: Rename the VCL
compilers public functions to VCC prefix

2006-06-20 09:25 phk

* trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Get rid of
VCL_FARGS and VCL_PASS_ARGS macros.

Generate VGC prefixes instead of VCL.

2006-06-20 09:15 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cache_vrt.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/include/vrt.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: Start
putting some structure in the sources relating to VCL handling:

Split the runtime support for compiled varnish programs out and
give it the
prefix "VRT".

Start using the prefix "VGC" for generated code.

Prefix "VCC" will be for the compiler and "VCL" for calling the
compiled and
loaded functions.

2006-06-18 10:28 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Output
line+pos for counts.

2006-06-18 10:19 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Insert a
count-point after each conditional.

2006-06-18 10:16 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Get the sense of
string compares right.

2006-06-18 10:12 phk

* trunk/varnish-cache/bin/varnishd/rfc2616.c: debug printf for
max-age

2006-06-18 10:10 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Implement
req.request properly

2006-06-18 10:04 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Pass if we spot an
Authenticate or Cookie header

2006-06-18 10:03 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c: Add VCL function
for getting HTTP header

2006-06-18 10:02 phk

* trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add support
for investigating random HTTP headers.

2006-06-18 09:16 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c: Add wrappers
around VCL methos so logging and checking of returned handling
can be centralized.

Remove old handling callbacks.

Call hit/miss methods instead of lookup method.

2006-06-18 09:14 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: add explicit
"lookup" to recv method

2006-06-18 09:11 phk

* trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Correctly
handle \ sequences in .h files in vcl_gen_fixed_token.tcl

Make handling a named enum, and use it as a bitmap.

Add "lookup" reserved word

Add VCL_done() macro to use in compiled code to set handling and
drop
the per-handling callbacks (apart from VCL_error())

2006-06-18 07:28 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Add "deliver"
keyword to VCL compiler.

Split vcl_lookup() in vcl_hit() and vcl_miss()

2006-06-16 10:22 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Initial
http_GetHdrField() function.

Improve chunked encoding, allocate big storage chunks and trim
the
last one at the end, instead of one storage chunk for each chunk
the remote server sends.

Call RFC2616 policy code.

Store headers from backend in cache and return to client.

2006-06-16 10:20 phk

* trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add header
field to object

2006-06-16 10:19 phk

* trunk/varnish-cache/include/http_headers.h: Supress
Transfer-Encoding

2006-06-16 10:18 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/rfc2616.c: The beginnings of
rfc2616 policy implemenation.

2006-06-16 10:17 phk

* trunk/varnish-cache/bin/varnishd/stevedore.h,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c: Add trim
method to storage backends so chunked encoding can be
stored efficiently.

2006-06-16 10:16 phk

* trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/time.c: Add time parse/format
functions to libvarnish

2006-06-15 08:04 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: less noise

2006-06-15 08:04 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c: Less noise

2006-06-14 09:57 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c: start examining
HTTP status codes from backend

2006-06-14 09:39 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Add
vca_write_obj() which writes an sbuf (as) HTTP header and the
object from the sessions to the client.

2006-06-14 09:25 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Clean up session
messages a bit

2006-06-14 09:23 phk

* trunk/varnish-cache/include/shmlog_tags.h: Add HttpError tag

2006-06-14 09:03 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Sanitize
close/recycle session logic a bit.

2006-06-14 08:53 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_main.c: Initialize the
cache_acceptor.c/VCA in the same manner as other parts.

2006-06-14 07:21 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/stevedore.h,
trunk/varnish-cache/bin/varnishd/storage_file.c: Give storage
backends a "send" method.

Let storage_file use sendfile(2) for it.

2006-06-14 06:58 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Complete the
storage_file method.

2006-06-13 20:09 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Default to "file"
stevedore from now on.

2006-06-13 20:06 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Be more
aggressive about mmap'ing memory. The size_t thing is a bogus
constraint in FreeBSD and we shouldn't really listen to it.

On my laptop I can mmap 2422MB file this way.

This may be so aggressive that it leaves insufficient address
space for
malloc/threadstacks and other issues.

If we find a way to pick up a platform/architecture specific
limit, we
can enforce that along the way.

For now people can just specify a saner and smaller "-sfile"
size.

2006-06-13 13:47 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: mmap as much as
the file as we are able to when the cache process opens
the stevedore.

This should probably be (fine-)tuned later on as it might be too
aggressive
when faced with user errors.

Also, might it be possible to mmap() more than MAX_SIZE_T bytes
if
it is done in multiple calls ?

2006-06-13 13:14 phk

* trunk/varnish-cache/bin/varnishd/storage_file.c: Calculate the
size of the backing store file.

A size can be specified in absolute terms (suffix: k, m, g, t
supported),
but also as a percentage of the filesystems free space (suffix
'%').

If the specified size is larger than an off_t can cope, we
bisect
repeatedly until it can.

If the size exceeds the available space of the filesystem, we
truncate
to 80% of the free space.

Then round down to an integral number of blocks, sized by the
larger
of the filesystem blocksize and the pagesize.

This was tricker than I'd expected...

2006-06-13 13:10 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Clone the stevedore
before calling its init function and be more precise
about any optional arguments.

2006-06-13 08:05 phk

* trunk/varnish-cache/bin/varnishd/_stevedore.h,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/stevedore.h: After having a
strong cup of tea: don't name files with leading underscore
even though that's how FreeBSD's kernel does it. In my private
world
a leading underscore means "junk file, remove at your pleasure".

2006-06-13 08:02 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/storage_file.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Clone the malloc
stevedore to the file stevedore

2006-06-13 07:59 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Remember to tell
getopt about -s

2006-06-13 07:57 phk

* trunk/varnish-cache/bin/varnishd/_stevedore.h,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/storage_malloc.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Put more meat on
the stevedore (storage backend) interface:

Pull the struct definition into _stevedore.h and include this
from
cache.h and mgt.h, they both need to be able to see it.

Add the stevedore pointer as an argument to the stevedore alloc
function
so multiple stevedores is possible later on.

Add the stevedore pointer to the storage object, so freeing it
again is
possible.

Add -s argument processing to select a given stevedore, call
it's ->init
method and pass the stevedore in the heritage.

In the cache process pick stevedore out from heritage, call its
open method.

2006-06-13 07:26 phk

* trunk/varnish-cache/bin/varnishd/storage_malloc.c: Use NULL init
method

2006-06-13 07:25 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c: Allow for NULL
init methods for hash and stevedore

2006-05-01 12:59 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: Use
vca_write/vca_flush

2006-05-01 12:59 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Use
vca_write/vca_flush

2006-05-01 12:51 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Use
vca_write/vca_flush

2006-05-01 12:45 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Add
vca_write() and vca_flush(), two functions which will attempt to
use writev() if possible.

vca_flush() must be called before any memory previosly given to
vca_write is overwritten, and after the last call to vca_write()

2006-05-01 12:28 phk

* trunk/varnish-cache/bin/varnishd/flint.lnt,
trunk/varnish-cache/bin/varnishd/flint.sh: Add FlexeLint files

2006-05-01 12:27 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: bandaid for
name-clash

2006-05-01 12:27 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c: Keep track of
how many connections we have open

2006-05-01 12:27 phk

* trunk/varnish-cache/bin/varnishd/cache.h: add missing extern

2006-05-01 10:55 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Add INCOMPL()
macro to mark missing code.

Add http_HdrIs() to check if we have a given header and if we do
if it has a given value.

Use it.

Ignore SIGPIPE since SO_NOSIGPIPE doesn't work reliably, (but set
it on accepted TCP connections anyway).

Update passing to match fetching, including a chunked encoding
method.

2006-05-01 07:54 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c: Add yet
another thread with an event engine to monitor idle backend
connections and clean them out if the backend closes.

2006-05-01 07:53 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Centralize
"Connection: close" handling from the backend.

Loop until we have the entire chunk in chunked encoding

2006-04-25 09:32 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c: test backend
connections at allocation time.

General bush-wacking in the fetch code.

2006-04-25 09:31 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: Fix argument to
http_BuildSbuf

2006-04-25 09:30 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Keep alive often
enough

2006-04-25 08:17 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: Make width
colum wider and decimal

2006-04-25 08:17 phk

* trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add new shmlog
tags and handling states

2006-04-25 08:14 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Implement a
rudimentary chunked Transfer-Encoding

2006-04-25 07:10 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: reset header
count before we dissect

2006-04-25 07:04 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c: Track backend
connections in shmem log

2006-04-25 06:52 phk

* trunk/varnish-cache/bin/varnishd/cache_http.c: Add an end
pointer so allocation size can be changed on the fly

2006-04-25 06:48 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Move shmlog
entry, remove debugging

2006-04-25 06:16 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_http.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Redo http
header storage and processing

2006-04-24 19:10 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Add an indecisive
comment

2006-04-24 19:09 phk

* trunk/varnish-cache/include/http_headers.h: Sort and annotate

2006-04-19 06:38 phk

* trunk/varnish-cache/bin/varnishd/cache_fetch.c: Loop until we
have read it all

2006-04-19 06:34 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_fetch.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Implement
enough of FetchSession and DeliverSession that we can actually
deliver a cached object.

2006-04-18 08:23 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add busyflag
and strorage link to objects.

Initialize default hasher and stevedore.

Give each workerthread an object pointer to be kept populated
with
a template object for when lookups miss and need to insert one.

Add libmd to get MD5, (choice of hash-algorithm to be revisited
later)

Implement lookup, begin on fetch.

2006-04-18 07:34 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/storage_malloc.c: Add trivial
malloc backed storage backend.

2006-04-12 08:58 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/cli.h,
trunk/varnish-cache/include/cli_priv.h,
trunk/varnish-cache/include/libvcl.h,
trunk/varnish-cache/include/shmlog.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_priv.h,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Implement the
three function VCL model in the compiler.

2006-04-12 08:56 phk

* trunk/varnish-cache/include/http_headers.h: Add ETag: header

2006-04-11 08:28 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/cli_event.h,
trunk/varnish-cache/bin/varnishd/hash_simple_list.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/tcp.c: Beginnings of the object
lookup stuff: A simple list based
implementation to get things moving.

2006-04-06 10:01 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Close or recycle
backend connections as appropriate

2006-04-06 10:00 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c: Add
VBE_RecycleFd() function to recycle backend connections

2006-04-06 09:59 phk

* trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Pass
Content-Encoding header

2006-04-06 09:38 phk

* trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.c: Output the fd
in decimal instead of hex.

Do Id Keyword

2006-04-06 09:33 phk

* trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Rename hdr_end
to a more sensible rcv_ptr which points to the first
unaccounted for character in the buffer.

Do Id Keyword

2006-04-06 09:30 phk

* trunk/varnish-cache/include/shmlog_tags.h: Add shmlog tags for
pipe and pass handling

2006-04-06 09:11 phk

* trunk/varnish-cache/include/shmlog_tags.h: Log tag for session
reuse.

Do Id Keyword

2006-04-06 09:10 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: Recycle sessions
instead of retiring them.

2006-04-06 09:09 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: Prune the bits we
used from the input buffer before we recycle the
session.

2006-04-06 09:09 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c: Add a
vca_recycle_session() function which sticks a session back into
the acceptors event engine.

Do Id keyword

2006-04-06 09:08 phk

* trunk/varnish-cache/bin/varnishd/cache_httpd.c: Don't log the
terminating NUL on response proto field.

2006-04-06 08:18 phk

* trunk/varnish-cache/bin/varnishd/cache_httpd.c: Add an assert,
remove debugging.

2006-04-06 08:18 phk

* trunk/varnish-cache/bin/varnishd/cache_pool.c: Respect VCL
choice of handling

Do Id keyword

2006-04-06 08:16 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Don't attempt to
restart child process (yet).

Add Id Keyword handling

2006-04-06 08:15 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c: It's cheaper to
pipe than to pass, so if the client indicates
"Connection: close", pipe instead of passing.

2006-04-06 07:50 phk

* trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c: Use
HttpdBuildSbuf()

Enable Id keyword

2006-04-06 07:50 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_httpd.c: Add a function
to (re)build a HTTP request or response into an sbuf.

Enable Id keyword

2006-04-05 10:33 phk

* trunk/varnish-cache/autogen.sh: Eliminate leaked developer hacks.

2006-04-05 09:40 phk

* trunk/varnish-cache/autogen.sh,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c: Account for the
last byte of the header.

2006-04-04 10:35 des

* trunk/varnish-cache/configure.ac,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libcompat/strlcat.c,
trunk/varnish-cache/lib/libcompat/strlcpy.c: I can't get
AM_CONDITIONAL to work properly, so use a bigger hammer.

2006-04-04 10:09 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/mgt_child.c: More portability
changes: include config.h and compat.h, get rid of __unused.

2006-04-04 10:08 des

* trunk/varnish-cache/bin/varnishd/Makefile.am: Link in libcompat,
and libsbuf is now static.

2006-04-04 10:08 des

* trunk/varnish-cache/lib/libsbuf/Makefile.am: Make libsbuf static.

2006-04-04 10:07 des

* trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/compat.h,
trunk/varnish-cache/lib/Makefile.am,
trunk/varnish-cache/lib/libcompat,
trunk/varnish-cache/lib/libcompat/Makefile.am,
trunk/varnish-cache/lib/libcompat/strlcat.c,
trunk/varnish-cache/lib/libcompat/strlcpy.c: Add a libcompat
with strlcat() and strlcpy() from OpenBSD.

2006-04-04 09:05 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Get
pass-through working for the first request.

Now we can start to play with multi-request sessions and all
that.

2006-04-04 08:20 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add HTTP
response headers and processing.

2006-04-04 07:46 phk

* trunk/varnish-cache/include/cli_priv.h,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/argv.c,
trunk/varnish-cache/lib/libvarnish/cli.c: Reverse constification
of Argv functions. After cascading through all
the CLI functions we hit the fact that the evbuffer functions in
libevent
are not properly constified.

It's better to deconst the error messages and just "let it be
known" that
argv[0] is const (or NULL).

2006-04-04 07:30 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_pass.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Get "Pass"
mode moving

2006-04-04 07:29 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c: Make the
"receive a HTTP protocol header" code generic

2006-04-04 07:27 phk

* trunk/varnish-cache/include/vcl_lang.h: Add a session callback
pointer to struct sess.

2006-04-04 07:26 phk

* trunk/varnish-cache/bin/varnishd/cli_event.c: Use
bufferevent_base_set() from libevent

2006-04-04 07:24 phk

* trunk/varnish-cache/contrib/libevent/event.h: Add a missing
prototype until libevent people catch up.

2006-04-04 07:24 phk

* trunk/varnish-cache/include/shmlog_tags.h: Add a Debug shmemlog
tag.

2006-04-04 07:24 des

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/include/cli_priv.h,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/argv.c,
trunk/varnish-cache/lib/libvarnish/cli.c,
trunk/varnish-cache/lib/libvcl/vcl_compile.c: Portability
tweaks: use our own sbuf.h and queue.h; get rid of __DECONST; get
rid of digittoint() (which is pointless since ISO C guarantees
that digits
are consecutive in the execution character set); get rid of
__unused.

Also fix a buglet in argv.c's BackSlash() (parsing of octal
numbers), and
constify the array passed around by ParseArgv() and FreeArgv().

2006-04-03 14:41 phk

* trunk/varnish-cache/bin/varnishd/cache_httpd.c: Move memset
further up.

2006-04-03 14:20 des

* trunk/varnish-cache/Makefile.am, trunk/varnish-cache/autogen.sh,
trunk/varnish-cache/configure.ac,
trunk/varnish-cache/contrib/Makefile.am: Hook up libevent to the
build. Note that this should be made conditional at
some later date.

2006-04-03 14:04 des

* trunk/varnish-cache/contrib/libevent/WIN32-Code/provos@badschwartau.provos.org.12766:
GC

2006-04-03 12:05 des

* trunk/varnish-cache/contrib/libevent/sample/Makefile.in,
trunk/varnish-cache/contrib/libevent/test/Makefile.in: Remove
generated files which were committed by mistake.

2006-04-03 11:59 des

* trunk/varnish-cache/contrib/libevent/Makefile.am,
trunk/varnish-cache/contrib/libevent/README,
trunk/varnish-cache/contrib/libevent/WIN32-Code/win32.c,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/libevent.dsp,
trunk/varnish-cache/contrib/libevent/buffer.c,
trunk/varnish-cache/contrib/libevent/configure.in,
trunk/varnish-cache/contrib/libevent/devpoll.c,
trunk/varnish-cache/contrib/libevent/epoll.c,
trunk/varnish-cache/contrib/libevent/evbuffer.c,
trunk/varnish-cache/contrib/libevent/event.3,
trunk/varnish-cache/contrib/libevent/event.c,
trunk/varnish-cache/contrib/libevent/event.h,
trunk/varnish-cache/contrib/libevent/event_rpcgen.py,
trunk/varnish-cache/contrib/libevent/event_tagging.c,
trunk/varnish-cache/contrib/libevent/http.c,
trunk/varnish-cache/contrib/libevent/http.h,
trunk/varnish-cache/contrib/libevent/kqueue.c,
trunk/varnish-cache/contrib/libevent/log.h,
trunk/varnish-cache/contrib/libevent/poll.c,
trunk/varnish-cache/contrib/libevent/rtsig.c,
trunk/varnish-cache/contrib/libevent/select.c,
trunk/varnish-cache/contrib/libevent/signal.c,
trunk/varnish-cache/contrib/libevent/strlcpy.c,
trunk/varnish-cache/contrib/libevent/test/Makefile.am,
trunk/varnish-cache/contrib/libevent/test/regress.c,
trunk/varnish-cache/contrib/libevent/test/regress.h,
trunk/varnish-cache/contrib/libevent/test/regress.rpc,
trunk/varnish-cache/contrib/libevent/test/regress_http.c,
trunk/varnish-cache/contrib/libevent/test/test-weof.c,
trunk/varnish-cache/contrib/libevent/test/test.sh: Update from
libevent CVS trunk.

2006-04-03 11:05 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Segregate http
header fields into a separate structure, we will
reuse them a few places by the looks of it.

Add VCA_UNKNOWNHDR (=10) fields for unknown HTTP headers.
If more headers arrive than that, they're lost (and logged as
such).

2006-04-03 11:03 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/cli_event.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: How I wish people
would think more ahead when writing libraries like
libevent. The entire "implicit event engine" api assumption
stinks.

Deal with it better.

2006-04-03 09:02 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_pipe.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: A little step
for humanity but a big step for varnish:

Implement pipe-through mode and see the first web-pages actually
pass through varnish.

2006-04-03 07:27 phk

* trunk/varnish-cache/bin/varnishd/cache_vcl.c: Call the init
function when the VCL code is loaded.
We may want to postpone this to use time later on.

2006-04-03 07:14 phk

* trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/include/http_headers.h,
trunk/varnish-cache/include/shmlog_tags.h,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add 5 dummy
fields to the http headers, we will need them subsequently.

2006-03-31 08:27 phk

* trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: Use
http_headers.h to define session fields for headers and to parse
them out of the header.

2006-03-31 08:26 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c: Add missing
pthread.h includes

2006-03-31 08:25 phk

* trunk/varnish-cache/include/shmlog_tags.h: Use http_headers.h to
define HTTP header tags for logging

2006-03-31 08:24 phk

* trunk/varnish-cache/include/http_headers.h: Reusable macro
definition of HTTP headers. We will need these
several different places in the sources.

2006-03-30 11:16 phk

* trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: get us closer to a
connection to the backend

2006-03-30 10:56 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Rework the
compilation of backend specifications in order to be able
to check the provided hostname/portname at compile time.

2006-03-30 09:26 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_backend.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Add the
beginning of a backend connection pool

2006-03-30 08:05 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Promote the
poll mutex to be a session mutex so that we can use it
for the VCL reference as well, this saves locking operations.

Call the atual VCL code when we get the request.

2006-03-30 07:05 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_pool.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/include/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Integrate the
VCL code closer in the cache process: The passed
argument will be the session structure.

Add the pool of worker threads (cache_pool). With a unitary
nature
of the VCL code, the HTTP parsing can be postponed to the worker
thread.

This actually helps us with CPU cache locality as it will reduce
the
amount of memory allocated on one CPU but freed on another.

2006-03-27 14:12 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Add config.load,
config.inline and config.use commands.

2006-03-27 14:11 phk

* trunk/varnish-cache/include/libvcl.h: Forgot to add this one.
Prototypes for the VCL compiler.

2006-03-27 14:10 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: Add
VCL_CompileFile() function.

2006-03-27 13:59 phk

* trunk/varnish-cache/bin/varnishd/mgt_child.c: Just return if
there is nothing to wait for. We get SIGCHLD'ed on
the popen child process.

2006-03-27 13:57 phk

* trunk/varnish-cache/include/cli_priv.h: Add a macro which we can
#ifdef

2006-03-27 12:27 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_vcl.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Build default VCL
from "-b backend_IP" option and pass it to client
via heritage.

2006-03-27 11:51 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c: edge closer
towards being a nice member of society

2006-03-27 11:22 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Experimentally pull
in VCL program

2006-03-27 11:21 phk

* trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_priv.h: Actually generate a
shared object

2006-03-27 11:21 phk

* trunk/varnish-cache/include/vcl_lang.h: Stuff VCL programs needs
to know about.

2006-03-27 09:02 phk

* trunk/varnish-cache/configure.ac: add libvcl

2006-03-27 09:01 phk

* trunk/varnish-cache/lib/libvcl/Makefile,
trunk/varnish-cache/lib/libvcl/Makefile.am: Put under control of
auto* tools

2006-03-27 09:01 phk

* trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c: Newly
generated code

2006-03-27 09:00 phk

* trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl: Don't
generate sparse array code.

2006-03-24 10:46 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c,
trunk/varnish-cache/include/shmlog_tags.h: More complete HTTP
parsing and logging.

2006-03-24 10:23 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_httpd.c: Change session
memory management to avoid <event.h> pollution

Add fledling httpd parsing

2006-03-24 10:22 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c: Add a VSLR()
variant which logs a byte range without spending time in
sprintf

2006-03-24 09:45 phk

* trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/include/shmlog_tags.h: Log remote IP#:port
on session open

2006-03-24 09:14 phk

* trunk/varnish-cache/bin/varnishlog/varnishlog.c: put symbolic
names on the tags

2006-03-24 09:05 phk

* trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/bin/varnishlog,
trunk/varnish-cache/bin/varnishlog/Makefile.am,
trunk/varnish-cache/bin/varnishlog/varnishlog.c,
trunk/varnish-cache/configure.ac: Add a minimal log tailer.

2006-03-24 08:43 phk

* trunk/varnish-cache/include/cli.h,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/include/shmlog.h,
trunk/varnish-cache/include/shmlog_tags.h: Move the SHM tags
into a resuable .h file.

Minor nits

2006-03-23 15:31 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cache_shmlog.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Add shared memory
log setup and stuffer function in the child process.

Log whenever we get a CLI ping

2006-03-23 12:20 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache.h,
trunk/varnish-cache/bin/varnishd/cache_acceptor.c,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/tcp.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Now we're starting
to get somewhere: Accept connections and assemble
a HTTP request.

2006-03-23 08:45 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/tcp.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Open TCP sockets

2006-03-17 13:41 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/cli_event.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Make it possible to
suspend and resume a cli connection while we wait
for response from the child (or otherwise).

Add a generic "pass-through" handler for cli requests we just
pass on
to the child.

2006-03-17 10:03 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/mgt.h,
trunk/varnish-cache/bin/varnishd/mgt_child.c,
trunk/varnish-cache/bin/varnishd/varnishd.c: Add multiplexing
for the mgt->child cli connection and get ping/pong
working across it.

The management process will now keep the child process watchdog
from
expiring.

2006-03-16 12:14 phk

* trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/lib/libvarnish/argv.c,
trunk/varnish-cache/lib/libvarnish/cli.c: cleanup

2006-03-16 10:48 phk

* trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/cache_main.c,
trunk/varnish-cache/bin/varnishd/heritage.h,
trunk/varnish-cache/bin/varnishd/varnishd.c: Expand the empty
shell a bit.

Add CLI handler on stdin (for now, in production only if
debug is specified).

Implement help, verbos, ping and start.

start forks the child process, sets up listeners on its
stdout/stderr
(where nothing should arrive in production).

Add SIGCHLD handler to reap and restart the child.

Add shell "main" for the child: Set up a CLI handler on the
pipes
passed as heritage.

Add ping command and keepalive timeout.

2006-03-16 10:46 phk

* trunk/varnish-cache/bin/varnishd/cli_event.c,
trunk/varnish-cache/bin/varnishd/cli_event.h: Functions to
handle the CLI with event(3)'s buffer events.

This may eventually belong in a library for wider use.

2006-03-16 09:02 phk

* trunk/varnish-cache/include/cli.h,
trunk/varnish-cache/include/cli_priv.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/cli.c,
trunk/varnish-cache/lib/libvcl/Makefile: Generic and public
stuff for CLI protocol handling.

2006-03-16 08:30 phk

* trunk/varnish-cache/include/cli.h: add min+max argument counts

2006-03-15 20:34 phk

* trunk/varnish-cache/include/cli.h: Add definitions pertaining to
the ascii-protocol which will be used
multiple different places in the varnish architecture.

2006-03-14 12:54 des

* trunk/varnish-cache/contrib,
trunk/varnish-cache/contrib/libevent,
trunk/varnish-cache/contrib/libevent/Makefile.am,
trunk/varnish-cache/contrib/libevent/README,
trunk/varnish-cache/contrib/libevent/WIN32-Code,
trunk/varnish-cache/contrib/libevent/WIN32-Code/config.h,
trunk/varnish-cache/contrib/libevent/WIN32-Code/misc.c,
trunk/varnish-cache/contrib/libevent/WIN32-Code/misc.h,
trunk/varnish-cache/contrib/libevent/WIN32-Code/provos@badschwartau.provos.org.12766,
trunk/varnish-cache/contrib/libevent/WIN32-Code/win32.c,
trunk/varnish-cache/contrib/libevent/WIN32-Prj,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/event_test,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/event_test/event_test.dsp,

trunk/varnish-cache/contrib/libevent/WIN32-Prj/event_test/test.txt,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/libevent.dsp,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/libevent.dsw,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/signal_test,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/signal_test/signal_test.dsp,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/time_test,
trunk/varnish-cache/contrib/libevent/WIN32-Prj/time_test/time_test.dsp,
trunk/varnish-cache/contrib/libevent/acconfig.h,
trunk/varnish-cache/contrib/libevent/buffer.c,
trunk/varnish-cache/contrib/libevent/compat,
trunk/varnish-cache/contrib/libevent/compat/sys,
trunk/varnish-cache/contrib/libevent/compat/sys/_time.h,
trunk/varnish-cache/contrib/libevent/compat/sys/queue.h,
trunk/varnish-cache/contrib/libevent/compat/sys/tree.h,
trunk/varnish-cache/contrib/libevent/configure.in,
trunk/varnish-cache/contrib/libevent/devpoll.c,
trunk/varnish-cache/contrib/libevent/epoll.c,
trunk/varnish-cache/contrib/libevent/epoll_sub.c,
trunk/varnish-cache/contrib/libevent/evbuffer.c,
trunk/varnish-cache/contrib/libevent/event-internal.h,
trunk/varnish-cache/contrib/libevent/event.3,
trunk/varnish-cache/contrib/libevent/event.c,
trunk/varnish-cache/contrib/libevent/event.h,
trunk/varnish-cache/contrib/libevent/evsignal.h,
trunk/varnish-cache/contrib/libevent/kqueue.c,
trunk/varnish-cache/contrib/libevent/log.c,
trunk/varnish-cache/contrib/libevent/log.h,
trunk/varnish-cache/contrib/libevent/poll.c,
trunk/varnish-cache/contrib/libevent/rtsig.c,
trunk/varnish-cache/contrib/libevent/sample,
trunk/varnish-cache/contrib/libevent/sample/Makefile.am,
trunk/varnish-cache/contrib/libevent/sample/Makefile.in,
trunk/varnish-cache/contrib/libevent/sample/event-test.c,
trunk/varnish-cache/contrib/libevent/sample/signal-test.c,
trunk/varnish-cache/contrib/libevent/sample/time-test.c,
trunk/varnish-cache/contrib/libevent/select.c,
trunk/varnish-cache/contrib/libevent/signal.c,
trunk/varnish-cache/contrib/libevent/test,
trunk/varnish-cache/contrib/libevent/test/Makefile.am,
trunk/varnish-cache/contrib/libevent/test/Makefile.in,
trunk/varnish-cache/contrib/libevent/test/bench.c,
trunk/varnish-cache/contrib/libevent/test/regress.c,
trunk/varnish-cache/contrib/libevent/test/test-eof.c,
trunk/varnish-cache/contrib/libevent/test/test-init.c,
trunk/varnish-cache/contrib/libevent/test/test-time.c,
trunk/varnish-cache/contrib/libevent/test/test-weof.c,
trunk/varnish-cache/contrib/libevent/test/test.sh: Add Niels
Provos's libevent 1.1a.

2006-03-14 12:00 des

* trunk/varnish-cache/include/hash.h,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/include/queue.h,
trunk/varnish-cache/include/sbuf.h,
trunk/varnish-cache/include/tree.h: Set the correct property
(svn:keywords, not svn:keyword)

2006-03-14 11:57 des

* trunk/varnish-cache/lib/libsbuf/Makefile.am,
trunk/varnish-cache/lib/libsbuf/sbuf.3,
trunk/varnish-cache/lib/libsbuf/sbuf.c: Add a man page, and set
the correct property (svn:keywords, not svn:keyword)

2006-03-14 09:31 phk

* trunk/varnish-cache/bin/varnishd/varnishd.c: Add some trivial
bits while I think about the hard ones

2006-03-14 09:15 phk

* trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/libvarnish.h,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnish/argv.c: Add a function to
break a command line like string into an argv[].
This will be useful for the various text based protocols etc.

2006-03-13 14:23 des

* trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/hash.h,
trunk/varnish-cache/include/queue.h,
trunk/varnish-cache/include/tree.h: Add hash.h, queue.h and
tree.h from NetBSD-CURRENT.

2006-03-13 14:14 des

* trunk/varnish-cache/configure.ac,
trunk/varnish-cache/include/sbuf.h,
trunk/varnish-cache/lib/Makefile.am,
trunk/varnish-cache/lib/libsbuf,
trunk/varnish-cache/lib/libsbuf/Makefile.am,
trunk/varnish-cache/lib/libsbuf/sbuf.c: Add libsbuf, based on
the latest sbuf code from FreeBSD-CURRENT.

2006-03-13 13:30 phk

* trunk/varnish-cache/autogen.sh: Pick up the gnu-autotools binary
directory if we spot one. This
makes life on FreeBSD somewhat easier.

2006-03-13 12:37 phk

* trunk/varnish-cache/lib/Makefile.am,
trunk/varnish-cache/lib/libvcl,
trunk/varnish-cache/lib/libvcl/Makefile,
trunk/varnish-cache/lib/libvcl/sample.vcl,
trunk/varnish-cache/lib/libvcl/vcl_compile.c,
trunk/varnish-cache/lib/libvcl/vcl_fixed_token.c,
trunk/varnish-cache/lib/libvcl/vcl_gen_fixed_token.tcl,
trunk/varnish-cache/lib/libvcl/vcl_lang.h,
trunk/varnish-cache/lib/libvcl/vcl_priv.h,
trunk/varnish-cache/lib/libvcl/vcl_token_defs.h: Add first cut
of VCL compiler to the tree.

The Makefile is a temporary shim until I get the auto* stuff
working.

The sample.vcl is a small mock-up to test the compiler.

Some of the .h files needs to move other places in the fullness
of time.

But other than that...

2006-03-02 10:32 des

* trunk/varnish-cache: Ignore generated files; generated with the
following command:

svk propset svn:ignore "$(svk status | awk '/^\?/ { print $2
}')" .

2006-03-02 10:31 des

* trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/varnish,
trunk/varnish-cache/include/varnish/assert.h,
trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib/libvarnishapi/Makefile.am,
trunk/varnish-cache/lib/libvarnishapi/varnish_debug.c,
trunk/varnish-cache/lib/libvarnishapi/varnish_log.c,
trunk/varnish-cache/lib/libvarnishapi/varnish_util.c: Untested &
undocumented login code. I don't have time to continue working
on it right now, but I want it in the tree so phk doesn't start
duplicating
my effort.

2006-03-02 10:29 des

* trunk/varnish-cache/bin/varnishd: Add varnishd to ignore list.

2006-02-27 14:21 des

* trunk/varnish-cache/include: Ignore generated files.

2006-02-27 14:21 des

* trunk/varnish-cache/lib, trunk/varnish-cache/lib/libvarnish,
trunk/varnish-cache/lib/libvarnishapi: Ignore generated files.

2006-02-27 14:21 des

* trunk/varnish-cache/bin, trunk/varnish-cache/bin/varnishd:
Ignore generated files.

2006-02-27 11:10 des

* trunk/varnish-cache/autogen.sh,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnishapi/Makefile.am: Correct
libtool idiom: run libtoolize after aclocal, and use LTLIBRARIES
instead of LIBRARIES.

2006-02-27 09:55 des

* trunk/varnish-cache/LICENSE: Don't forget the license!

2006-02-24 14:35 des

* trunk/varnish-cache/Makefile.am, trunk/varnish-cache/autogen.sh,
trunk/varnish-cache/bin, trunk/varnish-cache/bin/Makefile.am,
trunk/varnish-cache/bin/varnishd,
trunk/varnish-cache/bin/varnishd/Makefile.am,
trunk/varnish-cache/bin/varnishd/varnishd.c,
trunk/varnish-cache/configure.ac, trunk/varnish-cache/include,
trunk/varnish-cache/include/Makefile.am,
trunk/varnish-cache/include/varnishapi.h,
trunk/varnish-cache/lib, trunk/varnish-cache/lib/Makefile.am,
trunk/varnish-cache/lib/libvarnish,
trunk/varnish-cache/lib/libvarnish/Makefile.am,
trunk/varnish-cache/lib/libvarnishapi,
trunk/varnish-cache/lib/libvarnishapi/Makefile.am: Source tree
structure as agreed.

2006-02-22 14:31 des

* trunk/varnish-cache, trunk/varnish-doc, trunk/varnish-proto,
trunk/varnish-tools: Additional subdivisions.
Something went wrong with that request. Please try again.