-
Notifications
You must be signed in to change notification settings - Fork 184
[asio]: Bump v1.32.0~1 #993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
david-cermak
merged 3 commits into
espressif:master
from
david-cermak:bump/asio_1.32.0_1
Feb 12, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # This is the project CMakeLists.txt file for the test subproject | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
|
|
||
| if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "6.0") | ||
| set(test_component_dir $ENV{IDF_PATH}/tools/test_apps/components) | ||
| else() | ||
| set(test_component_dir $ENV{IDF_PATH}/tools/unit-test-app/components) | ||
| endif() | ||
|
|
||
| set(EXTRA_COMPONENT_DIRS ../.. | ||
| ${test_component_dir}) | ||
|
|
||
| project(asio_ssl_unit_test) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| idf_component_register(SRCS "test_asio_ssl.cpp" | ||
| # REQUIRES test_utils | ||
| INCLUDE_DIRS ".") | ||
| # PRIV_REQUIRES unity asio) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| dependencies: | ||
| idf: ">=5.1" | ||
| espressif/asio: | ||
| version: "^1.14.1" | ||
| override_path: "../../../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD | ||
| * | ||
| * SPDX-License-Identifier: Unlicense OR CC0-1.0 | ||
| */ | ||
|
|
||
| #include "unity.h" | ||
| extern "C" // workaround for unity headers (possibly) without C++ guards | ||
| { | ||
| #include "unity_fixture.h" | ||
| } | ||
| #include "test_utils.h" | ||
| #include "memory_checks.h" | ||
| #include "esp_netif.h" | ||
| #include "esp_event.h" | ||
|
|
||
| #include "asio.hpp" | ||
| #include "asio/ssl.hpp" | ||
|
|
||
| static void create_stream_and_attempt_handshake() | ||
| { | ||
| asio::io_context io; | ||
| asio::ssl::context ctx(asio::ssl::context::tlsv12_client); | ||
| asio::ssl::stream<asio::ip::tcp::socket> stream(io, ctx); | ||
| stream.set_verify_mode(asio::ssl::verify_none); | ||
|
|
||
| asio::error_code ec; | ||
| stream.handshake(asio::ssl::stream_base::client, ec); | ||
| } | ||
|
|
||
|
|
||
| TEST_GROUP(asio_ssl); | ||
|
|
||
| TEST_SETUP(asio_ssl) | ||
| { | ||
| // call once to allocate all one time inits | ||
| create_stream_and_attempt_handshake(); | ||
| test_utils_record_free_mem(); | ||
| } | ||
|
|
||
| TEST_TEAR_DOWN(asio_ssl) | ||
| { | ||
| // account for some timer-based lwip allocations | ||
| test_utils_finish_and_evaluate_leaks(128, 256); | ||
| } | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| TEST(asio_ssl, ssl_stream_lifecycle_no_leak) | ||
| { | ||
| test_case_uses_tcpip(); | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| create_stream_and_attempt_handshake(); | ||
| TEST_ASSERT_TRUE(true); | ||
| } | ||
|
|
||
| TEST_GROUP_RUNNER(asio_ssl) | ||
| { | ||
| RUN_TEST_CASE(asio_ssl, ssl_stream_lifecycle_no_leak) | ||
| } | ||
|
|
||
| extern "C" void app_main(void) | ||
| { | ||
| esp_netif_init(); | ||
| esp_event_loop_create_default(); | ||
| UNITY_MAIN(asio_ssl); | ||
| } | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| from pytest_embedded import Dut | ||
|
|
||
|
|
||
| def test_asio_ssl_unit(dut: Dut) -> None: | ||
| dut.expect_unity_test_output() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| CONFIG_COMPILER_CXX_EXCEPTIONS=y | ||
| CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=n | ||
| CONFIG_UNITY_ENABLE_FIXTURE=y | ||
| CONFIG_ASIO_SSL_SUPPORT=y |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.