webtorrent/webtorrent

`maxConns` option is ignored for incoming connections

Open

#703 创建于 2016年3月29日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)JavaScript (30,002 star) (2,748 fork)batch import
area/perfbughelp wanted

描述

The maxConns option is currently ignored for incoming connections, so there's effectively no limit the number of incoming connections that we accept.

For TCP, we could just immediately destroy the incoming connection, or perhaps pause the server somehow to avoid accepting in the first place? For WebRTC, we should consider not ever returning an offer when we're at capacity, since doing the whole signaling process is expensive (webrtc conns are a limited resource; and trackers have limited resources)

贡献者指南