zephyr/subsys
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
..
bluetooth Bluetooth: Host: Fix GCC 7 error: non-constant expr in initializer 2022-03-18 10:21:49 +01:00
canbus kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
console console: Kconfig: Remove EXPERIMENTAL marker 2021-10-22 09:46:22 -04:00
cpp kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
debug lib: os: assert: Avoid including printk.h in __assert.h 2022-03-16 10:27:20 +01:00
demand_paging demand_paging: eviction/nru: fix incorrect dirty bit return val 2021-09-20 19:43:02 -04:00
dfu kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
disk
emul i2c: emul: Add get_config function 2021-11-02 16:46:33 +01:00
fb samples: use chosen property to get default display controller 2021-12-10 12:47:30 +01:00
fs kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
ipc ipc_service: Start the wq only once 2022-03-07 10:52:51 +01:00
jwt jwt: mbedTLS requires csprng 2021-10-07 14:02:40 -05:00
logging logging: backend_uart: configurable buffer size 2022-03-14 16:44:17 -05:00
lorawan lorawan: make unconfirmed message type explicit 2022-03-15 10:37:36 +01:00
mgmt subsys/mgmt/hawkbit: update http response handling 2022-03-16 10:25:38 +01:00
modbus kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
net net: http_client: Fix http_client_req() return value 2022-03-18 11:14:24 +01:00
pm pm: policy: allow to get notifief when maximum latency changes 2022-03-16 15:26:47 +01:00
portability portability: cmsis: use correct type for atomics 2021-11-15 09:59:01 -05:00
random random: rand32_xoshiro128: obtain entropy device using DEVICE_DT_GET 2022-03-11 15:27:05 -08:00
settings kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
shell shell: Add MQTT backend 2022-03-15 10:01:12 +01:00
stats stats: fixed implicit integer sign extension in stats_get_off() 2021-10-28 15:15:56 -04:00
storage kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
task_wdt task_wdt: fix overflow in current_ticks making wdt get stuck 2021-11-22 20:22:11 -05:00
testsuite testsuite: ztress: Delay start of the test 2022-03-15 13:19:28 -04:00
timing
tracing kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
usb kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
CMakeLists.txt usb: remove Kconfig option CONFIG_USB 2021-08-03 19:00:12 -04:00
Kconfig