I'm using TIRTOS 2.16.00.08 on a TM4C1294 chip.
I have 2 HTTPS tasks that run and I am occasionally seeing (once or twice every few days) an error on when I run "HTTPCli_connect()".
The http error code is (-102) HTTPCli_ECONNECTFAIL.
The socket level error code from HTTPCli_getSocketError() is (-1) EAI_BADFLAGS. I think this is defined in serrno.h right?
The behavior of the error is that sometimes (once a day or even less) for 1-2 minutes HTTPCli_Connect() will return this error.
After a short time, it will start working again and not return any error code.
I currently resolve the DNS once and reuse it multiple times!
Do I need to resolve the HTTP server (using getaddrinfo) on every HTTP request?
Is that the cause of my problem (most likely)?
Thanks for the help,
Subhash
