Open Transport cannot allocate enough system resources
Open Transport cannot allocate enough system resources
- Subject: Open Transport cannot allocate enough system resources
- From: Andrew Bush <email@hidden>
- Date: Tue, 29 Oct 2002 02:00:42 +1300
Hi all,
Im writing an application that uses open transport in 10.1.5 and 10.2, it
uses a large number of outgoing connections and is almost continuously
creating or reusing endpoints.
After about 15 minutes of reusing endpoints I begin to get this error:
kENOSRErr -3271 Open Transport cannot allocate enough system resources
(usually stream messages) to meet your request.
<g> is there a way around it? is there any reason that reusing endpoints
is problematic in osx?
I am maintaining a pool of around 3-4 hundred endpoints at any 1 time, and
allowing each endpoint to sit for around 2 minutes after its previous
usage, I then check that its in an unbound state and attempt to reuse it.
Interestingly enough if I create a new endpoint for every connection
attempt this appears to work somewhat better and doesn't have any problems
for a good hour or two...although the cpu usage is a little higher.
any advice would be appreciated, Ive been hitting my head against a wall
now for a while, ive gone through various tech notes (living in a dynamic
environment etc) and as far as I can tell im doing things correctly.
Another thing that happens is that doing a lsof call from the terminal
reveals a large number of tcp cantsend cantrcv type errors, I assume this
is an equivalent error?
<g> again, this doesn't seem ot be happening if I recreate the endpoints
anew everytime....
Id love to be able to reuse the endpoints, as this feels like it should be
the 'correct' way to handle so many outgoing connections....
Thanks in advance for any help.
Yours cheerfully,
Andrew Bush
The word for a society where everyone is pulling together is 'Tyranny', in
a free country everyone tends to pull in different directions.
_______________________________________________
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.