| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
For example, -r/--redirect 3 specifies that the maximum number of redirections
per client is 3.
if -r/--redirect is specified with no argument, then the argument specified by
-n/--max-clients is used.
If -n/--max-clients is not specified and -r/--redirect is specifed with no
argument, then default value is 3.
|
|
|
|
|
|
|
|
| |
Close the socket without creating the redirection, this client did not
successfully downloaded the image file.
Moreover, check for connection closed by client in all of the possible read
states.
|
|
|
|
| |
Remove assumption on small file to shortcircuit the redirect logic.
|
|
|
|
|
|
|
| |
This reverts commit 4b97101f747e114253467ce4568cbced18f4c2d1.
This patch is broken, cli->path refers to the absolute file, not
the chunks, and it should check for this->state, not cli->state.
|
|
|
|
| |
No need to split the original file on the server side.
|
|
|
|
|
|
| |
allocate the direct download slot from server if there are no
redirections and no other client is currently downloading this file
already.
|
|
|
|
| |
if a client is redirected, do not exercise the client activation loop.
|
|
|
|
|
|
|
|
| |
Do not break the loop after activating one client.
Keep activating clients that can be redirected. If no redirection is
found, then start direct download for this client (only one) but keep
looping for clients that can be redirected.
|
|
|
|
|
| |
update 4573deb8cb3 to skip clients without redirection after
receiving POST notification.
|
| |
|
|
|
|
| |
available redirections expire after 5 minutes.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Reports a bogus:
unknown read state 5, critical internal error for 127.0.0.1:60610
|
| |
|
| |
|
|
|
|
|
|
|
| |
Report "client %s:%hu starts download for %s" when the file transfer
really starts.
Replace log when redirection after pending state is not available
|
| |
|
|
|
|
| |
A redirection can be reused up to max_clients times.
|
|
|
|
| |
This is a repeat timer, if not stopped, it will run again triggering UAF.
|
|
|
|
| |
as described by man(3) ev, to make it work with ev_timer_again().
|
|
|
|
| |
Skip num_clients and redirection update for small files.
|
| |
|
|
|
|
|
|
|
|
|
| |
Wait for clients to close the connection, then:
- create redirection.
- activate pending clients.
Do no refresh timeout while in close wait state.
|
|
|
|
| |
Specify what client has trigger the unknown internal state
|
|
|
|
| |
This is the client closing the connection with us.
|
| |
|
|
|
|
|
| |
small files should not activate pending clients, otherwise max_clients
is not fulfilled.
|
| |
|
|
|