Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Redbean 0.4 (justine.lol)
88 points by jart on May 1, 2021 | hide | past | favorite | 13 comments


Looks 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,


Author 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/c029e83dd893b733c1...


zip.c L70: #define MAXCOM 256/* Maximum one-line comment size */

So looks like an “annoyance” more than “bug” per se.

Excellent project, yours, btw.


Does minizip, which in included in zlib, have the same bug.

https://github.com/madler/zlib/tree/master/contrib/minizip


Also, typo:

{"jar", "appliaction/java-archive"}, //



Awesome! 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.


(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.


Author here. I agree. I've added the feature you've requested as a -M INT flag in https://github.com/jart/cosmopolitan/commit/1966369e8eaa894b... and pushed a new 0.4.1 release to the website https://justine.lol/redbean/index.html


Thank you so much!


Thank you for the sponsorship!


Cool project!


It's cute!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: