diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-12-03 03:33:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-12-03 03:33:44 +0000 |
commit | 66d9f2e5210b7f68c4ac9ffebedca031c05ec487 (patch) | |
tree | 6da0a09f7d45e706e98bbfb64d5bd630e5f7d0c6 /apps | |
parent | 139cd16cc58330840890f914c318f00de6bfd831 (diff) |
if no error code and -brief selected print out connection closed instead of read error
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 1a8f8ac844..9c852e4eda 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1912,7 +1912,10 @@ 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(); - BIO_printf(bio_err,"read:errno=%d\n",ret); + 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: BIO_printf(bio_c_out,"closed\n"); |