oa_gateway_owp

Module server

Source
Expand description

Accept loop and WebSocket handshake. Sessions live in session.

This module refuses extra connections instead of queueing them, so a caller learns immediately and the accept loop keeps draining.

Structsยง

Constantsยง

  • Budget for a client to complete the TLS handshake, when TLS is configured. Without a limit, a peer that opens TCP and never speaks TLS would hold a connection permit forever.

Functionsยง

  • error_response ๐Ÿ”’
    A handshake rejection with status and a short reason line.
  • handshake_check ๐Ÿ”’
    Vets one WebSocket handshake: the owp subprotocol, then the Origin.