Skip to content

Conversation

@mathieucarbou
Copy link
Member

@mathieucarbou mathieucarbou commented Oct 28, 2025

AsyncTCP was refactored such that the boolean passed to close is now unused and ignored.

Passing true was asking for an "immediate" close: this fature is ignored since 2019 (if I saw it right)

This PR replaces calls to close(true) to close()

Note: for ESP8266, I think this change also better aligns ESP8266 behavior with ESP32 behavior.

close() on esp32 is only calling tcp_recved while close(true) on esp8266 was, on top, calling tcp_close.

I propose we align the calls and drop the request for immediate close which is something anyway ignored in esp32

@mathieucarbou mathieucarbou self-assigned this Oct 28, 2025
@mathieucarbou mathieucarbou changed the title Cleanup client(bool calls) Cleanup close(bool) calls Oct 28, 2025
Copy link

@vortigont vortigont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, this is obsolete.

@mathieucarbou mathieucarbou merged commit 37933e3 into main Oct 29, 2025
31 checks passed
@mathieucarbou mathieucarbou deleted the close branch October 29, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants