apache / apache/nuttx

Networking 1s Send Delay and SO_SNDTIMEO odd behavior

Open
#11,292 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

we are using Nuttx 9.1.0 as host OS on our Robot Control Boards using STM32H7, and we are seeing an odd behavior when communicating with our main board that is running Linux.

[defconfig](https://github.com/apache/nuttx/files/13505640/defconfig.txt)

Every once in a while, we see a more than a 1 second delay when we call Socket::Send to send information to the Main board. Using Debug Statement, I confirmed that we are calling Socket::Send in a timely manner. Also. by using WireShark, I can confirm that the message does not get sent out until more than a 1 second later.

Strangely, after adding an option to the socket for a 300ms send Delay "SO_SNDTIMEO", we don't see the Delay in communication anymore.

Why would adding "SO_SNDTIMEO" remove the once in a while delay we were seeing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.