This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Calling nrf_send on TLS socket with large payload closing socket with errno -52 ENETRESET

We are currently running on mfw_nrf9160_1.0.1 and NRF master as of today (Sept 13, commit 224bee9).

We are developing an MQTT application that uses TLS mode sockets.

We have bumped into the issue that trying to publish a message that is too large (~2500 bytes) will cause the call to send() down in the MQTT library to fail, returning -1 and setting errno to 52 and closing the socket.

If I rebuild the application using non-TLS sockets, it is able to send the large publish payload without issue.

I have been digging around the NRFX documentation and headers and seen no mention of an upper limit to nrf_send, or how to adjust any buffers.

What is imposing this limit?  Is there a way to know if our call to send is about to hit it before it kills our socket?  How can I work around it?

Parents Reply Children
No Data
Related