A minimal but flexible directory listing server
Find a file
FRIGN 9e2662c5e9 Get rid of getnameinfo and use inet_ntop instead
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.
2014-08-11 16:16:37 +02:00
arg.h Add arg.h 2014-07-28 13:33:58 +02:00
config.def.h Fix mime-handling with default mime 2014-08-09 22:29:08 +02:00
config.mk initial commit 2009-08-15 19:56:11 +01:00
LICENSE Add arg-parser and move copyright-info to LICENSE 2014-07-28 13:42:26 +02:00
Makefile removed non-existent man page install 2010-04-10 21:34:05 +01:00
quark.c Get rid of getnameinfo and use inet_ntop instead 2014-08-11 16:16:37 +02:00
README correct information in README 2014-04-12 12:26:14 +01:00

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