[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 169/220: quiche: send the HTTP body correctly on ca
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 169/220: quiche: send the HTTP body correctly on callback uploads |
Date: |
Thu, 12 Sep 2019 17:28:49 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 48f589893d483684bac3ff2aebc8ff64f14442af
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Aug 23 17:47:36 2019 +0200
quiche: send the HTTP body correctly on callback uploads
Closes #4265
---
lib/vquic/quiche.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c
index 43723a5f9..a17bd6a1c 100644
--- a/lib/vquic/quiche.c
+++ b/lib/vquic/quiche.c
@@ -498,7 +498,10 @@ static ssize_t h3_stream_send(struct connectdata *conn,
sent = len;
}
else {
- sent = quiche_conn_stream_send(qs->conn, 0, mem, len, true);
+ H3BUGF(infof(conn->data, "Pass on %zd body bytes to quiche\n",
+ len));
+ sent = quiche_h3_send_body(qs->h3c, qs->conn, stream->stream3_id,
+ (uint8_t *)mem, len, FALSE);
if(sent < 0) {
*curlcode = CURLE_SEND_ERROR;
return -1;
@@ -757,9 +760,15 @@ CURLcode Curl_quic_done_sending(struct connectdata *conn)
{
if(conn->handler == &Curl_handler_http3) {
/* only for HTTP/3 transfers */
+ ssize_t sent;
struct HTTP *stream = conn->data->req.protop;
+ struct quicsocket *qs = conn->quic;
fprintf(stderr, "!!! Curl_quic_done_sending\n");
stream->upload_done = TRUE;
+ sent = quiche_h3_send_body(qs->h3c, qs->conn, stream->stream3_id,
+ NULL, 0, TRUE);
+ if(sent < 0)
+ return CURLE_SEND_ERROR;
}
return CURLE_OK;
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [gnurl] 153/220: curl: make --libcurl use CURL_HTTP_VERSION_3, (continued)
- [GNUnet-SVN] [gnurl] 153/220: curl: make --libcurl use CURL_HTTP_VERSION_3, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 159/220: travis: add a build using ngtcp2 + nghttp3 (and a patched OpenSSL), gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 158/220: travis: bump to using nghttp2 version 1.39.2, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 178/220: CURLINFO docs: mention that in redirects times are added, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 190/220: CMake: remove needless newlines at end of gss variables, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 188/220: CMake: use platform dependent name for dlopen() library, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 191/220: Curl_addr2string: take an addrlen argument too, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 192/220: THANKS: remove duplicate, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 157/220: docs/examples/curlx: fix errors, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 161/220: ngtcp2: accept upload via callback, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 169/220: quiche: send the HTTP body correctly on callback uploads,
gnunet <=
- [GNUnet-SVN] [gnurl] 186/220: quiche: decrease available buffer size, don't assign it!, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 180/220: ngtcp2: set flow control window to stream buffer size, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 183/220: plan9: fix installation instructions, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 184/220: curl: fix include conditions, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 211/220: urlapi: one colon is enough for the strspn() input (typo), gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 197/220: urldata: avoid 'generic', use dedicated pointers, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 215/220: gitignore: add sig files., gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 198/220: netrc: free 'home' on error, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 213/220: THANKS: from the 7.66.0 release, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 200/220: KNOWN_BUGS/TODO: cleanup and remove outdated issues, gnunet, 2019/09/12