Bitcoin Forum
April 26, 2024, 11:48:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Connection limits  (Read 8410 times)
satoshi (OP)
Founder
Sr. Member
*
qt
Offline Offline

Activity: 364
Merit: 6723


View Profile
August 09, 2010, 08:58:45 PM
 #1

SVN rev 125:
- Always make 8 outbound connections even if have 8 inbound
- Limit outbound connections to one per a.b.?.? range
- Switch -maxconnections=#

I added the (currently undocumented) switch -maxconnections=#.  You shouldn't use it unless you need to because your router can't maintain a lot of connections, then try -maxconnections=30.

I haven't really tested -maxconnections much, could someone test it?
1714175302
Hero Member
*
Offline Offline

Posts: 1714175302

View Profile Personal Message (Offline)

Ignore
1714175302
Reply with quote  #2

1714175302
Report to moderator
1714175302
Hero Member
*
Offline Offline

Posts: 1714175302

View Profile Personal Message (Offline)

Ignore
1714175302
Reply with quote  #2

1714175302
Report to moderator
1714175302
Hero Member
*
Offline Offline

Posts: 1714175302

View Profile Personal Message (Offline)

Ignore
1714175302
Reply with quote  #2

1714175302
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714175302
Hero Member
*
Offline Offline

Posts: 1714175302

View Profile Personal Message (Offline)

Ignore
1714175302
Reply with quote  #2

1714175302
Report to moderator
Tilka
Newbie
*
Offline Offline

Activity: 11
Merit: 0



View Profile
August 09, 2010, 09:32:31 PM
Last edit: August 11, 2010, 11:30:30 PM by yore
 #2

Wouldn't it make sense to enable connections to multiple a.b.?.? peers that are in the same subnet? That could add some speed.

EDIT:
What I meant was that disabling the connection limit to nearby nodes could help keeping the network latency low.
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
August 09, 2010, 11:26:49 PM
 #3

Wouldn't it make sense to enable connections to multiple a.b.?.? peers that are in the same subnet? That could add some speed.


Speed is a secondary goal.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
August 09, 2010, 11:58:05 PM
 #4

Speed isn't really much of an issue since the p2p is for transactions and block data; not large files. Latency is probably a good goal; have a well connected swarm insures transactions are processed quickly and block data is updated quickly so clients don't lag behind the rest of the network.

Mainly, he doesn't want home routers to get overloaded by the p2p part of bitcoin.

At the same time, those that have bandwidth and CPU to spare can set a high limit (like 1000 or more) that just acts at a super-node for the rest of the nodes to connect through.

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Ground Loop
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
August 10, 2010, 06:11:39 AM
 #5

For a wide-open internet server on a well-connected router with a static IP, what's a typical number of connections?

My machines seem to settle into 34 or 35 connections and stay there.  Default limit, or some result of natural topography?

Bitcoin accepted here: 1HrAmQk9EuH3Ak6ugsw3qi3g23DG6YUNPq
throughput
Full Member
***
Offline Offline

Activity: 158
Merit: 100


View Profile
August 10, 2010, 09:06:09 AM
 #6


I haven't really tested -maxconnections much, could someone test it?


Is it maximum of outgoing connections or of total number of peer connections?

Could it be useful to limit both separately, by different options?

transactions and block data;  not large files

Did you mean "transactions and block data are not yet large files" ?
Megabytes per day is yet not large for my Internet, but receiving gigabyte per day for Bitcoin only is already too much.
I mean, that is the implication of future success.
ArtForz
Sr. Member
****
Offline Offline

Activity: 406
Merit: 257


View Profile
August 10, 2010, 09:38:43 AM
 #7

Total number of peer connections, outgoing is still limited to 8.

bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz
i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!