Commit Graph

3915 Commits

Author SHA1 Message Date
Gregory Nutt
943abb19d2 apps/system/critmon: Add a daemon on monitor critical sections. 2018-11-24 13:35:53 -06:00
Gregory Nutt
e88a529010 From patch attached to nuttx/ Bitbucket Issue #136 from Vlado Vidovic:
The patch provided in issue 135, which adds support for HTTP Chunked Encoding, covers all paths in the webserver app except CGI callbacks. As a result, if a page being served happens to use CGI, it could generate stream content that does not comply with HTTP Chunked Encoding.

The patch attached amends the webserver app's CGI callbacks to use the HTTP Chunked Encoding sender function instead of using send() directly.
2018-11-23 17:29:07 -06:00
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
Gregory Nutt
b52aed8878 ChangeLog.txt: Change release date to Nov 11. 2018-11-14 14:44:36 -06:00
Gregory Nutt
5de90d8fd8 ChangeLog: Update ChangeLog in preparation for 7.27 release. 2018-11-13 17:22:01 -06:00
Gregory Nutt
6a87ee878b graphics/NxWidgets/nxwidgets/src/clabelgrid.cxx: Change old-style dbg() to current ginfo(). 2018-11-09 12:34:46 -06:00
Xiang Xiao
3c1c533cb5 apps/system/ping6: Remove NET_USRSOCK from Kconfig dependence list 2018-11-09 11:54:24 -06:00
Gregory Nutt
7488a65e17 Updates from coding style review of PR 160 2018-11-09 10:21:42 -06:00
Petteri Aimonen
66d4ed9912 Merged in paimonen/apps/pullreq_nxwidgets (pull request #160)
NxWidgets improvements

* NxWidgets: fix garbage returned when CCycleButton::getValue() is called after removeAllOptions().

    It's a bit questionable whether returning 0 here is reasonable or
    if it would be better to assert(). But either is better than reading
    into random memory and returning a garbage value.

* NXWidgets CScrollingPanel: Don't draw outside the widget area.

    The port->move() function doesn't support clipping the
    copied area to the client area, so we have to manually
    calculate the part that can be moved without going outside
    the widget.

* CNxString: Add string + operator and ::format() function

* CNumericEdit: Add option to include unit name after the value

* NxWidgets: CNxWidget: Make useWidgetStyle() public

    Makes it easier to update styles when multiple controls are nested.

* NxWidgets: Add CLabelGrid control for displaying text in grid format.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-11-09 16:00:50 +00:00
Gregory Nutt
f5e399670f apps/examples/webserver/Kconfig: The webserver "app" allows for DHCP client to be enabled. However, the Kconfig infrastructure does not contain EXAMPLES_WEBSERVER_DHCPC config.
Based on patch from "Anonymous" attached to Bitbucket Issue #130
2018-11-08 18:48:28 -06:00
ligd
f954b15cac pps/system/ping and pings and apps/netutils/ping: Extract icmp ping and icmpv6 ping6 logic from system/ to C-callable library in netutils/. 2018-11-08 09:32:05 -06:00
Xiang Xiao
98a429596f system/ping/ping.c and system/ping6/ping6.c: Set optind to zero in the error case
system/ping/ping.c and system/ping6/ping6.c:  Move all ping preparation work into icmp_ping
system/ping/ping.c and system/ping6/ping6.c:  Support -W <timeout> and -s <size> option
system/ping/ping.c and system/ping6/ping6.c:  Decouple the output from ping logic
2018-11-08 09:05:54 -06:00
wangyanjiong
bd86d9c8b8 apps/examples/gpio: Align with gpio driver update 2018-11-08 07:50:42 -06:00
anchao
3432acf7c4 apps/: Rename BINFMT_EXEPATH to LIB_ENVPATH. 2018-11-08 07:31:52 -06:00
Gregory Nutt
aeabc12536 apps/examples/mld: Fix incorrect format of IPv6 Mulitcast address. This resolves the UPD sendto() problem of commit 09691dd48f that was being blamed on the UDP stack. Nope.. cockpit error. 2018-11-07 18:19:09 -06:00
Gregory Nutt
48ebc1377a apps/netutils/pppd/: More changes for consistency in coding style. 2018-11-07 13:43:51 -06:00
Gregory Nutt
bb21a11a60 apps/netutils/pppd: Fix some naming convention violations. 2018-11-07 13:37:37 -06:00
Xiang Xiao
cddfda99f0 apps/netutils/pppd: Refine and fix pppd code.
Reviewers note:  Reviewing the changes I also see that these file did not follow the NuttX codings standard.  I ran all files through nuttx/tools/indent.sh, manually reviewed all files for coding style issues.  I also changed occurrences of non-standard types u8_t, u16_t, and u32_t to the standard uint8_t, uint16_t, and uint32_t.
2018-11-07 12:43:42 -06:00
Xiang Xiao
c1f0653c85 apps/netutils/chat and apps/examples/chat: 'constify' chat variables and parameters 2018-11-07 11:55:09 -06:00
anchao
42ce384259 apps/system/vi/vi.c: Do not print error if the file does not exist. 2018-11-07 11:43:04 -06:00
Xiang Xiao
4804d74c61 apps/system/system.c: Fix warning when passing argument 6 of 'task_spawn' from incompatible pointer type [-Wincompatible-pointer-types] 2018-11-07 11:37:00 -06:00
From: dongjiuzhu
2d4df65040 apps/system/i2c/i2c_get.c: Fix i2c_msg freq initialization problem. Typo prevent I2C frequency initialization in a struct i2c_msg. 2018-11-07 11:35:13 -06:00
zhuyanlin
3de5798ff4 apps/system/hexed/src/bfile.c: Fix memory leak 2018-11-07 11:32:07 -06:00
Xiang Xiao
2db0252e61 nshlib/nsh_envcmds.c: Fix warning g_oldpwd defined but not used [-Wunused-const-variable] 2018-11-07 11:28:28 -06:00
Xiang Xiao
6aee984c91 nshlib/nsh_netinit.c: Move call netlib_icmpv6_autoconfiguration() into nsh_net_bringup() like DHCP 2018-11-07 11:25:39 -06:00
Xiang Xiao
173c985395 nshlib/nsh_fsutils.c: nsh_catfile() should not append '\n' if the last char in file is already '\n' 2018-11-07 11:23:07 -06:00
ligd
19dc7cd3b3 nshlib/nsh_console.c: Add fflush to nsh_consolewrite(). This resolves this problem:
> cat /dev/ttyCP &
  > echo ls >/dev/ttyCP

Can't get the 'ls' result immediately, because 'cat' cmd uses nsh_consolewrite() and that uses fwrite with no fflush. We can get the 'ls' result after type '\n', because nsh will fflush output when get '\n'.
2018-11-07 11:18:03 -06:00
Gregory Nutt
09691dd48f apps/examples/mld: Add logic to set up the routing table before attempting to send the multicast packet. Still some problem, probably in NuttX stack: Still reports that the the multicast address is unreachable. 2018-11-07 10:43:03 -06:00
Gregory Nutt
dc02239347 apps/examples/mld/mld_main.c: Improve test by periodically dumping the content of /proc/net/mld (if available). 2018-11-06 10:41:01 -06:00
Daniel P. Carvalho
bc4735ce2a apps/examples/ina226: Added INA226 example 2018-11-05 16:45:00 -06:00
Anatol Ivanov
3512c3aa5e apps/Makefile: Fix Windows native build patch extension. 2018-11-05 16:09:03 -06:00
Gregory Nutt
74ac55308c examples/mld/mld_main.c: ifdef out some bogus logic in the test. 2018-11-05 09:39:55 -06:00
Gregory Nutt
44e2505038 apps/examples/mld: Add a test of MLD. Not much of a test, but it does provide a mechansim for some low-level bring-up operations. 2018-11-04 18:21:32 -06:00
Gregory Nutt
7b56c9c336 apps/include/netutils/ipmsfilter.h: Eliminate error generated by bad pre-processor logic. 2018-11-02 08:32:18 -06:00
Alan Carvalho de Assis
47e647c56a examples/mlx90614/mlx90614_main.c: Include support to change device address on mlx90614 2018-11-02 07:07:36 -06:00
Anthony Merlino
1617e0dcf0 Merged in antmerlino/apps/i8sak-txpwr (pull request #159)
wireless/ieee802154/i8sak: Adds support for getting/setting transmit power.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-11-01 19:04:28 +00:00
Gregory Nutt
a26a7f9767 apps/netutils/netlib and apps/examples/igmp: Adapt to use the corrected, semi-standard version of struct ip_msfilter. 2018-10-29 06:51:56 -06:00
Alan Carvalho de Assis
3a4faf944a apps/examples/mlx90614: Add mlx90614 test example 2018-10-28 16:04:15 -06:00
Gregory Nutt
a579bab48a apps/system/progmem: Remove this utility. It makes illegal direct calls into the OS. 2018-10-19 11:44:41 -06:00
Gregory Nutt
e363b27b09 apps/netutils/codecs/base64.c: Cosmetic changes from review. Various coding style issues and removed all old commented out code. 2018-10-19 06:40:44 -06:00
Aleksandr Vyhovanec
9aa2f5c5a2 Merged in AVyhovanec/apps (pull request #158)
"dst" overflow protection when base64 string ends with "="

Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-19 12:29:12 +00:00
Anthony Merlino
0989023de7 Merged in antmerlino/apps/i8sak-event-fix (pull request #157)
i8sak: Properly shuts down event thread.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-06 20:12:26 +00:00
Gregory Nutt
b5e032e050 apps/nshlib/README.txt: Another trivial update. 2018-10-02 13:47:16 -06:00
Gregory Nutt
3a474c573c apps/nshlib/README.txt: Trivial correction in comparison to Bash behavior. 2018-10-02 12:15:07 -06:00
Gregory Nutt
cf6c6a9556 apps/nshlib: If CONFIG_NSH_VARS=y, the NSH 'set' command with not argument will list all of the local NSH variables. 2018-10-02 11:54:18 -06:00
Gregory Nutt
cb982ea8df apps/nshlib: Eliminate more new warnings found in build testing. 2018-10-02 11:16:15 -06:00
Gregory Nutt
2bc4d1e8e2 apps/nshlib/nsh_parse.c: Fix a warning (really a bug) detected in build testing. 2018-10-02 11:08:17 -06:00
Gregory Nutt
7f7b728231 apps/nshlib/nsh_parse.c: Correct an error in conditional compilation found in build testing. 2018-10-02 10:21:33 -06:00
Gregory Nutt
8b01ea4434 Update a README/Improve some C comments. 2018-10-02 06:53:16 -06:00
Gregory Nutt
65e0b791b7 apps/nshlib/nsh_envcmds.c: Once an NSH variable has been promoted to an environment variable, subsequent set operations should act on the environment variable rather than creating a new NSH variable that shadows the environment variable. 2018-10-01 16:22:04 -06:00