summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* another log rewritetiptorrent development team2021-09-291-1/+1
|
* extend teststiptorrent development team2021-09-292-5/+149
| | | | a bit of copy and paste, generalize it later.
* improve loggingtiptorrent development team2021-09-291-11/+11
| | | | | | | Report "client %s:%hu starts download for %s" when the file transfer really starts. Replace log when redirection after pending state is not available
* specify current state when displaying unknown errortiptorrent development team2021-09-291-4/+4
|
* allow to reuse redirectionstiptorrent development team2021-09-292-3/+10
| | | | A redirection can be reused up to max_clients times.
* disarm timer on releasetiptorrent development team2021-09-291-2/+1
| | | | This is a repeat timer, if not stopped, it will run again triggering UAF.
* fix client timeouttiptorrent development team2021-09-291-4/+5
| | | | as described by man(3) ev, to make it work with ev_timer_again().
* check sendfile errortiptorrent development team2021-09-291-1/+2
|
* update num_clients and redirection only for large filestiptorrent development team2021-09-292-9/+12
| | | | Skip num_clients and redirection update for small files.
* add support for HEAD methodtiptorrent development team2021-09-293-17/+39
|
* add a close wait statetiptorrent development team2021-09-293-9/+27
| | | | | | | | | Wait for clients to close the connection, then: - create redirection. - activate pending clients. Do no refresh timeout while in close wait state.
* extend log on unknown internal statetiptorrent development team2021-09-291-2/+4
| | | | Specify what client has trigger the unknown internal state
* do not display an error when recv() == 0tiptorrent development team2021-09-291-7/+4
| | | | This is the client closing the connection with us.
* call shutdown() before close()tiptorrent development team2021-09-291-0/+1
|
* activate pending clients only for large filestiptorrent development team2021-09-293-3/+10
| | | | | 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.
* add more logging for easier debuggingtiptorrent development team2021-09-291-5/+15
|
* fix typo in tests/network-setup.shtiptorrent development team2021-09-291-1/+1
|
* initial committiptorrent development team2021-09-2911-0/+1152