Go to file
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
.github Revert "ci: workflows: remove unsupported Python version from test matrices" 2025-07-04 15:50:06 -05:00
arch kconfig: fix typo in (arch, boards, kernel, modules, samples, share) 2025-07-01 10:58:54 -10:00
boards boards: nordic: Enable CONFIG_HW_STACK_PROTECTION conditionally 2025-07-04 14:20:43 -10:00
cmake Revert "doc: ci: Zephyr now requires Python 3.12 or higher" 2025-07-04 15:50:06 -05:00
doc doc: release-notes-4.2: add mentions to the new UVC class 2025-07-05 11:56:10 -05:00
drivers sensor: lis2dh: cache CTRL1 on PM_DEVICE_ACTION_TURN_ON 2025-07-05 11:56:00 -05:00
dts dts: bindings: update binding-types.txt with recently added types 2025-07-04 13:09:52 -05:00
include/zephyr poxi: aio: include zephyr/toolchain.h for ZRESTRICT 2025-07-04 16:44:02 -10:00
kernel wifi: nrf70: Fix system work queue stack size override 2025-07-01 19:04:00 -05:00
lib lib: os: zvfs: select: Fix warning about bitshifting signed value 2025-07-04 13:16:32 -05:00
misc
modules modules: hal_nordic: nrf_802154: Increase default number of RX buffers 2025-07-04 13:10:03 -05:00
samples net: socket: mgmt: Fix function signature 2025-07-04 14:21:23 -10:00
scripts scripts: west_commands: runners: Update GDB args 2025-07-04 14:20:30 -10:00
share kconfig: fix typo in (arch, boards, kernel, modules, samples, share) 2025-07-01 10:58:54 -10:00
snippets snippets: nordic-flpr: Fix nRF54LM20A memory layout 2025-07-03 11:55:42 -05:00
soc soc: nordic: Remove NFCT_PINS_AS_GPIOS Konfig 2025-07-04 13:09:34 -05:00
submanifests tfm-tests: Bump tests to tfm-2.2.0 2025-06-27 18:52:39 -05:00
subsys net: lib: http_client: Fix end of message detection 2025-07-07 10:04:17 -05:00
tests tests: drivers: syscon: remove dev pointer check 2025-07-04 16:42:53 -10:00
.checkpatch.conf
.clang-format include: zephyr: sys: simplify MIN_HEAP_FOREACH macro 2025-06-26 11:58:05 -04:00
.codechecker.yml
.codecov.yml
.editorconfig
.gitattributes
.gitignore scripts: ci: add vermin (min python version check) 2025-06-06 08:45:13 +02:00
.gitlint
.mailmap
.ruff-excludes.toml scripts: west: remove excludes for west_commands/spdx.py 2025-06-10 13:28:38 +02:00
.ruff.toml Revert "scripts: Bump Python target version for ruff" 2025-07-04 15:50:06 -05:00
.yamllint
CMakeLists.txt cmake: add option to force raw instruction mnemonics 2025-06-27 10:01:11 -05:00
CODE_OF_CONDUCT.md
CODEOWNERS
CONTRIBUTING.rst
Kconfig
Kconfig.constants
Kconfig.zephyr kconfig: fix typo in (arch, boards, kernel, modules, samples, share) 2025-07-01 10:58:54 -10:00
LICENSE
MAINTAINERS.yml drivers: virtio: move virtio headers to zephyr/drivers 2025-07-04 15:49:54 -05:00
README.rst
SDK_VERSION SDK_VERSION: Use Zephyr SDK 0.17.2 2025-06-25 12:15:09 +02:00
VERSION release: fix PATCHLEVEL revision for RC1 2025-07-02 13:42:14 -10:00
version.h.in
west.yml west.yml: MCUboot synchronization from upstream 2025-07-04 13:06:59 -05:00
zephyr-env.cmd
zephyr-env.sh zephyr-env.sh: Use $XDG_CONFIG_HOME/zephry/zephyrrc if present 2025-06-25 15:33:06 -10:00

