Hi bthoms01,
Usually this error means there was an issue placing network bytes into the read buffer.
You have `MQX_USE_IO_OLD` defined which causes the wolfio.c to use the old MQX RTCS. You might try adding some debug in the IO and doing a Wireshark trace.
Another option is to enable and set IO callbacks where you can handle the socket read/writes directly. To do this define `WOLFSSL_USER_IO` and set IO callbacks using:
WOLFSSL_API void wolfSSL_SetIORecv(WOLFSSL_CTX *ctx, CallbackIORecv CBIORecv);
WOLFSSL_API void wolfSSL_SetIOSend(WOLFSSL_CTX *ctx, CallbackIOSend CBIOSend);
You can find an example for this here:
https://github.com/wolfSSL/wolfssl-exam … ack.c#L194
If you don't require support for pre TLS 1.2 I'd recommend adding `NO_OLD_TLS`.
Let me know if that information is helpful or if you have any other questions.
Thanks,
David Garske, wolfSSL