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 Moschny
Subject: Re: [Monotone-devel] Re: Automate stdio chunk size
Date: Mon, 10 Jul 2006 15:03:36 +0200
User-agent: KMail/1.9.3

On Monday 10 July 2006 14:45, Bruce Stephens wrote:
> How about makeing the chunk size settable using a new command (leaving
> the default as it is)?  Or set the default to 1M (or BUFSIZ, or
> something), and then clients that would deadlock have a way to set it
> to something smaller.
>
> I'm not sure whether 1M would cause a problem.  I wouldn't rule it out
> for some simpler clients (using synchronous I/O and polling various
> inputs).

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.

- Thomas

-- 
Thomas Moschny  <address@hidden>




reply via email to

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