Slow file serving?

I have Caddy 1.0.0 set up to serve files from a directory on my LAN, but it’s very slow. It only does 40 MB/s while Samba has no problem doing 150 MB/s. Caddy also consumes 130% CPU while the download is going on.

What could be wrong?

Here’s my config:

hostname {
    root /htdocs
    log / /var/log/caddy/out.log "{remote} - {user} [{when}] \"{method} {uri} {proto}\" {status} {size} {request}"

    basicauth /video user htpasswd=../../../../etc/caddy/htpasswd

    browse /video

I wonder if it’s the log directive. Can you do a quick test and comment out the log line entirely and try a speed test again?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.