nroi / cpcache

central pacman cache
MIT License
15 stars 3 forks source link

Downloads sometimes stall for small files #10

Closed nroi closed 5 years ago

nroi commented 5 years ago

So far, I haven't found a method to reproduce this issue.

Example: Client initiates download request of file community/os/x86_64/python-alembic-1.0.7-1-any.pkg.tar.xz. The download then stalls and the client aborts. Server log (cpcache) says:

Feb 10 21:33:43 archWS cpcache[22589]: 21:33:43.646 [info]  Serve file /var/cache/cpcache/pkg/community/os/x86_64/python-alembic-1.0.7-1-any.pkg.tar.xz via HTTP.
Feb 10 21:33:59 archWS cpcache[22589]: 21:33:59.654 [info]  Connection closed by client during data transfer. File /var/cache/cpcache/pkg/community/os/x86_64/python-alembic-1.0.7-1-any.pkg.tar.xz is incomplete.

The file size on the cpcache server for the given file is 245515 bytes. The actual file size is 246900 bytes.

nroi commented 5 years ago

Another example: lua52-lpeg.

wget -v 'http://localhost:7070/extra/os/x86_64/lua52-lpeg-1.0.2-1-x86_64.pkg.tar.xz'

nroi commented 5 years ago

Unable to reproduce. This might have been fixed since many changes have been made since then. Issue will be reopened when anyone still observes this bug.