cosmopolitan/tool/build
Justine Tunney 8c4cce043c Make improvements to redbean
The following Lua APIs have been added:

  - IsDaemon() → bool
  - ProgramPidPath(str)

The following Lua hooks have been added:

  - OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
  - OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
  - OnProcessDestroy(pid:int)
  - OnServerStart()
  - OnServerStop()
  - OnWorkerStart()
  - OnWorkerStop()

redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.

This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.

This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 15:19:37 -07:00
..
emubin Improve dead code elimination 2021-02-08 04:04:42 -08:00
emucrt Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lib Make improvements to redbean 2021-07-10 15:19:37 -07:00
ar.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
blinkenlights.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
build.mk Improve build system 2021-02-19 23:03:34 -08:00
calculator.c Set errno when out of range in strtoimax (#111) 2021-03-07 14:38:56 -08:00
calculator.ctest Set errno when out of range in strtoimax (#111) 2021-03-07 14:38:56 -08:00
calculator.inc Add SSL to redbean 2021-06-24 13:20:50 -07:00
compile.c Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
deltaify.c Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
dis.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
dropcache.c Change license 2020-12-27 17:18:44 -08:00
helpop.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lz4toasm.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
mkdeps.c Improve backwards compatibility with GNU Make 2021-05-02 07:48:59 -07:00
package.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
pstrace.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
refactor.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
rle.c Change license 2020-12-27 17:18:44 -08:00
rollup.c Change license 2020-12-27 17:18:44 -08:00
runit.c Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
runit.h Initial import 2020-06-15 07:18:57 -07:00
runitd.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
summy.c Change license 2020-12-27 17:18:44 -08:00
tinyemu.c Fix our remarkable 184kb x86_64 emulator 2021-01-27 20:02:23 -08:00
x86combos.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
zipobj.c Mold the redbean binary to minimize page faults 2021-05-03 12:14:13 -07:00