nuttx-apps/include
Gregory Nutt d3c36663d0 netutils/webserver: Contributed by "Anonymous" via attachment to Bitbucket issue #135: "webserver broken when scripting support enabled - support for chunked encoding fixes it"
The webserver/httpd app is currently broken when script support is enabled (CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE). The root cause has been tracked down to the "Content-length" not being available ahead of time in this case (length of -1 passed to send_headers() ). On the other hand, the server closing the socket does not result in FIN being sent to the browser either (FIN not supported by NuttX yet).

Simple solution: Add support for HTTP Chunked Encoding to webserver/httpd (attached patch).

The attached patch is simple. It adds a configuration option to enable chunked encoding. When enabled, the implementation will auto-detect the cases where content length is not available ahead of time, and will automatically engage chunked encoding transfers.

Without this patch, the browser/client hangs forever, as it is expecting more data. With this patch, the browser displays the content.
2018-11-23 10:13:34 -06:00
..
builtin Move apps/include/builtin.h to apps/include/builtin/builtin.h 2016-07-01 07:08:03 -06:00
canutils apps/examples/obd2: Add OBD2 example application 2017-10-28 13:38:47 -06:00
fsutils apps/fsutils/mksmartfs: Add a check to see if the SmartFS is already formatted. apps/nshlib: Add a force flag (-f) to mksmartfs. SmartFS will be formatted only if (1) the FLASH does not already hold a SmartFS, or (2) the force flag is set 2018-08-23 07:14:30 -06:00
gpsutils apps/gpsutils/minmea: Re-released under the NuttX BSD license with permission from the author 2016-02-22 08:00:24 -06:00
graphics Updates from coding style review of PR 160 2018-11-09 10:21:42 -06:00
interpreters Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:40:03 -06:00
modbus Remove trailing spaces at the end of lines. 2018-08-13 07:47:26 -06:00
netutils netutils/webserver: Contributed by "Anonymous" via attachment to Bitbucket issue #135: "webserver broken when scripting support enabled - support for chunked encoding fixes it" 2018-11-23 10:13:34 -06:00
nshlib netutils/telnetd and users of telnetd: Add support for IPv6. 2017-06-27 09:14:13 -06:00
platform Remove some inappropriate conditional compilation 2017-05-13 16:56:56 -06:00
system apps/system/nxrecorder: Add nxrecorder application 2018-08-27 08:20:11 -06:00
testing Merged in raiden00/apps (pull request #142) 2018-06-23 14:58:25 +00:00
wireless Squashed commit of the following: 2017-09-15 08:16:47 -06:00
.gitignore Remove canutils/libuavcan and examples/uavcan. libuavcan has not built for a year or so. The basic problem is that as NuttX advances, the old frozen versino of libuavcan has become absolute because it violates the portable POSIX OS interface. No one is maintaining the port so there is no alternative but to remove it. 2018-03-23 07:29:06 -06:00