Commit d9c729aa authored by Committed by Carlos Garcia Campos
WebSockets: ignore any messages after close has been sent and received
We currently ignore data frames when close has been received, but we should also ignore any frame after close has been sent and received. Currently, if we receive two close frames we end up with the code and reason of the second frame, while the RFC says: "The WebSocket Connection Close Code is defined as the status code contained in the first Close control frame received by the application implementing this protocol."
Showing with 51 additions and 0 deletions