Skip to content

Commit

Permalink
Merge branch 'trunk' into fix-stop-close-socketconnector
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth authored Nov 29, 2024
2 parents 0a098d6 + 0fa067e commit 9459114
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub_sshnpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Get version
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
context: .
file: ${{ matrix.dockerfile }}
Expand Down
2 changes: 1 addition & 1 deletion packages/c/cmake/atsdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(NOT atsdk_FOUND)
FetchContent_Declare(
atsdk
GIT_REPOSITORY https://github.com/atsign-foundation/at_c.git
GIT_TAG 6650e33ab80e9d873ede6d0213fa2999054fce7b
GIT_TAG 9b9cb315a8af08a19e9679c9dad98572536f2ee4
)
FetchContent_MakeAvailable(atsdk)
install(TARGETS atclient atchops atlogger)
Expand Down
4 changes: 4 additions & 0 deletions packages/c/sshnpd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.5

- fix: uptake some fixes in monitor

## 0.2.4

- fix: Disabled clang-tidy missing-includes, as it malformed header includes
Expand Down
2 changes: 1 addition & 1 deletion packages/c/sshnpd/include/sshnpd/version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef SSHNPD_VERSION_H
#define SSHNPD_VERSION_H
#define SSHNPD_VERSION "0.2.4"
#define SSHNPD_VERSION "0.2.5"
#endif
6 changes: 5 additions & 1 deletion packages/c/sshnpd/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,16 @@ void main_loop() {
// Read the next monitor message
int ret = atclient_monitor_read(&monitor_ctx, &worker, &message, &monitor_hooks);
if (ret != 0) {
atlogger_log(LOGGER_TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "Possible bad state: monitor read failed\n");
atlogger_log(LOGGER_TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "Possible bad state: monitor read failed (ret: %d)\n",
ret);
}

atlogger_log(LOGGER_TAG, ATLOGGER_LOGGING_LEVEL_DEBUG, "Received message of type: %d\n", message.type);

switch (message.type) {
case ATCLIENT_MONITOR_MESSAGE_TYPE_EMPTY:
// We got a timeout, nothing to read, nothing to do
break;
case ATCLIENT_MONITOR_ERROR_READ:
if (!atclient_monitor_is_connected(&monitor_ctx)) {
atlogger_log(LOGGER_TAG, ATLOGGER_LOGGING_LEVEL_ERROR,
Expand Down
12 changes: 6 additions & 6 deletions packages/dart/sshnoports/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -811,26 +811,26 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: "713a8789d62f3233c46b4a90b174737b2c04cb6ae4500f2aa8b1be8f03f5e67f"
sha256: f2a018e2baa6fce7c8daa55b8bdf4b3d7d165f82caac269e4cbe5edd666c0e4c
url: "https://pub.dev"
source: hosted
version: "1.25.8"
version: "1.25.9"
test_api:
dependency: transitive
description:
name: test_api
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
url: "https://pub.dev"
source: hosted
version: "0.7.3"
version: "0.7.4"
test_core:
dependency: transitive
description:
name: test_core
sha256: "12391302411737c176b0b5d6491f466b0dd56d4763e347b6714efbaa74d7953d"
sha256: "60ff490bb383858015df7b7a0d883301a426edf9033989f55f091d91efb9dfaf"
url: "https://pub.dev"
source: hosted
version: "0.6.5"
version: "0.6.6"
timing:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/sshnoports/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependency_overrides:

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
test: ^1.25.9
mocktail: ^1.0.4
build_runner: ^2.4.13
build_version: ^2.1.1

0 comments on commit 9459114

Please sign in to comment.