show server read/write block message in server example
This commit is contained in:
parent
32dd1ab006
commit
a89ec1ac91
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user