zephyr/subsys/net
Robert Lubos 8f983ccda5 net: lib: http_client: Fix end of message detection
HTTP 1.1 server has two ways of indicating the message body length -
either by providing the Content Length header, or by closing the
connection when the entire body has been transmitted.

The second method didn't work with Zephyr's HTTP client implementation,
as EOF on a socket was treated as an error condition. Therefore, if no
Content Length was provided by the server, such transfers would always
end up with ECONNRESET error.

In order to fix this, we need to notify the parser about the EOF on a
socket when connection is closed. It is the parser role to determine
whether the EOF was expected in current state (by marking end of message
flag) or not (by setting an error).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-07 10:04:17 -05:00
..
conn_mgr net: mgmt: Convert the mgmt API to use 64-bit masks 2025-06-18 10:54:44 +02:00
ip net: pkt: Add explicit casts to uint32_t when bitshifting uint8_t val 2025-07-04 13:16:32 -05:00
l2 net: l2: ieee802154: Prevent NULL pointer access 2025-07-04 13:16:32 -05:00
lib net: lib: http_client: Fix end of message detection 2025-07-07 10:04:17 -05:00
pkt_filter net: pkt_filter: Add VLAN support to filtering 2025-04-16 08:07:34 +02:00
CMakeLists.txt net: silence no sources cmake warning 2024-10-18 14:14:56 +02:00
hostname.c
Kconfig
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net net: Give name to logging choice 2024-09-30 12:10:42 +01:00