• 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
Solved >Re: Trouble making more than 244 simultaneous connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solved >Re: Trouble making more than 244 simultaneous connections


  • Subject: Solved >Re: Trouble making more than 244 simultaneous connections
  • From: Brian Williams <email@hidden>
  • Date: Wed, 26 Nov 2008 12:24:05 -0800 (PST)

Thanks for the advice from Eli and others.

It was indeed the ulimit problem. I can now make the 1000 connections that I wanted.
Finding out where to set the limit took some digging, but eventually I found out that you can set it in /etc/launchd.conf by adding "limit maxfiles 2048  unlimited"  where 2048 is per-process and unlimited is system wide.

Those articles that Hamish linked to are quite interesting.

I think that I am going to try changing my code over to smallSockts as the CF stuff i am using now seems to be dropping messages in my tests. I could be that my test are wrong, but I'll see if smallSockets is better.

Thanks again

Brian


----- Original Message ----
From: Quinn <email@hidden>
To: email@hidden
Sent: Wednesday, November 26, 2008 2:48:06 AM
Subject: Re: Trouble making more than 244 simultaneous connections

At 1:58 -0800 26/11/08, Eli Bach wrote:
> But I am also be totally off-base...

I doubt it (-:

Also note that you can use <x-man-page://2/setrlimit> to increase the limit up to the hard limit that you inherit from your parent process (which is typically unlimited).

S+E
-- Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Solved >Re: Trouble making more than 244 simultaneous connections
      • From: Jens Alfke <email@hidden>
References: 
 >Trouble making more than 244 simultaneous connections (From: Brian Williams <email@hidden>)
 >Re: Trouble making more than 244 simultaneous connections (From: Eli Bach <email@hidden>)
 >Re: Trouble making more than 244 simultaneous connections (From: Quinn <email@hidden>)

  • Prev by Date: Re: Trouble making more than 244 simultaneous connections
  • Next by Date: Re: Solved >Re: Trouble making more than 244 simultaneous connections
  • Previous by thread: Re: Trouble making more than 244 simultaneous connections
  • Next by thread: Re: Solved >Re: Trouble making more than 244 simultaneous connections
  • Index(es):
    • Date
    • Thread