[HELP] TCP IP KeepAlive config parameters are not applied correctly on Nuttx 12.6 STM32H7 #13493
Open
1 task done
Labels
Community: Question
Further information is requested
Description
We are using Nuttx 12.6 and STM32H743II MCU for our application and we are trying to configure the KeepAlive feature.
We configured TCP_KEEPIDLE=3000 ms, TCP_KEEPINTVL=5000ms and the parameters seems to not take efect, to validate the keep alive feature, we monitored the network using WireShark and the keep alive probes are not sent at the configured interval.
We added some printf statements in the nuttx/net/tcp/tcp_timer.c at near line 700 to check what are the conn->keeptimer and hsec values at runtime. The following observations are made: conn->keeptimer=72000 and hsec=3. The conn->keeptimer value is set by default in the nuttx/net/tcp/tcp_conn.c at line 788, and it cannot be changed by a call to setsockopt.
Is there any other way to change the values? Any help is appreciated!
Verification
The text was updated successfully, but these errors were encountered: