Re: OpenTransport and OS/X
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.