原始文献 / 论坛帖 / Re: Feature Request: Limiting Connections

Re: Feature Request: Limiting Connections

Bitcointalk · 2010-07-02 19:21:36 UTC

AuthorSatoshi Nakamoto
TitleRe: Feature Request: Limiting Connections
Date2010-07-02 19:21:36 UTC
ForumBitcointalk · 原文

感谢对此的反馈。

我们可以做的一件事是把出站连接数从 15 降到 10,甚至可能降到 5。15 这个数是随意定的。只要足够保证冗余和消息的快速指数级传播就行。10 也绰绰有余。5 应该也够。10 是个不错的整数,用户能看出它是故意停在这个数的。

实现 UPnP 会有帮助,这样接受入站连接的节点会更多。你的连接数等于接受入站连接的节点数与只出站节点数的比例乘以 15。我们需要鼓励更多人接受入站连接。

我会实现一个功能:当达到一定数量时就停止接受入站连接。

你运行的是哪个版本?

有人知道像 BitTorrent 这样的典型 P2P 软件一般能达到多少连接数吗?

英文原文

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?