Tls module

ended_without_close_notify

procedure · 1 overloadSource

Whether reader is a TLS stream's reader (from reader_of) whose connection ended without the peer's close_notify (last_error(stream).kind == .TRUNCATED). For a protocol that frames its own messages, such as HTTP, where that end is no failure once the message is complete.

ended_without_close_notify :: (reader: Io.Reader) -> bool

Whether reader is a TLS stream's reader (from reader_of) whose connection ended without the peer's close_notify (last_error(stream).kind == .TRUNCATED). For a protocol that frames its own messages, such as HTTP, where that end is no failure once the message is complete.

Parameters

reader: Io.Reader
the reader to test. Any reader is fine; others give false.

Returns

bool

See also