summaryrefslogtreecommitdiffstats
path: root/src/core.h
Commit message (Collapse)AuthorAgeFilesLines
* do not activate clients without redirection via POSTtiptorrent development team2021-09-291-1/+1
| | | | | update 4573deb8cb3 to skip clients without redirection after receiving POST notification.
* allow to report that a client allows redirection with POST methodtiptorrent development team2021-09-291-0/+3
| | | | | | | | | If clients sends POST /test, it notifies the server that it is available for receive redirections from file 'test'. Test it with wget: wget --post-data '' http://localhost:9999/TEST -O /dev/null
* allow to reuse redirectionstiptorrent development team2021-09-291-0/+1
| | | | A redirection can be reused up to max_clients times.
* add support for HEAD methodtiptorrent development team2021-09-291-6/+6
|
* add a close wait statetiptorrent development team2021-09-291-0/+1
| | | | | | | | | Wait for clients to close the connection, then: - create redirection. - activate pending clients. Do no refresh timeout while in close wait state.
* activate pending clients only for large filestiptorrent development team2021-09-291-0/+5
| | | | | small files should not activate pending clients, otherwise max_clients is not fulfilled.
* use off_t instead of size_t for file sizetiptorrent development team2021-09-291-1/+1
| | | | | stat() st_size datatype is off_t which is for file size, use off_t instead of size_t for correctness.
* Add ULL postfix to FILE_SIZE_THRESHOLD to avoid using inttiptorrent development team2021-09-291-1/+1
| | | | | Otherwise, cli->size > FILE_SIZE_THRESHOLD uses 32-bit integer which overflows with very large files. Use ULL to enforce 64-bits.
* initial committiptorrent development team2021-09-291-0/+83