Re: [webrtc-pc] (How) does SCTP handle CPU-bound congestion on JavaScript thread? (#2086)

> It would be an abuse of the receive buffer to work around an API issue. 

Datachannel API is not well suited for SCTP, that's why we are here, so yes, we are already abusing it. 

> And it would break once someone activates ndata (which is a spec requirement).

That's true, but that's also true that when someone activates ndata and try to send 10 4GB files with current API (common torrent case), it will not work either with current API.

> Needless to say that transport protocol implementations usually allocate the buffer at once...

That's an implementation issue.





-- 
GitHub Notification of comment by murillo128
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2086#issuecomment-458202708 using your GitHub account

Received on Monday, 28 January 2019 16:33:03 UTC