• 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(2): OpenTransport and OS/X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re(2): OpenTransport and OS/X


  • Subject: Re(2): OpenTransport and OS/X
  • From: Jens Bauer <email@hidden>
  • Date: Mon, 12 Aug 2002 18:42:38 +0200

Hi Gabriel,

On Tue, 6 Aug, 2002, Gabriel Beauchemin <email@hidden> wrote:

>> Sounds like you've run across the file descriptor resource limit.
>> Each OT endpoint consumes a file descriptor, and there's a soft limit
>> of 255 file descriptors for each process. You can up that limit (to
>> 10240 for non-privileged processes, and 12288 for privileged
>> processes) using the setrlimit call. Type "man setrlimit" into
>> Terminal for more info on this.
>>
>> Note this limit is only of concern if you have 255 simultaneous
>> connections. If you're closing your endpoints properly, this should
>> clean up the corresponding file descriptors. It could be that you
>> have a bug in your close path (or you've uncovered a bug in the OT
>> framework's close path).
>
>
>BTW, while trying to debug this problem (using CodeWarrior in OS/X) the
>problem doesn't show up!! The 245th connection is fine (tested with 10k+
>cycles), and we haven't found a way to reproduce inside the debugger. Is
>anyone aware of the side effects of using the debugger??

Timing!
You'll very often run into problems debugging network code, because of timing.

>Anyway, I am adding consoles traces to see if the creation/dispose of the
>endpoints match up.

I usually go with a log->memory->file, which is written to disk at task-time.


Love,
Jens

--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: OpenTransport and OS/X (From: Gabriel Beauchemin <email@hidden>)

  • Prev by Date: XTI: Expedited data
  • Next by Date: Re(3): How to create dial-up settings in OS X 10.0?
  • Previous by thread: Re: OpenTransport and OS/X
  • Next by thread: Problem In CFRunLoop
  • Index(es):
    • Date
    • Thread