-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #717 from david-cermak/feat/asio_sync_upstream
[asio]: Drop esp-asio patches in favor of sock-utils
- Loading branch information
Showing
15 changed files
with
92 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "components/asio/asio"] | ||
path = components/asio/asio | ||
url = https://github.com/espressif/asio | ||
url = https://github.com/chriskohlhoff/asio | ||
[submodule "components/mosquitto/mosquitto"] | ||
path = components/mosquitto/mosquitto | ||
url = https://github.com/eclipse/mosquitto |
This file contains 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
commitizen: | ||
bump_message: 'bump(asio): $current_version -> $new_version' | ||
pre_bump_hooks: python ../../ci/changelog.py asio | ||
tag_format: asio-v$version | ||
version: 1.28.0~0 | ||
version: 1.32.0 | ||
version_files: | ||
- idf_component.yml |
This file contains 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 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 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
Submodule asio
updated
1562 files
This file contains 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 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 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,11 @@ | ||
// | ||
// SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// | ||
#pragma once | ||
|
||
#include "sys/socket.h" | ||
#include "socketpair.h" | ||
|
||
#include_next "asio/detail/config.hpp" |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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,36 @@ | ||
// | ||
// SPDX-FileCopyrightText: 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com) | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// | ||
// SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD | ||
// | ||
#include "asio/detail/posix_event.hpp" | ||
#include "asio/detail/throw_error.hpp" | ||
#include "asio/error.hpp" | ||
#include "asio/detail/push_options.hpp" | ||
#include <unistd.h> | ||
#include <climits> | ||
|
||
namespace asio::detail { | ||
// This replaces asio's posix_event constructor | ||
// since the default POSIX version uses pthread_condattr_t operations (init, setclock, destroy), | ||
// which are not available on all IDF versions (some are defined in compilers' headers, others in | ||
// pthread library, but they typically return `ENOSYS` which causes trouble in the event wrapper) | ||
// IMPORTANT: Check implementation of posix_event() when upgrading upstream asio in order not to | ||
// miss any initialization step. | ||
posix_event::posix_event() | ||
: state_(0) | ||
{ | ||
int error = ::pthread_cond_init(&cond_, nullptr); | ||
asio::error_code ec(error, asio::error::get_system_category()); | ||
asio::detail::throw_error(ec, "event"); | ||
} | ||
} // namespace asio::detail | ||
|
||
extern "C" int pause (void) | ||
{ | ||
while (true) { | ||
::sleep(UINT_MAX); | ||
} | ||
} |