zephyr/samples
Robert Lubos 937d4b6f67 samples: net: http_client: Fix busy-looping in case of errors
The http_client sample ignored connect() errors and attempted to run
HTTP query even if the connection failed.

Additionally, in case the query failed, the sample called `exit(1)`
directly, causing busy-looping in the sample. This prevented the logger
output from being printed.

Both of those issues made the sample behavior very confusing when it
encountered connection problems. The sample did not print any output at
all (due to busy looping) or printed several connect failures (due to
ignoring connect() results). This commit fixes those problems.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-09-16 13:51:21 +02:00
..
application_development samples: application_development: use zephyr:code-sample directive 2024-08-27 15:13:43 -04:00
arch samples: arch: fix toctree hierarchy 2024-09-13 13:38:19 -05:00
basic samples: button: add a note about the input subsystem and samples 2024-07-30 18:29:50 +01:00
bluetooth doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
boards doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
cpp samples: cpp: use zephyr:code-sample directive 2024-08-27 15:13:43 -04:00
drivers doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
fuel_gauge doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
hello_world samples: hello_world: use zephyr:code-sample directive 2024-09-16 10:05:18 +02:00
kernel samples: add bootargs sample 2024-09-05 12:30:39 -05:00
modules doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
net samples: net: http_client: Fix busy-looping in case of errors 2024-09-16 13:51:21 +02:00
philosophers doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
posix samples: posix: gettimeofday: add sntp resync option 2024-09-12 14:48:07 +02:00
sensor style: samples: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
shields style: samples: comply with MISRA C:2012 Rule 15.6 2024-08-20 10:33:51 +02:00
subsys samples: hello_world: use zephyr:code-sample directive 2024-09-16 10:05:18 +02:00
synchronization samples/synchronization: fix thread b pinning 2024-07-30 18:30:30 +01:00
sysbuild doc: sphinx-lint: fix bad usage of "default role" 2024-09-13 11:42:51 -05:00
tfm_integration samples: tfm_integration: use zephyr:code-sample directive 2024-09-13 11:33:54 -05:00
userspace samples: shared_mem: support shared_mem for frdm_mcxn236 board 2024-08-15 10:15:12 +01:00
classic.rst
index.rst samples: move lz4 into modules 2024-08-12 19:24:15 -04:00
sample_definition_and_criteria.rst doc: overhaul sample criteria and expectations 2024-09-12 10:03:30 +02:00