]> Sergey Matveev's repositories - public-inbox.git/commit
switch to sysseek + sysread for serving static files
authorEric Wong <e@yhbt.net>
Sat, 25 Jan 2020 20:57:57 +0000 (20:57 +0000)
committerEric Wong <e@yhbt.net>
Mon, 27 Jan 2020 02:58:03 +0000 (02:58 +0000)
commitfcfa0d639da338c470f07942da71f78fa65354a1
tree24065141751adacf4898fd1546fd90dd9f7bbd91
parent05a06f3262a2ddbf46adb85169e13ce9127e4524
switch to sysseek + sysread for serving static files

The "perlio" layer doesn't do read(2) syscalls over 8192 bytes
at the moment, and binmode($fh, ':unix') leaks[1].  So use
sysseek and sysread for now, since I can't see retaining
compatibility with PerlIO::scalar being worth the trouble.

[1] http://nntp.perl.org/group/perl.perl5.porters/256918
lib/PublicInbox/DS.pm
lib/PublicInbox/WwwStatic.pm