Re: [Libevent-users] Patch: evhttp_connection_set_local_port

2008-11-04 Thread Richard Jones
On Tue, 2008-11-04 at 16:12 +, Niels Provos wrote: On Tue, Nov 4, 2008 at 3:40 AM, Richard Jones [EMAIL PROTECTED] wrote: In order to open more than 2^16 connections (HTTP connections in my case) *from* one machine, you need to use multiple local IPs, because the maximum local port

Re: [Libevent-users] Patch: evhttp_connection_set_local_port

2008-11-04 Thread Richard Jones
On Tue, 2008-11-04 at 04:04 -0800, Dan Kegel wrote: On Tue, Nov 4, 2008 at 3:40 AM, Richard Jones [EMAIL PROTECTED] wrote: I added evhttp_connection_set_local_port, which in conjunction with evhttp_connection_set_local_address and some tcp/kernel tuning allowed me to open 1 million http

Re: [Libevent-users] Patch: evhttp_connection_set_local_port

2008-11-04 Thread Dan Kegel
On Tue, Nov 4, 2008 at 4:16 AM, Richard Jones [EMAIL PROTECTED] wrote: I'm 90% finished writing up my findings as Part 3 to my comet series on www.metabrew.com - it turns out that my client process (C+libevent with my patch) that opens 1M connections takes 2.1GB resident once all 1M