mirror of
https://github.com/moparisthebest/curl
synced 2025-01-10 21:48:10 -05:00
parent
ad1c7154b3
commit
a1338d4297
@ -1334,13 +1334,14 @@ static ssize_t cb_h3_readfunction(nghttp3_conn *conn, int64_t stream_id,
|
||||
nread = H3_SEND_SIZE - out->windex;
|
||||
|
||||
memcpy(&out->buf[out->windex], stream->upload_mem, nread);
|
||||
out->windex += nread;
|
||||
out->used += nread;
|
||||
|
||||
/* that's the chunk we return to nghttp3 */
|
||||
vec[0].base = &out->buf[out->windex];
|
||||
vec[0].len = nread;
|
||||
|
||||
out->windex += nread;
|
||||
out->used += nread;
|
||||
|
||||
if(out->windex == H3_SEND_SIZE)
|
||||
out->windex = 0; /* wrap */
|
||||
stream->upload_mem += nread;
|
||||
|
Loading…
Reference in New Issue
Block a user