cosmopolitan/tool/net
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
..
demo Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
.init.lua Add SSL to redbean 2021-06-24 13:20:50 -07:00
counters.inc Make improvements to redbean 2021-07-08 15:56:23 -07:00
dig.c Make minor revisions to previous change 2021-06-30 10:45:27 -07:00
echoserver.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
favicon.ico Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
help.txt Make improvements to redbean 2021-07-10 15:19:37 -07:00
lsqlite3.c Tune SQLite build for redbean (#97) 2021-06-10 08:00:08 -07:00
net.mk Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
redbean.c Make improvements to redbean 2021-07-10 15:19:37 -07:00
redbean.png Make improvements 2020-09-14 00:02:34 -07:00