Tree for my work on http://tools.suckless.org/quark/
9e2662c5e9
Compiling quark against musl slowed down request-times considerably. After further analysis, I found out that the library does a DNS- request on each address passed to getnameinfo. Given we chroot into a folder, the /etc/resolv.conf was missing, which led to the really long response-times (~3-5s). After hardlinking the /etc/resolv.conf inside the chroot, the times dropped to ~200ms, as now the library knew which NS to contact directly. This obviously isn't fast enough. Thanks to Hiltjo's useful tips I rewrote the section using inet_ntop (POSIX 2001). Now the response-times are back to 1-2ms and we don't need to copy /etc/resolv.conf everywhere we go. FYI: This is not a bug in musl, but rather different behaviour. |
||
---|---|---|
arg.h | ||
config.def.h | ||
config.mk | ||
LICENSE | ||
Makefile | ||
quark.c | ||
README |
quark - simple http get server ============================== quark is an extremly small and simple http get-only web server. It only serves static pages on a single host. Installation ------------ Edit config.mk to match your local setup. quark is installed into /usr/local/bin by default. Afterwards enter the following command to build and install quark (if necessary as root): $ make clean install Running quark ------------ $ cd <web-root> $ sudo quark