Skip to content

Commit

Permalink
http: restart timer for each chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
fAuernigg committed Feb 10, 2025
1 parent b5a9089 commit 966b5be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/http/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ static int req_recv(struct http_req *req, struct mbuf *mb, bool *last)
return 0;
}

tmr_start(&req->conn->tmr, req->cli->conf.recv_timeout,
timeout_handler, req->conn);

while (mbuf_get_left(mb)) {

if (req->rx_len == 0) {
Expand Down

0 comments on commit 966b5be

Please sign in to comment.