View no_args.c
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; | |
} |
View states.vcl
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 { | |
} |
View miss_302.vcl
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; |
View probe_proxy.vcl
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 { |
View body_restart.vtc
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; |
View S00001.vtc
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 { |
View S00002.vtc
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"/> |
View client_error.vtc
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 |
View goto_fallback.vtc
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 "Goto and fallbacks" | |
server s1 { | |
rxreq | |
txresp | |
expect req.url == "/probe" | |
accept | |
rxreq | |
txresp |
View aws_secrets_manager.vcl
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
# | |
# AWS Secrets Manager v1.0 | |
# | |
import crypto; | |
import http; | |
import json; | |
import kvstore; | |
import utils; |
NewerOlder