Simulate WANT_WRITE only with async I/O support

This commit is contained in:
Juliusz Sosinowicz
2022-05-27 23:23:18 +02:00
parent 8cb4819b53
commit 6245395f34
2 changed files with 10 additions and 0 deletions

View File

@ -2563,8 +2563,13 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
break; break;
case '6' : case '6' :
#ifdef WOLFSSL_ASYNC_IO
nonBlocking = 1; nonBlocking = 1;
simulateWantWrite = 1; simulateWantWrite = 1;
#else
fprintf(stderr, "Ignoring -6 since async I/O support not "
"compiled in.\n");
#endif
break; break;
case '7' : case '7' :

View File

@ -2035,8 +2035,13 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
break; break;
case '6' : case '6' :
#ifdef WOLFSSL_ASYNC_IO
nonBlocking = 1; nonBlocking = 1;
simulateWantWrite = 1; simulateWantWrite = 1;
#else
fprintf(stderr, "Ignoring -6 since async I/O support not "
"compiled in.\n");
#endif
break; break;
case '7' : case '7' :
minVersion = atoi(myoptarg); minVersion = atoi(myoptarg);