zephyr/subsys
Michael Scott 8ebaf29927 net: http: dont timeout on HTTP requests w/o body
A TCP FIN message is passed on to user apps as a tcp_received_callback
with a NULL pkt parameter.  This means the connection is closing and
the app should do whatever cleanup it needs as there will be no further
callbacks for the current TCP connection.

Currently, if a HTTP client request doesn't receive a "body" which
the HTTP parser can use to trigger on_message_complete, then the request
will end up timing out and most apps will think an error has occurred.

Instead, let's handle the TCP FIN message and return the waiting
semaphore, leaving the app to deal with whatever has been set in the
current HTTP context response data (IE: http_status).

This fixes using HTTP client to send POST data to servers which
only respond with HTTP_OK status and no body.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
2017-08-15 22:21:15 +03:00
..
bluetooth Bluetooth: shell: gatt_read: Reset offset to 0 2017-08-15 21:16:40 +03:00
console subsys: console: Fix signed vs unsigned char issues. 2017-05-22 08:43:31 -05:00
cpp subsystem: cleanup misc and make cpp a subsystem 2017-07-06 09:13:46 -05:00
debug debug: openocd: build openocd symbols using obj- 2017-08-10 09:13:06 -05:00
disk license: add missing licenses and copyright 2017-06-08 10:41:56 -04:00
fs subsys: convert to using newly introduced integer sized types 2017-04-21 09:36:22 -05:00
logging kconfig: build code conditionally when possible 2017-08-14 20:32:26 -04:00
net net: http: dont timeout on HTTP requests w/o body 2017-08-15 22:21:15 +03:00
shell shell: Adjust arguments when executing a command of different module 2017-06-09 18:54:27 -04:00
usb Kconfig: make all syslog variables depend on SYS_LOG 2017-08-04 14:34:54 -05:00
Kconfig subsystem: cleanup misc and make cpp a subsystem 2017-07-06 09:13:46 -05:00
Makefile Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00