public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Re: [EN] NNCP 7.1.0 release announcement
Date: Tue, 6 Jul 2021 12:57:52 +0300	[thread overview]
Message-ID: <YOQpINf6xe7rsVdk@stargrave.org> (raw)
In-Reply-To: <87k0m4zbip.fsf@complete.org>

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

*** John Goerzen [2021-07-05 16:38]:
>What's odd is that it corrupted about 5 out of 15 files that were generated
>at the time -- and they were all small ones.  The bigger ones were fine.

Currently I can not reproduce that issue locally. I use "nncp-exec -"
analogue for all my email -- have never seen that kind of issues.

I creates a subset of relatively small various files with fio. 1000
files of 100-2000 bytes sizes:

    % cat foo.fio
    [mein]
    readwrite=write
    bssplit=100/:500/:1000/:1500/:2000/
    nrfiles=1000
    filesize=100-2000

Then I passed them through gpg and nncp-file -:
    for i (mein.0.*) gpg -r offline -e < $i | nncp-file - self:$i.gpg
and tossed:
    nncp-xfer -mkdir -node self /tmp/self-shared
    nncp-xfer -node self /tmp/self-shared
    nncp-toss
And then decrypted and checked if all the data is "undamaged":
    cd ~/incoming
    for i (*.gpg) gpg -d < $i > $i:r
    l *~*.gpg | sort | xargs cat | sha1
    cd fiodir
    l mein.0.* | sort | xargs cat | sha1
And all hashes are matched, no gpg errors.
I looked at the NNCP's code again and currently see nothing like some
kind of unflushed bufio-buffers and that code has not been touched for a
long time. Unfortunately currently I have got no ideas how to reproduce
the problem.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-07-06  9:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-04 17:34 [EN] NNCP 7.1.0 release announcement Sergey Matveev
2021-07-05 20:52 ` John Goerzen
2021-07-05 21:26   ` John Goerzen
2021-07-05 21:38     ` John Goerzen
2021-07-06  9:57       ` Sergey Matveev [this message]
2021-07-07  1:30         ` John Goerzen
2021-07-07 19:15           ` Sergey Matveev
2021-07-06  9:27   ` Sergey Matveev