Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global download and upload limit #1516

Open
wants to merge 6 commits into
base: master
from

Limit WebRTC as well as TCP connections

Thanks BenmasterTM
  • Loading branch information
chtrinh committed May 22, 2017
commit 5b05c84b48f529ea2d1cdfcafa06f4f407774957
@@ -143,7 +143,7 @@ Peer.prototype.onConnect = function () {
})
self.startHandshakeTimeout()

if (self.type === 'tcpOutgoing') {
if ((self.type === 'tcpOutgoing') || (self.type === 'webrtc')) {
self.setThrottlePipes()
} else {
conn.pipe(wire).pipe(conn)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.