Commit 66d9f2e5 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

if no error code and -brief selected print out connection closed instead of read error

parent 139cd16c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1912,6 +1912,9 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240
				break;
			case SSL_ERROR_SYSCALL:
				ret=get_last_socket_error();
				if (ret == 0 && c_brief)
					BIO_puts(bio_err, "CONNECTION CLOSED BY SERVER\n");
				else
					BIO_printf(bio_err,"read:errno=%d\n",ret);
				goto shut;
			case SSL_ERROR_ZERO_RETURN: