Skip to content
  • Carlos Garcia Campos's avatar
    WebSockets: ignore any messages after close has been sent and received · d9c729aa
    Carlos Garcia Campos authored and Carlos Garcia Campos's avatar Carlos Garcia Campos committed
    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."
    d9c729aa