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> | |
#include <assert.h> | |
struct A { | |
int b; | |
}; | |
struct X { | |
int x; | |
struct A *a; |
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 <errno.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <sys/un.h> | |
#include <unistd.h> | |
#include "connection.h" | |
int |
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
**** dT 0.000 | |
* top TEST tests/r02722.vtc starting | |
**** top extmacro def pwd=/tmp/dridi/varnish-cache/bin/varnishtest | |
**** top extmacro def date(...) | |
**** top extmacro def string(...) | |
**** top extmacro def localhost=fc00:a462:8e9e:946a:5df3:31c6:d23:18dc | |
**** top extmacro def bad_backend=[fc00:a462:8e9e:946a:5df3:31c6:d23:18dc]:34448 | |
**** top extmacro def listen_addr=[fc00:a462:8e9e:946a:5df3:31c6:d23:18dc]:0 | |
**** top extmacro def bad_ip=192.0.2.255 | |
**** top extmacro def topbuild=/tmp/dridi/varnish-cache |
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
**** dT 0.000 | |
* top TEST ./tests/r02722.vtc starting | |
**** top extmacro def pwd=/tmp/dridi/varnish-cache/bin/varnishtest | |
**** top extmacro def date(...) | |
**** top extmacro def string(...) | |
**** top extmacro def localhost=fc00:a462:8e9e:946a:5df3:31c6:d23:18dc | |
**** top extmacro def bad_backend=[fc00:a462:8e9e:946a:5df3:31c6:d23:18dc]:61567 | |
**** top extmacro def listen_addr=[fc00:a462:8e9e:946a:5df3:31c6:d23:18dc]:0 | |
**** top extmacro def bad_ip=192.0.2.255 | |
**** top extmacro def topbuild=/tmp/dridi/varnish-cache |
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
[uplex@vtest2 ~]$ cc -V | |
cc: Sun C 5.13 SunOS_i386 2014/10/20 | |
[uplex@vtest2 ~]$ cc /tmp/t.c | |
[uplex@vtest2 ~]$ ./a.out | |
vmin(5, 8): 5 | |
vmax(5, 8): 8 | |
vmin(a, b): 5 | |
vmax(a, b): 8 | |
vlimit(a, 6, 7): 6 | |
vlimit(b, 6, 7): 7 |
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
[Service] | |
ExecStart= | |
ExecStart=/opt/varnish/sbin/varnishd \ | |
-a http=:80 \ | |
-a tls=/shared/varnish_haproxy/varnish_proxy,PROXY,mode=777 \ | |
-p feature=+http2 \ | |
-p vcl_path=/etc/varnish:/opt/varnish/share/varnish/vcl \ | |
-f /etc/varnish/default.vcl -s malloc,256m | |
ExecReload= | |
ExecReload=/opt/varnish/sbin/varnishreload -m 3 -w 10 |
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 "VDP gunzip OA_GZIPBITS streaming race" | |
# Note this should run with -j64 -n10000 | |
server s1 -repeat 50 -keepalive { | |
rxreq | |
txresp -gziplen 3167 | |
} -start | |
varnish v1 -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
# slink@uplex.de 20190208: | |
# | |
# mockup how builtin.vcl could look in YAML | |
# | |
# * passes yamllint | |
# * YAML structure (schema) is likely to be wrong / not ideal | |
# | |
# NOTE: I am _not_ advocating for anything like this, my personal | |
# opinion is that is über-ugly | |
# |
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
typeset -ra projs=( | |
varnish-cache | |
varnish-modules | |
varnish-objvar | |
varnishevent | |
) | |
typeset -ra vmods=( | |
all_healthy | |
frozen |
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
commit 77444bb6dca702e075aa44f7b4c7358e87927163 | |
Author: Nils Goroll <nils.goroll@uplex.de> | |
Date: Mon Apr 25 16:22:50 2016 +0200 | |
MADV_DONTDUMP | |
diff --git a/bin/varnishd/storage/storage_file.c b/bin/varnishd/storage/storage_file.c | |
index dc15ddf..0915781 100644 | |
--- a/bin/varnishd/storage/storage_file.c | |
+++ b/bin/varnishd/storage/storage_file.c |