Skip to content

fix(iot-hub-device-update): refresh omnect_1.4.0.patch to fork tip - #681

Merged
JanZachmann merged 1 commit into
omnect:mainfrom
JanZachmann:jz-2026-08-06-adu-systemd-extend-start-timeout
Aug 6, 2026
Merged

fix(iot-hub-device-update): refresh omnect_1.4.0.patch to fork tip#681
JanZachmann merged 1 commit into
omnect:mainfrom
JanZachmann:jz-2026-08-06-adu-systemd-extend-start-timeout

Conversation

@JanZachmann

@JanZachmann JanZachmann commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Update omnect_1.4.0.patch to omnect/iot-hub-device-update#56 (bb060d21): sd_notify(EXTEND_TIMEOUT_USEC=…) from Connection_Maintenance() right after it schedules the next authentication attempt, plus a bounded grace on the first DoWork tick. The activating (start) deadline systemd uses to kill the unit now follows the SDK's retry cadence, so a first-boot with the hub unreachable does not crash-loop the agent anymore within the default 90s TimeoutStartSec.

Summary

Regenerate `omnect_1.4.0.patch` as `git diff 1.4.0..omnect/omnect_1.4.0` at bb060d21 so the patch matches every commit currently on the omnect fork branch.

Reason

The new hunks come from two places:

- omnect/iot-hub-device-update#56 (bb060d21): `sd_notify(EXTEND_TIMEOUT_USEC=…)` from `Connection_Maintenance()` right after it schedules the next authentication attempt, plus a bounded grace on the first `DoWork` tick. The `activating (start)` deadline systemd uses to kill the unit now follows the SDK's retry cadence, so a first-boot with the hub unreachable does not crash-loop the agent to `NRestarts=3` within the default 90s TimeoutStartSec.

- omnect/iot-hub-device-update#54 (e2315265, merged earlier): a `DIAGNOSTICS_DEVICENAMES_H` header-guard typo fix in `src/diagnostics_component/diagnostics_devicename/inc/diagnostics_devicename.h`, and the removal of `#define _XOPEN_SOURCE 700` in `src/utils/apiproto_utils/inc/aduc/apiproto.h`. Both had been on the fork branch for two weeks; the patch here had drifted away from the branch's actual state and picks them up on the same regenerate.

Signed-off-by: Jan Zachmann 50990105+JanZachmann@users.noreply.github.com
@JanZachmann
JanZachmann merged commit 57931f3 into omnect:main Aug 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants