Slow file serving?

(Stavros Korokithakis) #1

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
}
(Matt Holt) #2

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?