3 ms·
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. si
by bch 5y ago
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,
- jart 5y 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 5y 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 5y 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 5y agoAlso, typo: {"jar", "appliaction/java-archive"}, //
- jart 5y agoThanks! https://github.com/jart/cosmopolitan/commit/cef08d47b652bd980df0880f5802455fb31414bd https://github.com/jart/cosmopolitan/commit/cef08d47b652bd98...