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)

貢獻者指南