4 ms·
Redbean 0.4
- bch 6y agoLooks like there’s an issue concatenating blocks (or something) (note the irregular spacing, emphasis mine): […] went viral on hacker news a few months ago. since then, we've added Lua dynamic se rving, which also goes as fast as 1,000,000 requests per second on a core i9 (rather than a cheap virtual machine like this). the text you're reading now is a PKZIP End Of Central Directory comment. redbean aims to be production worthy across six operati ng systems,
- jart 6y agoAuthor here. That's actually a bug in the `zip` command. InfoZIP inserts \r\n into zip comments every 256 bytes and I have no idea why, since APPNOTE.TXT doesn't specify that. I intend to find a workaround soon. If you're curious about the Makefile code used to generate the demo zip, see here: https://github.com/jart/cosmopolitan/blob/c029e83dd893b733c13b1859c9103f279a14aa37/tool/net/net.mk#L116 https://github.com/jart/cosmopolitan/blob/c029e83dd893b733c1...
- bch 6y agozip.c L70: #define MAXCOM 256/* Maximum one-line comment size */ So looks like an “annoyance” more than “bug” per se. Excellent project, yours, btw.
- 1vuio0pswjnm7 6y agoDoes minizip, which in included in zlib, have the same bug. https://github.com/madler/zlib/tree/master/contrib/minizip https://github.com/madler/zlib/tree/master/contrib/minizip
- dmbaggett 6y agoAlso, typo: {"jar", "appliaction/java-archive"}, //
- jart 6y agoThanks! https://github.com/jart/cosmopolitan/commit/cef08d47b652bd980df0880f5802455fb31414bd https://github.com/jart/cosmopolitan/commit/cef08d47b652bd98...
- deleted 6y ago[deleted]
- SahAssar 6y agoAwesome! Now that lua is included it'd be awesome to bundle SQLite and some sort of TLS implementation. Then this would have everything needed for a application platform! Is there some way to configure the size limit of requests? Right now it's capped at 64kb, which is a bit limiting for some use-cases.
- SahAssar 6y ago(Can't edit the original comment anymore) If anyone else wants to increase the limit you can edit redbean.c and set inbuf.n to your desired size on line 4540. It would be nice if it could be set as a cli param or at runtime in lua though.
- jart 6y agoAuthor here. I agree. I've added the feature you've requested as a -M INT flag in https://github.com/jart/cosmopolitan/commit/1966369e8eaa894b80f3e2378ce8041d8606fcef https://github.com/jart/cosmopolitan/commit/1966369e8eaa894b... and pushed a new 0.4.1 release to the website https://justine.lol/redbean/index.html https://justine.lol/redbean/index.html
- schmorptron 6y agoCool project!
- mrlonglong 6y agoIt's cute!