rustls: fix error in recv handling

- when rustls is told to recieve more TLS data and its internal
  plaintext buffers are full, it returns an IOERROR
- avoid receiving TLS data while plaintext is not read empty

pytest:
- increase curl run timeout when invoking pytest with higher verbosity

Closes #10876
This commit is contained in:
Stefan Eissing 2023-03-31 11:07:18 +02:00 committed by Daniel Stenberg
parent 544abeea83
commit 3797f1a4ca
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 93 additions and 66 deletions

View file

@ -288,7 +288,7 @@ class Env:
self._verbose = pytestconfig.option.verbose \
if pytestconfig is not None else 0
self._ca = None
self._test_timeout = 60.0 # seconds
self._test_timeout = 300.0 if self._verbose > 1 else 60.0 # seconds
def issue_certs(self):
if self._ca is None: