Re: Maximum number of sockets
Re: Maximum number of sockets
- Subject: Re: Maximum number of sockets
- From: Frederick Cheung <email@hidden>
- Date: Fri, 18 Jun 2004 11:47:36 +0100
To: macnetworkprog Programming <email@hidden>
From: Eric Arlotti <email@hidden>
Subject: Maximum number of sockets
Date: Thu, 17 Jun 2004 15:08:11 +0200
Is there a limitation in the number of sockets (BSD or OpenTransport)
that a Mac OS X application can open simultaneously ? sysctl says
kern.ipc.maxsockets=512 : is this the limit ? And is there a way to
increase this limit (OS X refuses to change kern.ipc.maxsockets) ?
Thanks.
Eric Arlotti
email@hidden
You should probably worry first about the maximum number of file
descriptors , 256 by default. You can set this limit with
getrlimit/setrlimit. I seem to recall testing my app in a scenario that
would have used more than 512 sockets, but I could be wrong.
Fred
_______________________________________________
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.