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