News for hackers. Stuff that matters.
Re:Bye CUPS: Printing with Netcat by dv_dt on Tuesday August 03, 2021 @07:08PM (#28055378)
At some point you may get bitten by just nc’ing files around as tcp checksums alone are not that great. A lot of transfers or large files will at some point introduce errors. This is where an application layer error check may be desirable.
Re:Bye CUPS: Printing with Netcat by bawolff on Tuesday August 03, 2021 @07:32PM (#28055550)
Is that really the case? (I mean i know in theory, but in practise does it matter?). Its not like http has its own checksum, and i've never had problems downloading over http (yes https does have better checksums, but i suspect it would just fail and not auto retry, which has never happened to me)
Re:Bye CUPS: Printing with Netcat by bcook on Tuesday August 03, 2021 @08:01PM (#28055769)
I've always verified the checksums of files transmitted via netcat and occasionally I have had different checksums. It's rare, and only on gigabyte+ files, but it has happened.
Re:Bye CUPS: Printing with Netcat by littlecranky67 on Wednesday August 04, 2021 @06:10AM (#28059245)
You should just use rsync - its been the best tool for transfering files between UNIXoids for the last 15-20 years for me and comes preinstalled with most distros (even macOS). It will take care of transferring only the required parts, and if you supply -c (slow!) it will even perform checksumming on both ends to assert files were correctly transferred and are bit-identical.
Re:Bye CUPS: Printing with Netcat by bcook on Wednesday August 04, 2021 @06:24PM (#28067227)
I was primarily using Android's busybox netcat, but I agree; there's always a better tool.
Re:Bye CUPS: Printing with Netcat by technothrasher on Tuesday August 03, 2021 @09:52PM (#28056375)
TCP checksums aren't that great, but you've usually also got lower layer CRCs which are much better. Though you can still get tripped up by misbehaving network hardware that corrupts a packet and then masks it by recomputing the CRC as the packet goes out again.