W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2019

Re: [webrtc-pc] DataChannel max value for "id" before connecting? (#2158)

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Apr 2019 09:36:44 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-478920442-1554197803-sysbot+gh@w3.org>
The code in webrtc.org's code indicates that the memory footprint of increasing channels from the current 1024 to 65535 is worrisome:
```
// It's recommended to use the maximum of 65535 in:
// https://tools.ietf.org/html/draft-ietf-rtcweb-data-channel-13#section-6.2
// However, we use 1024 in order to save memory. usrsctp allocates 104 bytes
// for each pair of incoming/outgoing streams (on a 64-bit system), so 65535
// streams would waste ~6MB.
```

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2158#issuecomment-478920442 using your GitHub account
Received on Tuesday, 2 April 2019 09:36:49 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:47 UTC