nodemcu-firmware/lua_modules
Nathaniel Wesley Filardo dcc1ea2a49 A generic fifo and fifosock wrapper, under telnet and http server (#2650)
* lua_modules/fifo: a generic queue & socket wrapper

One occasionally wants a generic fifo, so here's a plausible
implementation that's reasonably flexible in its usage.

One possible consumer of this is a variant of TerryE's two-level fifo
trick currently in the telnetd example.  Factor that out to fifosock for
more general use.

* lua_examples/telnet: use factored out fifosock

* lua_modules/http: improve implementation

Switch to fifosock for in-order sending and waiting for everything to be
sent before closing.

Fix header callback by moving the invocation of the handler higher

* fifosock: optimistically cork and delay tx

If we just pushed a little bit of data into a fifosock that had idled,
wait a tick (1 ms) before transmitting.  Hopefully, this means that
we let the rest of the system push more data in before we send the first
packet.  But in a high-throughput situation, where we are streaming data
without idling the fifo, there won't be any additional delay and we'll
coalesce during operation as usual.

The fifosocktest mocks up enough of tmr for this to run, but assumes
an arbitrarily slow processor. ;)
2019-02-16 13:51:40 +01:00
..
bh1750 Re-organize documentation 2019-01-13 22:01:57 +01:00
bmp085 Remove lua modules with equivalent ones in app/modules. 2016-02-14 23:03:33 +01:00
dht_lib Remove lua modules with equivalent ones in app/modules. 2016-02-14 23:03:33 +01:00
ds18b20 Re-organize documentation 2019-01-13 22:01:57 +01:00
ds3231 Re-organize documentation 2019-01-13 22:01:57 +01:00
email Re-organize documentation 2019-01-13 22:01:57 +01:00
fifo A generic fifo and fifosock wrapper, under telnet and http server (#2650) 2019-02-16 13:51:40 +01:00
ftp Fix to telnet Lua example and ftpserver Lua module in consequence of PR #2603 (#2654) 2019-02-13 06:49:45 +01:00
hdc1000 Re-organize documentation 2019-01-13 22:01:57 +01:00
http A generic fifo and fifosock wrapper, under telnet and http server (#2650) 2019-02-16 13:51:40 +01:00
lm92 Re-organize documentation 2019-01-13 22:01:57 +01:00
mcp23008 Re-organize documentation 2019-01-13 22:01:57 +01:00
redis Re-organize documentation 2019-01-13 22:01:57 +01:00
si7021 remove si7021 from lua_modules tree 2017-04-27 23:22:08 +02:00
tsl2561 Remove lua modules with equivalent ones in app/modules. 2016-02-14 23:03:33 +01:00
yeelink Re-organize documentation 2019-01-13 22:01:57 +01:00