通道:quic.session.error


🌐 Channel: quic.session.error

  • session quic.QuicSession
  • error <any> 导致会话被销毁的错误。

当会话因错误而被销毁时发布。在 onerror 回调触发之前以及流被销毁之前触发。与 quic.session.closed(在正常关闭和错误关闭时都会触发)不同,该通道仅在出现错误时触发,因此适合仅用于错误提示。

🌐 Published when a session is destroyed due to an error. Fires before the onerror callback and before streams are torn down. Unlike quic.session.closed (which fires for both clean and error closes), this channel fires only when an error is present, making it suitable for error-only alerting.