No need to parse HTTP header trailer in TIP_CLIENT_PROCESSING_REQUEST. src/handler.c:62:14: warning: variable ‘trailer’ set but not used [-Wunused-but-set-variable] 62 | const char *trailer, *x_redirect; | ^~~~~~~ tip_client_state_recv_hdr() already validates header trailer is present. |
||
---|---|---|
src | ||
tests | ||
.gitignore | ||
COPYING | ||
Makefile.am | ||
README | ||
configure.ac | ||
tiptorrent@.service |
README
1) Compile: make 2) Run (serving files in the local folder): ./tiptorrent 3) Generate test file dd if=/dev/random of=TEST ... ctrl-c whenever you like ... md5sum TEST 4) Test (on a different terminal) wget http://localhost:9999/TEST Now check that downloaded file is the same: md5sum TEST