TooLongFrameException

class TooLongFrameException(val frameSize: Long, val maxFrameSize: Int) : IOException(source)

Thrown by ReadBuffer.readMessage when a single newline-terminated frame exceeds the maximum size before its terminator arrives — i.e. a peer is streaming data without ever framing it. Transports treat it as fatal and close the connection.

Constructors

Link copied to clipboard
constructor(frameSize: Long, maxFrameSize: Int)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

number of unframed bytes observed when the limit was tripped

Link copied to clipboard

the maximum frame size that was exceeded

Link copied to clipboard
expect open val message: String?