Author

Topic: Feature Request: Limiting Connections (Read 10462 times)

founder
Activity: 364
Merit: 6472
July 02, 2010, 06:20:20 PM
#7
I reduced max outbound connections from 15 to 8 in RC4.

15 was way more than we needed for redundancy.  8 is still plenty of redundancy.

As the nodes upgrade to this version, this will cut in half the number of connections that inbound accepting nodes get.

If anyone wants more than 8 connections, they can open port 8333 on their firewall.
full member
Activity: 199
Merit: 2072
July 02, 2010, 03:33:24 PM
#6
BitTorrent clients can do hundreds of connections easily - this is why they end up killing those little embedded routers.  It should be no problem for a regular IP router but the little embedded things are doing NAT so they're tracking state on all those connections and run out of memory.. also they're very slow SoC style computers so everything going through them suffers.

Torrent clients generally have options for configuring a global maximum number of connections, maximum inbound and maximum outbound connections.

I think it would be good to allow configuration of unlimited inbound/outbound connections for those who have the capability to do it, and provide a conservative default for those who are using NAT, tor, proxies, etc.
founder
Activity: 364
Merit: 6472
July 02, 2010, 03:21:36 PM
#5
Thanks for the feedback on this.

One thing we could do is lower the outbound connections from 15 to 10 or maybe even 5.  The choice of 15 was arbitrary.  It just needs to be enough for redundancy and fast exponential propagation of messages.  10 would still be plenty.  5 should be fine.  10 is good as a nice round number so users can see that it stopped intentionally.

It would help to implement UPnP so there would be more inbound accepting nodes.  Your number of connections is the ratio of inbound accepting nodes to out-only times 15.  We need to encourage more people to accept inbound connections.

I will implement a feature to stop accepting inbound connections once you hit a certain number.

Which version are you running?

Anyone know how many connections typical P2P software like BitTorrent can get up to?

legendary
Activity: 2646
Merit: 1720
https://youtu.be/DsAVx0u9Cw4 ... Dr. WHO < KLF
June 29, 2010, 09:54:04 PM
#4
Might I 2nd this request as a 'standard' GUI feature.

I've recently tested bitcoin through various socks proxies / providers and the ability to limit connections below 10 would be really useful.   
full member
Activity: 210
Merit: 104
June 28, 2010, 09:52:47 PM
#3
Alright. Thanks.

Would still be a nice feature. I don't mind people connecting to me to bootstrap or something, and I'd probably leave it at 40 rather than 15.
newbie
Activity: 55
Merit: 0
June 28, 2010, 09:19:51 PM
#2
Unforward port 8333 Tongue
It'll limit it to 15 and still work fine.
full member
Activity: 210
Merit: 104
June 28, 2010, 08:41:52 PM
#1
I'd like to see an option (with an RPC interface as well) to limit the number of connections that a Bitcoin client accepts. My home client is connected to 70 different nodes and my poor wimpy router just can't keep up. It's starting to slow my network down, to the point where I'll need to force Bitcoin to ignore connection requests (with -connect=) if this keeps up.

A connection limiting option would be a great alternative.
Jump to: