Re: NSPipe (NSFileHandle) writedata limit?
Re: NSPipe (NSFileHandle) writedata limit?
- Subject: Re: NSPipe (NSFileHandle) writedata limit?
- From: Dave Keck <email@hidden>
- Date: Fri, 9 Apr 2010 06:06:01 -1000
> I have found, by trial and error, that I cannot write more than 65,536 bytes
> to this pipe which goes to an NSTask. Below that limit works fine.
>
> I thought that the limit was supposed to be the unsigned long max. Is this
> not correct?
As long as some process is reading data from the pipe as it's being
written (and memory is managed correctly), there's no limit to the
amount of data that can be written to a pipe. If the buffer is full
though, then by default the write end will block until the data is
read from the pipe.
What error are you getting?
_______________________________________________
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