Tweaked verbosity of lost connections in HTTP::Downloader and closed connections in Socket::SSLConnection.

This commit is contained in:
Thulinma 2019-06-17 17:15:24 +02:00
parent 128f30bfb6
commit 5154f88de3
2 changed files with 6 additions and 2 deletions

View file

@ -1013,6 +1013,7 @@ int Socket::SSLConnection::iread(void *buffer, int len, int flags){
}
if (r < 0){
switch (errno){
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY: close(); return 0; break;
case MBEDTLS_ERR_SSL_WANT_WRITE: return 0; break;
case MBEDTLS_ERR_SSL_WANT_READ: return 0; break;
case EWOULDBLOCK: return 0; break;