Skip to content
Discussion options

You must be logged in to vote

It would be straightforward to add support for SO_KEEPALIVE as it's supported by LWIP (and as you note, the IDF uses LWIP, but we also use it on many other boards). See the implementation of REUSEADDR, it's much the same, just plumbing.

If you were interested in making a PR, this would need to be added to extmod/modlwip.c, ports/esp32/modsocket.c, and ports/unix/modsocket.c (and maybe Zephyr's ports/zephyr/modsocket.c too?).

(It's a bit frustrating that ESP32 has its own implementation of socket even though it's largely the same as the common LWIP one in modlwip -- it would be good to merge these one day)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ma261065
Comment options

ma261065 Aug 21, 2023
Author Sponsor

Answer selected by ma261065
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants