Re:Althttpd: Simple webserver in a single C file
by rkeene2 on Tuesday June 08, 2021 @02:42PM
(#27439165)
You might want to try filed !
This was for serving MPEG4-TS files with, IIRC, H.264 video and MPEG-III audio streams -- nothing fancy -- from a server running a container living on a disk attached via USB/1.1.
While USB/1.1 has enough bandwidth to stream the video, the other HTTP servers were too slow with Range requests, because they would do things like wait for logs to complete and open the file to serve (which is synchronous and requires walking the slow disk tree).
Re:Althttpd: Simple webserver in a single C file
by e12e on Tuesday June 08, 2021 @04:16PM
(#27440191)
> a server running a container living on a disk attached via USB/1.1.
Ah, ok. That makes sense. USB 1.1 can certainly challenge cache layers and software assumptions.
I do wonder how far apache2 might have been pushed, dropping logs and adjusting proxy/cache settings.
Could you expand on that? What type of files, how many clients? I seem to recall plain apache2 from spinning rust streaming fine to vlc over lan - but last time I did that was before HD was much of a thing... Now I seem to stream 4k hdr over ZeroTierOne over the Internet to my Nvidia Shield via just DLNA/UpNP (still to vlc) just fine. But I'm considering moving to caddy and/or http/webdav - as a reasonable web server with support for range request seem to handle skipping in the stream much better.