• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPipe (NSFileHandle) writedata limit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSPipe (NSFileHandle) writedata limit?
      • From: Dave Keck <email@hidden>
References: 
 >NSPipe (NSFileHandle) writedata limit? (From: "McLaughlin, Michael P." <email@hidden>)

  • Prev by Date: Re: Using a SOAP Web Service from iPhone
  • Next by Date: Re: NSPipe (NSFileHandle) writedata limit?
  • Previous by thread: NSPipe (NSFileHandle) writedata limit?
  • Next by thread: Re: NSPipe (NSFileHandle) writedata limit?
  • Index(es):
    • Date
    • Thread