Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tls.c: Better tolerate short TLS writes.
The existing retry policy for SSL_write returning SSL_ERROR_WANT_WRITE was not very robust in handling delayed writes from writing a large amount of data. This improves this by significantly increasing our tolerance and also resetting the counter when progress is made. This is still not perfect, and it would still be better to do what the comments say.
- Loading branch information