zephyr/samples/net/sockets
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
..
big_http_download samples: net: sockets: big_http_download: Fix build with TLS enabled 2024-06-24 12:42:16 -04:00
can
coap_client samples: doc: fix wrong relevant_apis references 2024-08-20 18:58:55 -04:00
coap_download samples: doc: fix wrong relevant_apis references 2024-08-20 18:58:55 -04:00
coap_server samples: doc: fix wrong relevant_apis references 2024-08-20 18:58:55 -04:00
dumb_http_server
dumb_http_server_mt samples: net: sockets: Add netif dependency where missing 2024-06-07 16:45:05 +03:00
echo
echo_async
echo_async_select
echo_client Samples: Enabled Network Shell with XGMAC ethernet. 2024-09-05 17:03:05 -04:00
echo_server Samples: Enabled Network Shell with XGMAC ethernet. 2024-09-05 17:03:05 -04:00
echo_service net: sockets: Remove async service support 2024-07-10 11:36:59 +02:00
http_client samples: net: http_client: Fix busy-looping in case of errors 2024-09-16 13:51:21 +02:00
http_get samples: net: sockets: Add netif dependency where missing 2024-06-07 16:45:05 +03:00
http_server samples: net: http_server: Add information about overlays 2024-09-13 11:34:40 -05:00
net_mgmt samples: net: sockets: net_mgmt: Increase main thread priority 2024-06-25 10:25:37 -04:00
packet misc: move lorem ipsum text to zephyr/misc/lorem_ipsum.h 2024-08-02 03:31:06 -04:00
sntp_client
socketpair
tcp
txtime samples: net: txtime: Do not run qemu_x86 with twister 2024-06-29 05:50:04 -04:00
websocket_client misc: move lorem ipsum text to zephyr/misc/lorem_ipsum.h 2024-08-02 03:31:06 -04:00