.. raw:: html

   <a href="https://www.zephyrproject.org">
     <p align="center">
       <picture>
         <source media="(prefers-color-scheme: dark)" srcset="doc/_static/images/logo-readme-dark.svg">
         <source media="(prefers-color-scheme: light)" srcset="doc/_static/images/logo-readme-light.svg">
         <img src="doc/_static/images/logo-readme-light.svg">
       </picture>
     </p>
   </a>

   <a href="https://bestpractices.coreinfrastructure.org/projects/74"><img src="https://bestpractices.coreinfrastructure.org/projects/74/badge"></a>
   <a href="https://scorecard.dev/viewer/?uri=github.com/zephyrproject-rtos/zephyr"><img src="https://api.securityscorecards.dev/projects/github.com/zephyrproject-rtos/zephyr/badge"></a>
   <a href="https://github.com/zephyrproject-rtos/zephyr/actions/workflows/twister.yaml?query=branch%3Amain"><img src="https://github.com/zephyrproject-rtos/zephyr/actions/workflows/twister.yaml/badge.svg?event=push"></a>


The Zephyr Project is a scalable real-time operating system (RTOS) supporting
multiple hardware architectures, optimized for resource constrained devices,
and built with security in mind.

The Zephyr OS is based on a small-footprint kernel designed for use on
resource-constrained systems: from simple embedded environmental sensors and
LED wearables to sophisticated smart watches and IoT wireless gateways.

The Zephyr kernel supports multiple architectures, including ARM (Cortex-A,
Cortex-R, Cortex-M), Intel x86, ARC, Tensilica Xtensa, and RISC-V,
SPARC, MIPS, and a large number of `supported boards`_.

.. below included in doc/introduction/introduction.rst


Getting Started
***************

Welcome to Zephyr! See the `Introduction to Zephyr`_ for a high-level overview,
and the documentation's `Getting Started Guide`_ to start developing.

.. start_include_here

Community Support
*****************

Community support is provided via mailing lists and Discord; see the Resources
below for details.

.. _project-resources:

Resources
*********

Here's a quick summary of resources to help you find your way around:

Getting Started
---------------

  | 📖 `Zephyr Documentation`_
  | 🚀 `Getting Started Guide`_
  | 🙋🏽 `Tips when asking for help`_
  | 💻 `Code samples`_

Code and Development
--------------------

  | 🌐 `Source Code Repository`_
  | 📦 `Releases`_
  | 🤝 `Contribution Guide`_

Community and Support
---------------------

  | 💬 `Discord Server`_ for real-time community discussions
  | 📧 `User mailing list (users@lists.zephyrproject.org)`_
  | 📧 `Developer mailing list (devel@lists.zephyrproject.org)`_
  | 📬 `Other project mailing lists`_
  | 📚 `Project Wiki`_

Issue Tracking and Security
---------------------------

  | 🐛 `GitHub Issues`_
  | 🔒 `Security documentation`_
  | 🛡️ `Security Advisories Repository`_
  | ⚠️ Report security vulnerabilities at vulnerabilities@zephyrproject.org

Additional Resources
--------------------
  | 🌐 `Zephyr Project Website`_
  | 📺 `Zephyr Tech Talks`_

.. _Zephyr Project Website: https://www.zephyrproject.org
.. _Discord Server: https://chat.zephyrproject.org
.. _supported boards: https://docs.zephyrproject.org/latest/boards/index.html
.. _Zephyr Documentation: https://docs.zephyrproject.org
.. _Introduction to Zephyr: https://docs.zephyrproject.org/latest/introduction/index.html
.. _Getting Started Guide: https://docs.zephyrproject.org/latest/develop/getting_started/index.html
.. _Contribution Guide: https://docs.zephyrproject.org/latest/contribute/index.html
.. _Source Code Repository: https://github.com/zephyrproject-rtos/zephyr
.. _GitHub Issues: https://github.com/zephyrproject-rtos/zephyr/issues
.. _Releases: https://github.com/zephyrproject-rtos/zephyr/releases
.. _Project Wiki: https://github.com/zephyrproject-rtos/zephyr/wiki
.. _User mailing list (users@lists.zephyrproject.org): https://lists.zephyrproject.org/g/users
.. _Developer mailing list (devel@lists.zephyrproject.org): https://lists.zephyrproject.org/g/devel
.. _Other project mailing lists: https://lists.zephyrproject.org/g/main/subgroups
.. _Code samples: https://docs.zephyrproject.org/latest/samples/index.html
.. _Security documentation: https://docs.zephyrproject.org/latest/security/index.html
.. _Security Advisories Repository: https://github.com/zephyrproject-rtos/zephyr/security
.. _Tips when asking for help: https://docs.zephyrproject.org/latest/develop/getting_started/index.html#asking-for-help
.. _Zephyr Tech Talks: https://www.zephyrproject.org/tech-talks