if no error code and -brief selected print out connection closed instead of read error
This commit is contained in:
parent
139cd16cc5
commit
66d9f2e521
@ -1912,6 +1912,9 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240
|
|||||||
break;
|
break;
|
||||||
case SSL_ERROR_SYSCALL:
|
case SSL_ERROR_SYSCALL:
|
||||||
ret=get_last_socket_error();
|
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);
|
BIO_printf(bio_err,"read:errno=%d\n",ret);
|
||||||
goto shut;
|
goto shut;
|
||||||
case SSL_ERROR_ZERO_RETURN:
|
case SSL_ERROR_ZERO_RETURN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user