nurmohammed840 / websocket.rs

WebSocket implementation for both client and server
https://docs.rs/web-socket
Apache License 2.0
88 stars 7 forks source link

Should we check for invalid payloads in the close handshake ? #1

Closed nurmohammed840 closed 1 year ago

nurmohammed840 commented 1 year ago

Close handshake may contain invalid data (Invalid close code, invalid UTF8 string etc...). Currently we echo incoming close payloads. For performance reasons, it's negligible though.