Branch
Hash :
0a905b52
Author :
Thomas de Grivel
Date :
2025-09-11T14:20:06
wip httpd fx
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
## kc3
## Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software granted the above
## copyright notice and this permission paragraph are included in all
## copies and substantial portions of this software.
##
## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
## THIS SOFTWARE.
SRC_TOP = ../..
main: assets
${SRC_TOP}/httpd/.libs/kc3_httpd --trace -d 127.0.0.1 15051
assets:
${MAKE} -C assets
asan: assets
${SRC_TOP}/httpd/.libs/kc3_httpd_asan --trace -d 127.0.0.1 15051
clean: clean_dump
clean_dump:
rm -f kc3.dump db/*.bin.facts
cov: assets
${SRC_TOP}/httpd/kc3_httpd_cov --trace -d 127.0.0.1 15051
debug: assets
${SRC_TOP}/httpd/kc3_httpd_debug --trace -d 127.0.0.1 15051
dump: clean
${SRC_TOP}/httpd/kc3_httpd --trace -d
time ${SRC_TOP}/kc3s/kc3s --trace --quit
dump_debug: clean_dump
${SRC_TOP}/httpd/kc3_httpd_debug --trace -d
time ${SRC_TOP}/kc3s/kc3s_debug --trace --quit
gdb: assets
if [ -f kc3_httpd_debug.core ]; then gdb ${SRC_TOP}/httpd/.libs/kc3_httpd_debug kc3_httpd_debug.core; else gdb ${SRC_TOP}/httpd/.libs/kc3_httpd_debug; fi
gdb_dump: clean_dump
gdb ${SRC_TOP}/httpd/.libs/kc3_httpd_debug
gdb_dump_restore:
gdb ${SRC_TOP}/kc3s/.libs/kc3s_debug
ikc3: assets
${SRC_TOP}/ikc3/ikc3 127.0.0.1 15051
lldb_dump: clean_dump
lldb ${SRC_TOP}/httpd/.libs/kc3_httpd_debug
lldb_dump_restore:
lldb ${SRC_TOP}/kc3s/.libs/kc3s_debug
run: assets
${SRC_TOP}/httpd/.libs/kc3_httpd -C ${SRC_TOP}/test/httpd 127.0.0.1 15051
test: vegeta_local
VEGETA_RATES = 10 20
vegeta_local:
for RATE in ${VEGETA_RATES}; do \
vegeta attack -rate=$$RATE -duration=20s < \
vegeta-targets.local.txt | \
tee vegeta-result.rate$$RATE.local.bin | \
vegeta plot > vegeta-result.rate$$RATE.local.html; \
done
vegeta_production:
for RATE in ${VEGETA_RATES}; do \
vegeta attack -rate=$$RATE -duration=20s < \
vegeta-targets.production.txt | \
tee vegeta-result.rate$$RATE.production.bin | \
vegeta plot > vegeta-result.rate$$RATE.production.html; \
done
.PHONY: assets \
asan \
clean_dump \
cov \
debug \
dump \
main \
run \
test \
vegeta_local \
vegeta_production