zephyr/samples/net
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
..
capture
cellular_modem drivers: modem: cellular: hl7800 fix enter cmux 2024-08-14 15:51:04 -05:00
cloud everywhere: reindent .overlay files with tabs 2024-06-26 15:59:44 +02:00
common
dhcpv4_client doc: fix trivial typo 2024-09-05 09:49:18 +02:00
dns_resolve tools: net-tools: place net-tools inside tools 2024-09-05 12:34:09 -05:00
dsa net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
gptp drivers: ethernet: stm32 eth hal driver align PTP Config Status 2024-06-07 13:00:44 +02:00
ipv4_autoconf
lldp
lwm2m_client samples: net: lwm2m_client: Remove unneeded Security object instance 2024-09-10 11:43:18 +02:00
mdns_responder samples: net: mdns_responder: Bump CONFIG_NET_SOCKETS_POLL_MAX 2024-06-24 12:42:16 -04:00
mqtt_publisher doc: net: mqtt: Add info for mosquitto >= 2.0 2024-08-09 17:57:31 +01:00
mqtt_sn_publisher posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
openthread/coprocessor
promiscuous_mode
ptp samples: doc: fix wrong relevant_apis references 2024-08-20 18:58:55 -04:00
secure_mqtt_sensor_actuator samples: net: add secure MQTT sensor/actuator device sample 2024-05-23 07:51:04 -04:00
sockets samples: net: http_client: Fix busy-looping in case of errors 2024-09-16 13:51:21 +02:00
stats samples: net: stats: Update project configuration 2024-06-24 12:42:16 -04:00
syslog_net doc: use proper pygment for .conf code-blocks 2024-06-20 14:07:32 -04:00
telnet samples: net: telnet: Bump IPv6 mcast address count 2024-06-24 12:42:16 -04:00
tftp_client samples: net: tftp_client: Bump main thread stack size 2024-06-24 12:42:16 -04:00
virtual
vlan samples: net: vlan: Add IPv6 prefix config to each vlan-iface 2024-09-10 11:43:32 +02:00
wifi samples: net: wifi: add missing config for rd_rw612_bga board 2024-09-10 11:44:03 +02:00
wpan_serial lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
zperf samples: net: zperf: Start DHCPv4 when needed 2024-07-28 07:30:12 +03:00
net.rst