]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_websocket: Use leftover data if no frames are available when the timer fires. master
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 29 Jun 2026 20:12:33 +0000 (14:12 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 2 Jul 2026 18:06:31 +0000 (18:06 +0000)
commit5eded44fee3a3e33117d75f275ef84c53cf05249
tree2c5e224726d17e932906d36dad68efc69d75d0be
parentf7c50cff7cf12129888feeb8287fe25628d9ea75
chan_websocket: Use leftover data if no frames are available when the timer fires.

When the 20ms channel timer fires but there are no frames available in
the queue, we now check for leftover data in the buffer and if there is
any, we create a frame with it and send it to the core. This resolves an
issue with the leftover data being delayed if a STOP_MEDIA_BUFFERING
command is delayed. Some existing comments were also clarified to
account for the new behavior.

Resolves: #2006
channels/chan_websocket.c