This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile with auto dependencies, source subdirs, and a build directory | |
# Binary name | |
NAME=test | |
CC=gcc | |
CFLAGS=-g -Wall -I. | |
DEPFLAGS=-MMD -MP | |
LDFLAGS= | |
LIBFLAGS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# CVMFS VCL (v1.3) | |
# | |
# Tested with CVMFS 2.11 and Varnish Cache 6/7 | |
# | |
vcl 4.1; | |
backend cvmfs_origin { | |
.host = "hostname.org"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void test(); | |
int main() | |
{ | |
printf("no args\n"); | |
test(); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# VHA6 req.url rewrite hook | |
# | |
# File location: /etc/varnish/vha6/hooks/states.vcl | |
# | |
import std; | |
sub vha6_hook_init { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cache misses get an instant 302 response and are fetched in the background | |
# (Include this file in your VCL) | |
# | |
vcl 4.1; | |
import std; | |
import synthbackend; | |
import vha; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Probe Proxy v1.0 | |
# | |
import directors; | |
import kvstore; | |
import probe_proxy; | |
import std; | |
acl probe_proxy_local { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "req.body and restarts" | |
server s1 -repeat 4 { | |
rxreq | |
txresp -bodylen 1000 | |
} -start | |
varnish v1 -vcl+backend { | |
import std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "varnishscoreboard vcl_recv" | |
barrier b1 sock 2 | |
barrier b2 sock 2 | |
server s1 { | |
} -start | |
varnish v1 -cliok "param.set thread_pool_track on" -vcl+backend { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "varnishscoreboard parallel ESI" | |
barrier b1 cond 3 | |
barrier b2 cond 3 | |
server s1 { | |
rxreq | |
txresp -body { | |
<esi:include src="/c1"/> | |
<esi:include src="/c2"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "varnishncsa logging a client error" | |
server s1 { | |
rxreq | |
txresp -bodylen 10000000 | |
} -start | |
varnish v1 -vcl+backend { | |
} -start |
NewerOlder