| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
update 4573deb8cb3 to skip clients without redirection after
receiving POST notification.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
A redirection can be reused up to max_clients times.
|
| |
|
|
|
|
|
|
|
|
|
| |
Wait for clients to close the connection, then:
- create redirection.
- activate pending clients.
Do no refresh timeout while in close wait state.
|
|
|
|
|
| |
small files should not activate pending clients, otherwise max_clients
is not fulfilled.
|
|
|
|
|
| |
stat() st_size datatype is off_t which is for file size, use off_t
instead of size_t for correctness.
|
|
|
|
|
| |
Otherwise, cli->size > FILE_SIZE_THRESHOLD uses 32-bit integer which
overflows with very large files. Use ULL to enforce 64-bits.
|
|
|