Unusual socket errno 122 when using NRF91 TLS-PSK

Hello,

We are using the NRF9160's built-in TLS client to connect to our server using PSK credentials. Occasionally after sending a request to our server, when we call poll() to do a timed-wait for the response, we get a POLLERR revent. If we ignore that flag and try to call recv() anyway, then errno is set to EMSGSIZE (122).

We have not yet determined what conditions reproduce this error, but we have observed it on the NRF9160DK as well as 2 different custom boards with the NRF9160 SOC.

When we simulate the same request-response sequence on a desktop version of our client, this error does not occur, so it does not seem to be a server-side issue. This leads us to believe that it could be a problem in the NRF9160's IP stack.

I have captured a modem trace from the NRF9160DK attached below, in hopes that Nordic support could shed some light or suggest other avenues of debugging.

Thank you in advance!

NCS Version: 2.0.0

MFW Version: 1.3.2

Toolchain: Reproduced with both GNUARMEMB and Zephyr SDK 0.14.2

Network Mode: LTE-M + GPS with eDRX enabled. NB-IOT is disabled.

Hardware Revision: NRF9160DK 0.9.0

5700.trace-2022-09-06T17-19-37.981Z.bin

Parents Reply Children
No Data
Related