Date: Tue, 24 Mar 2020 19:06:09 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 243144] ports-mgmt/pkg: size mismatch error Message-ID: <bug-243144-32340-0mFRTwo8Pt@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-243144-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-243144-32340@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243144 --- Comment #3 from Conrad Meyer <cem@freebsd.org> --- It's a design problem. We know package syncs are never going to be instantaneous, but the design of the pkg server infrastructure and client does not allow the client to install from a consistent snapshot (or even recognize the condition of an inconsistent sync status). A better design would be to use content-addressed names on the server (i.e., some hash). If the client gets a 404 error, it knows it has a stale index and must re-fetch metadata (automatically). If the client does not get a 404, it will get exactly the file it asked for (modulo HTTP layer corruption) and the size check will not fail anyway. Debian talks about something like this: http://www.chiark.greenend.org.uk/~cjwatson/blog/no-more-hash-sum-mismatch-errors.html -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243144-32340-0mFRTwo8Pt>
