Hi
I am developing an application on QCA4020. I noticed a very strange behavior of qapi_Net_SSL_Connect function. In many cases it works correctly but in some wifi networks (WPA2) it hangs infinitely. It seems this issue does not depend on remote server. I use the same servers in different networks and SSL handshake is successful except in these specific networks. It happens with any server when SSL connection is trying to be established. In some cases the hang happens at the second call of qapi_Net_SSL_Connect but in many cases it happens when it is called for the first time. When it happens the only way to recover module is a hard reset.
I am not able to identify relevant differences in the configuration of the various networks (all are WPA2 with AES) and, on the other hand, many equipments work correctly on these networks and this makes me thinking about some mistakes on SSL configuration that raise an error only in certain cases
I kindly ask if there is a condition that can lead to a hang of the qapi_Net_SSL_Connect function to help me to find quickly the point
Thanks in advance
The maximum time qapi_Net_SSL_Connect () can block is for 60 seconds which is an internal timer for ssl_handshake_timeout.
Kindly refer to @target\quartz\demo\QCLI_demo\src\net\Bench_tcp.c for detailed information.
Hi
I can confirm that even after 60 seconds Qca4020 does not recover
I noticed that also the other concurrent tasks are frozen so I suppose the a sort of hardfault occurred inside it
Let me know if there some wrong configuration in ssl that can lead to an hardfault inside qapi_Net_SSL_Connect qapi
Thanks
I tried to recreate similar behaviour but could not observe any corner case.
Since the mentioned error is hardfault, I assume its related to your print buffer or overflowing stack of networking thread.
Is it possible to share your test application of instructions to reproduce the issue ?
Hi Raja
I have sent you a message with some info about the software I developed to use the module
Let me know if you discover something about this issue
Thanks in advance