[OpenSIPS-Devel] [OpenSIPS/opensips] cb5d92: proto_ws: handle CRLF keep-alives in WS messages

Răzvan Crainea noreply at github.com
Wed Sep 23 14:17:12 UTC 2026


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cb5d92d3eb130c9f32c3c7ea15b371b5eb617607
      https://github.com/OpenSIPS/opensips/commit/cb5d92d3eb130c9f32c3c7ea15b371b5eb617607
  Author: root <ahrongreenberg at gmail.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M modules/proto_ws/ws_common.h

  Log Message:
  -----------
  proto_ws: handle CRLF keep-alives in WS messages

Browser WebSocket APIs cannot send native WebSocket Ping frames, so
browser-based SIP clients use the RFC 5626 CRLF keep-alive mechanism,
as permitted by RFC 7118.

Recognize double-CRLF pings and single-CRLF pongs carried in WebSocket
data frames. Reply with a single-CRLF text frame and prevent these
keep-alives from reaching the SIP parser.

This applies to both WS and WSS transports.


  Commit: 1e5f9ddaca4f12408883a1a6754f2f9706cbb9aa
      https://github.com/OpenSIPS/opensips/commit/1e5f9ddaca4f12408883a1a6754f2f9706cbb9aa
  Author: Răzvan Crainea <razvan at opensips.org>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M modules/proto_ws/ws_common.h

  Log Message:
  -----------
  Merge pull request #4246 from greenbea/ws_crlf_ping

proto_ws: handle CRLF keep-alives in WS messages


Compare: https://github.com/OpenSIPS/opensips/compare/a85720cb22e9...1e5f9ddaca4f

To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list