diff options
author | Javier Blazquez <jblazquez@riotgames.com> | 2021-04-14 14:55:12 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-15 08:19:49 +0200 |
commit | 40d2d39f86812d295008648f249a98d07f4c93ee (patch) | |
tree | 7e5f57cb3f1f7d242ca46087eb63ba1323c0bd17 /scripts/singleuse.pl | |
parent | 520bd5225c70a5c4cceee08f1aa7447eb0ec6653 (diff) | |
download | curl-40d2d39f86812d295008648f249a98d07f4c93ee.tar.gz |
rustls: only return CURLE_AGAIN when TLS session is fully drained
The code in cr_recv was returning prematurely as soon as the socket
reported no more data to read. However, this could be leaving some
unread plaintext data in the rustls session from a previous call,
causing causing the transfer to hang if the socket never receives
further data.
We need to ensure that the session is fully drained of plaintext data
before returning CURLE_AGAIN to the caller.
Reviewed-by: Jacob Hoffman-Andrews
Closes #6894
Diffstat (limited to 'scripts/singleuse.pl')
0 files changed, 0 insertions, 0 deletions