]> granicus.if.org Git - curl/commitdiff
quiche: flush egress in h3_stream_recv() too
authorDaniel Stenberg <daniel@haxx.se>
Wed, 7 Aug 2019 05:48:37 +0000 (07:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Aug 2019 05:48:37 +0000 (07:48 +0200)
lib/vquic/quiche.c

index 68786540e46268592bf3d8b8f7dab301ef53169c..4362ba98c03529515111b5c8beb4df4c2edd7123 100644 (file)
@@ -352,6 +352,10 @@ static ssize_t h3_stream_recv(struct connectdata *conn,
 
     quiche_h3_event_free(ev);
   }
+  if(flush_egress(conn, sockfd)) {
+    *curlcode = CURLE_SEND_ERROR;
+    return -1;
+  }
 
   *curlcode = (-1 == recvd)? CURLE_AGAIN : CURLE_OK;
   return recvd;