quiche: flush egress in h3_stream_recv() too

This commit is contained in:
Daniel Stenberg 2019-08-07 07:48:37 +02:00
parent 405d34280b
commit 470551b7fc
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 4 additions and 0 deletions

View 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;