show server read/write block message in server example

This commit is contained in:
toddouska 2012-10-19 10:14:26 -07:00
parent 32dd1ab006
commit a89ec1ac91

View File

@ -48,7 +48,10 @@ static void NonBlockingSSL_Accept(SSL* ssl)
while (ret != SSL_SUCCESS && (error == SSL_ERROR_WANT_READ ||
error == SSL_ERROR_WANT_WRITE)) {
printf("... server would block\n");
if (error == SSL_ERROR_WANT_READ)
printf("... server would read block\n");
else
printf("... server would write block\n");
if (CyaSSL_dtls(ssl))
select_ret = tcp_select(sockfd,