• 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: Quinn <email@hidden>
  • Date: Tue, 6 Aug 2002 09:35:40 +0100

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
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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: OpenTransport and OS/X
      • From: Gabriel Beauchemin <email@hidden>
References: 
 >OpenTransport and OS/X (From: Gabriel Beauchemin <email@hidden>)

  • Prev by Date: Re: How to create dial-up settings in OS X 10.0?
  • Next by Date: Re(2): How to create dial-up settings in OS X 10.0?
  • Previous by thread: OpenTransport and OS/X
  • Next by thread: Re: OpenTransport and OS/X
  • Index(es):
    • Date
    • Thread