fixup! client: resend data when didn't receive reply after timeout

This commit is contained in:
Juliusz Sosinowicz
2023-08-10 20:14:35 +02:00
parent e96837aa34
commit c3fea8c930

View File

@ -1104,7 +1104,8 @@ static int ClientWriteRead(WOLFSSL* ssl, const char* msg, int msgSz,
else else
break; break;
} }
} while (0); break;
} while (1);
if (ret != 0) { if (ret != 0) {
char buffer[WOLFSSL_MAX_ERROR_SZ]; char buffer[WOLFSSL_MAX_ERROR_SZ];
@ -4542,7 +4543,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
XMEMCPY(msg, kResumeMsg, msgSz); XMEMCPY(msg, kResumeMsg, msgSz);
} }
(void)ClientWriteRead(sslResume, msg, msgSz, reply, sizeof(reply), (void)ClientWriteRead(sslResume, msg, msgSz, reply, sizeof(reply)-1,
sendGET, " resume", 0); sendGET, " resume", 0);
ret = wolfSSL_shutdown(sslResume); ret = wolfSSL_shutdown(sslResume);