diff options
author | Nick Banks <nibanks@microsoft.com> | 2022-12-21 14:13:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-12-22 14:29:40 +0100 |
commit | 72b819f14792f350e90a7b7341d41701e36c0557 (patch) | |
tree | c6392fd91e4520a14dc93dcc8cb6248805d18187 /lib/vquic | |
parent | 3736c0a209d929bcb1c9da909096e406c7d444b7 (diff) | |
download | curl-72b819f14792f350e90a7b7341d41701e36c0557.tar.gz |
msh3: update to v0.5 Release
Closes #10125
Diffstat (limited to 'lib/vquic')
-rw-r--r-- | lib/vquic/msh3.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/vquic/msh3.c b/lib/vquic/msh3.c index c3e58e726..d108d924a 100644 --- a/lib/vquic/msh3.c +++ b/lib/vquic/msh3.c @@ -68,6 +68,8 @@ static void MSH3_CALL msh3_data_received(MSH3_REQUEST *Request, static void MSH3_CALL msh3_complete(MSH3_REQUEST *Request, void *IfContext, bool Aborted, uint64_t AbortError); static void MSH3_CALL msh3_shutdown(MSH3_REQUEST *Request, void *IfContext); +static void MSH3_CALL msh3_send_complete(MSH3_REQUEST *Request, + void *IfContext, void *SendContext); static const struct Curl_handler msh3_curl_handler_http3 = { "HTTPS", /* scheme */ @@ -96,7 +98,8 @@ static const MSH3_REQUEST_IF msh3_request_if = { msh3_header_received, msh3_data_received, msh3_complete, - msh3_shutdown + msh3_shutdown, + msh3_send_complete }; void Curl_quic_ver(char *p, size_t len) @@ -381,6 +384,15 @@ static void MSH3_CALL msh3_shutdown(MSH3_REQUEST *Request, void *IfContext) (void)stream; } +static void MSH3_CALL msh3_send_complete(MSH3_REQUEST *Request, + void *IfContext, void *SendContext) +{ + struct HTTP *stream = IfContext; + (void)Request; + (void)stream; + (void)SendContext; +} + static ssize_t msh3_stream_send(struct Curl_easy *data, int sockindex, const void *mem, @@ -406,7 +418,8 @@ static ssize_t msh3_stream_send(struct Curl_easy *data, } H3BUGF(infof(data, "starting request with %zu headers", hreq->entries)); stream->req = MsH3RequestOpen(qs->conn, &msh3_request_if, stream, - (MSH3_HEADER*)hreq->header, hreq->entries); + (MSH3_HEADER*)hreq->header, hreq->entries, + MSH3_REQUEST_FLAG_FIN); Curl_pseudo_free(hreq); if(!stream->req) { failf(data, "request open failed"); |