public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
* Avoiding double writes
@ 2021-11-01 17:47 John Goerzen
  2021-11-01 19:46 ` Sergey Matveev
  0 siblings, 1 reply; 7+ messages in thread
From: John Goerzen @ 2021-11-01 17:47 UTC (permalink / raw)
  To: nncp-devel

Hi,

Awhile back, we were discussing the temporary files that were 
needed for reading stdin for nncp-exec or nncp-file.  I believe 
the reason for this is that the header contains a signature of the 
data that follows, and it's not practical to seek back and write 
that later.

That raises a question... since the signature can't be verified 
without reading the entirety of the data anyhow, why not put the 
signature after the data instead of before it?

To do that, there needs to be some way of recognizing the end of 
the data.  I'm not sure how that happens now, since we also don't 
know the size in advance in those cases.  Is there some sort of 
blocking for data chunks?

If time permits, I may see about adding this feature if there's a 
design path that would be suitable.

- John

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-02 20:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 17:47 Avoiding double writes John Goerzen
2021-11-01 19:46 ` Sergey Matveev
2021-11-02  0:11   ` John Goerzen
2021-11-02 10:03     ` Sergey Matveev
2021-11-02 15:26       ` John Goerzen
2021-11-02 17:49         ` Sergey Matveev
2021-11-02 20:48         ` Sergey Matveev