monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Re: Automate stdio chunk size


From: Thomas Keller
Subject: Re: [Monotone-devel] Re: Automate stdio chunk size
Date: Mon, 10 Jul 2006 16:09:29 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Thomas Moschny wrote
After thinking a while about it, it is no longer clear to me, why there is a need for chunked output *at all* ...

The reading side of a pipe can always read the data in arbitrarily (and independently of the sender) sized packets, even when using synchronous I/O, by simply specifying the size in the read() call. The sender must of course check how many bytes of it's write() call actually got written.

Well, maybe there is no need for chunked output, but there is definitely the need for some EOF token which tells the client "hey, I got all the data". Ideally this would be paired with the checksum of the just outputted data so the client can ensure that it got all data correctly.

Thomas Keller.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]