Just one comment, with httpperf it seems possible to make more than 32k 
connections... how is it possible?

[root ~]# httperf --server <server_ip> --port=5000 --uri=/ 
--num-conns=90000 --num-calls=90000 --burst-length=90000

On Sunday, July 7, 2013 9:35:11 PM UTC+2, Guido García wrote:
>
> Guys, you were right. The limit is on the client.
>
> I didn't realize the limit is 32k connections to the same IP/Port 
> combination, and not just to the same IP address (thanks Matt). This is why 
> one client was able to two to open 64k connections to two different ports, 
> and that was confusing me.
>
> Thank you,
> Guido.
>
> On Friday, July 5, 2013 12:38:09 AM UTC+2, Matt Sergeant wrote:
>>
>>
>> On Thu, Jul 4, 2013 at 6:29 PM, Guido García Bernardo <
>> [email protected]> wrote:
>>
>>> I increased the number of ephimeral ports on the client before running 
>>> it. In any case I don't think that is the issue, becasue when I run the 
>>> same nodejs server process (on a different port), the two processes are 
>>> able to handle 32K concurrent connections each (64K total).
>>>
>>
>> Can you be more clear here on what the problem is and what error you see?
>>
>> On a CLIENT you cannot make more than 32k connections to the same IP/Port 
>> combination. It's impossible.
>>
>> On a SERVER you can have trillions of incoming connections, BUT, they 
>> MUST come from different IP addresses up to a maximum of 32k per IP address.
>>
>> Think of the table like this:
>>
>> 1) Local IP
>> 2) LocalPort
>> 3) Remote IP
>> 4) RemotePort
>>
>> 1 is usually fixed unless you listen on more than one IP address.
>> 2 is usually fixed (e.g. port 80 for http)
>> 3 varies in IPv4 up to 4 billion-ish addresses
>> 4 varies and is generally randomly chosen by the OS, but is in a fixed 
>> range up to 32k
>>
>> If you fix 1 2 and 3 then you can only have 32k connections. But if you 
>> vary 3 then your number is limitless (practically).
>>
>> Does that help?
>>
>> Matt.
>>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to