Sample code for nRF9160:
Sample code for the server (Node.js):
Output nRF9160:
Output server:
This error is being reproduced with 100% probability for me in the exact same way.
In the output from nRF9160, we can see that send
returns -1 with errno
set to EWOULDBLOCK
in the 17th call. This is in violation with the POSIX contract, since the poll
function returned POLLOUT
for the socket, indicating that it is possible to put more data in the socket's send buffer. The expected outcome is that the poll
function should block and exit with POLLOUT
first when there is at least 1 byte free in the socket's send buffer, so that a send
call will succeed.
We see that Q is missing in the output from the server, indicating that the send
call indeed failed.
nRF Connect SDK version: 2.3.0.
Modem firmware: 1.3.4.
Mobile operator: Telenor SE.