Skip to content

Document NIOSSLError.uncleanShutdown #547

@weissi

Description

@weissi

The docs for NIOSSLError.uncleanShutdown are non-existent today. But understanding when uncleanShutdown is and when it's not a security issue (truncation attack) is quite important. So I think we should document it.

This contains some information: swift-server/async-http-client#238 (comment)


Particularly interesting would be examples of protocols where this matters and where it doesn't. E.g.

  • HTTP/2: safe to ignore (always framed)
  • WebSocket: safe to ignore (always framed)
  • HTTP/1.1 with content-length or chunked encoding: safe to ignore (framed)
  • HTTP/1 with EOF framing: NOT safe to ignore
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/documentationImprovements or additions to documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions