Skip to content

Commit 966b5be

Browse files
committed
http: restart timer for each chunk
1 parent b5a9089 commit 966b5be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/http/client.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ static int req_recv(struct http_req *req, struct mbuf *mb, bool *last)
293293
return 0;
294294
}
295295

296+
tmr_start(&req->conn->tmr, req->cli->conf.recv_timeout,
297+
timeout_handler, req->conn);
298+
296299
while (mbuf_get_left(mb)) {
297300

298301
if (req->rx_len == 0) {

0 commit comments

Comments
 (0)