A minimal but flexible directory listing server
a1fa707eec
Streaming a file (through mplayer for instance), the socket would block, because mplayer fills its buffer sequentially. We would've never gotten to a write(.., n) == n. Instead, do it like we read from files and accept the fact clients can accept data chunk-wise, too. The reason why this error went unnoticed is that I added a faulty printf-directive (%ls for ssize_t), which silently produced no output. Thanks to sin for fixing the %ls -> %zd error, as it made me look at the code again. |
||
---|---|---|
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