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

Re: OpenTransport and OS/X


  • Subject: Re: OpenTransport and OS/X
  • From: Gabriel Beauchemin <email@hidden>
  • Date: Tue, 06 Aug 2002 08:21:13 -0400

On 06/08/02 04:35, "Quinn" <email@hidden> wrote:

> At 17:29 -0400 5/8/02, Gabriel Beauchemin wrote:
>> Were having some problem porting a server application to MacOS/X that uses
>> the PowerPlant network/thread classes. Recently we've been reproducing a
>> problem where the 245th connection (open/close cycle) will return a -3271
>> error on the creation of a LOpenTptTCPEndpoint (not enough streams
>> ressources), whatever that means. The code has been functionning without
>> error in OS/9 before.
>
> 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).
>
> S+E


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??

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


tia

Gabriel Beauchemin, R & D
Teamsoft Inc. 50 rue Queen, bureau #304, Montrial, (Qc), Canada, H3C 2N5
tel.: +1 (514) 875-2231 (ext. 115), fax.: +1 (450) 446-1486
Mailto:email@hidden Website: http://www.teamsoft.com
_______________________________________________
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.

  • Follow-Ups:
    • Re(2): OpenTransport and OS/X
      • From: Jens Bauer <email@hidden>
References: 
 >Re: OpenTransport and OS/X (From: Quinn <email@hidden>)

  • Prev by Date: [OT] Re: Re(2): How to create dial-up settings in OS X 10.0?
  • Next by Date: PPPoE client on Mac OS 9
  • Previous by thread: Re: OpenTransport and OS/X
  • Next by thread: Re(2): OpenTransport and OS/X
  • Index(es):
    • Date
    • Thread