shinyoshiaki / werift-webrtc

WebRTC Implementation for TypeScript (Node.js), includes ICE/DTLS/SCTP/RTP/SRTP/WEBM/MP4
MIT License
469 stars 30 forks source link

Do not regenerate cookie every time flight 2 is sent. #332

Closed koush closed 1 year ago

koush commented 1 year ago

Chrome sometimes sends multiple dtls client hello, causing werift to create multiple cookie, overwriting prior. Chrome will use the first cookie, while werift will only have record of the second cookie. This causes DTLS handshake to fail.

koush commented 1 year ago

Bug reported by @bjia56

shinyoshiaki commented 1 year ago

Thanks for the correction.