wengzhe commented on issue #13493: URL: https://github.com/apache/nuttx/issues/13493#issuecomment-2359899514
I'm not sure which commit you're on, so I checked out `nuttx-12.6.0-RC1` to do a test with the example in `apps/examples/netloop/lo_main.c` with `TCP_KEEPIDLE=3s` and `TCP_KEEPINTVL=5s` on sim, and got `conn->keeptimer` finally updated to `30` after `setsockopt`. Though I don't have an STM32 board, I think this behavior shouldn't differ between the sim and the actual board. But there did be a problem here, I found the `TCP_KEEPIDLE` and `TCP_KEEPINTVL` options are setting time as dsec into `conn->keep*` (e.g. `3s`->`30`), but `conn->keeptimer` is used as hsec later(`30`->`15s`). It seems that we've mixed dsec and hsec since d8b97d7ae8ecc80069444c3313bff4576b5b00c4 and maybe we need to fix it later. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
