tweak error message

This commit is contained in:
David Rose 2002-12-17 17:16:23 +00:00
parent d6f92fe62b
commit ef16b83f94
1 changed files with 4 additions and 12 deletions

View File

@ -165,18 +165,10 @@ underflow() {
if (read_count <= 0) {
_is_closed = !BIO_should_retry(*_source);
if (_is_closed) {
if (read_count == 0) {
downloader_cat.info()
<< "Lost connection to "
<< _source->get_server_name() << ":"
<< _source->get_port() << ".\n";
} else {
downloader_cat.info()
<< "Socket error detected on "
<< _source->get_server_name() << ":"
<< _source->get_port() << ", return code "
<< read_count << ".\n";
}
downloader_cat.info()
<< "Lost connection to "
<< _source->get_server_name() << ":"
<< _source->get_port() << " (" << read_count << ").\n";
#ifdef REPORT_OPENSSL_ERRORS
ERR_print_errors_fp(stderr);
#endif