Allow proxies to delay chunks

This commit is contained in:
2023-01-26 12:46:30 +01:00
parent 8053439212
commit f7a6214dbc
6 changed files with 43 additions and 80 deletions

View File

@ -21,7 +21,7 @@ void chunk_handler_func(chunk_ctx_t *ctx) {
// error
error("Unable to splice chunk");
errno = 0;
ctx->err_cb(ctx->client);
ctx->err_cb(ctx);
} else if (sent == 0) {
// last chunk
ctx->client->chunks_transferred = 1;