• 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: Maximum number of sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Maximum number of sockets
      • From: Eric Arlotti <email@hidden>
  • Prev by Date: Mac Cafe
  • Next by Date: Re: testing upload bandwidth
  • Previous by thread: Re: Maximum number of sockets
  • Next by thread: Re: Maximum number of sockets
  • Index(es):
    • Date
    • Thread