mirror of
https://github.com/curl/curl.git
synced 2025-09-19 18:42:42 +03: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;
|
nread = H3_SEND_SIZE - out->windex;
|
||||||
|
|
||||||
memcpy(&out->buf[out->windex], stream->upload_mem, nread);
|
memcpy(&out->buf[out->windex], stream->upload_mem, nread);
|
||||||
out->windex += nread;
|
|
||||||
out->used += nread;
|
|
||||||
|
|
||||||
/* that's the chunk we return to nghttp3 */
|
/* that's the chunk we return to nghttp3 */
|
||||||
vec[0].base = &out->buf[out->windex];
|
vec[0].base = &out->buf[out->windex];
|
||||||
vec[0].len = nread;
|
vec[0].len = nread;
|
||||||
|
|
||||||
|
out->windex += nread;
|
||||||
|
out->used += nread;
|
||||||
|
|
||||||
if(out->windex == H3_SEND_SIZE)
|
if(out->windex == H3_SEND_SIZE)
|
||||||
out->windex = 0; /* wrap */
|
out->windex = 0; /* wrap */
|
||||||
stream->upload_mem += nread;
|
stream->upload_mem += nread;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user