Skip to content

Release v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:05
v1.3.0
5045939

Added

  • Added an upgrade_timeout_msec configuration option which limits how long the connection waits for the server to respond to the WebSocket upgrade request (#88)
    • Previously a server which accepted the TCP connection but never responded to the upgrade request would cause the connection to wait forever.
    • The timeout defaults to ten seconds. When it elapses, the connection is closed and c:Slipstream.handle_disconnect/2 is invoked with {:error, :upgrade_timeout}. Set the option to 0 to disable the timeout.

Fixed

  • Fixed a CaseClauseError crash in the connection process when the server sends a WebSocket close frame after the HTTP/1 request has completed (#86)
    • The error is now handled as a disconnect and passed to c:Slipstream.handle_disconnect/2.