Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
- Subject: Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 02 Jul 2014 22:15:30 -0700
On 2014 Jul 02, at 18:07, Jens Alfke <email@hidden> wrote:
> As they said, the buffer of the pipe has a size of 4kbytes. So there cannot ever be more than 4k of available data at a time, because “available” means “sitting in the buffer ready to be copied out”.
On 2014 Jul 02, at 19:07, Scott Ribe <email@hidden> wrote:
> Which means, that until you read the 4K in the buffer, the sending side is blocked.
Ah, that makes sense. I was taking the “pipe” abstraction a little too seriously :))
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden