Hi Simon, all,
Fixed the problems I had which led to missing a byte occasionally.
Still unable to download a file using http_client.h. I did learn a small part. I log all arguments of
void result_fn(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, u32_t srv_res, err_t err)
Which produces this log line:
2021-06-14 21:31:52,041 [DEBUG][thread: 5][UartReader] DOWNLOAD finished: httpc_result=5, rx_content_len=5019, srv_res=0, error=0
/** Connection timed out (server didn't respond in time) */
HTTPC_RESULT_ERR_TIMEOUT = 5,
I attached the pcap file of tcpdump.
- It contains a couple of attempts to download the file (513KB.zip).
- It shows TCP window full warnings. I don't care too much about that now. I'll deal with that once I have a stable download going.
- It shows the result of the timeout where my STM board closes the connection.
I also attached my lwipopts.h and the loggings produced by my app (including lwip ppp logging).
Can you help me understand what is going wrong?
Why is LWIP complaining about the server not responding in time, while it seems that the server is doing just fine?
PS: obviously I tested the download on my desktop, I am able to download the file repeatedly.
Many thanks in advance!
Best regards, Bas