zephyr/subsys/net
Robert Lubos ffdc621f1b net: http_client: Fix http_client_req() return value
http_client_req() was supposed to return the number of bytes sent as a
HTTP request. The return value was not riht however due to some bugs in
helper functions:
* http_send_data() returned the current buffer position istead of the
  number of bytes actually sent. This could result in counting the same
  data into the total request size several times. A helper variable was
  added to track how many bytes were actually sent to the network.
* http_flush_data() forwarded the return value of sendall() helper
  function. That function however did not return number of bytes sent,
  but 0 or a negative error code.

Additionally, change the return type of sendall() function - according
to standard the ssize_t type is only capable of holding -1 negative
value, but the function could return the full range of negative errno
values. Use int instead.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-03-18 11:14:24 +01:00
..
ip net: tcp: Verify accept callback before use 2022-03-16 16:23:16 +01:00
l2 manifest: openthread upmerge up to commit 9f30e049 2022-03-17 16:37:03 -05:00
lib net: http_client: Fix http_client_req() return value 2022-03-18 11:14:24 +01:00
pkt_filter kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
buf.c net: buf: move user_data to flexible arr member 2021-11-24 16:04:50 +02:00
CMakeLists.txt net: introduce a network packet filter framework 2021-12-21 17:06:35 +01:00
hostname.c net: hostname: Update unique hostname on link address change 2021-01-13 17:50:32 +02:00
Kconfig net: introduce a network packet filter framework 2021-12-21 17:06:35 +01:00
Kconfig.hostname net: hostname: Update unique hostname on link address change 2021-01-13 17:50:32 +02:00
Kconfig.template.log_config.default.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00