]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: respond to CLOSE opcode
authorJeremy Lainé <jeremy.laine@m4x.org>
Tue, 8 Jan 2019 07:38:41 +0000 (08:38 +0100)
committerSean Bright <sean.bright@gmail.com>
Mon, 21 Jan 2019 19:03:10 +0000 (14:03 -0500)
commitda50162fa4a2cf2613f9263c251aa050d8b5c01b
treea44d5b731ce928e4675ac1c30d4fcc0131e28086
parent28da2948d13c961ab5d9e9ce0d6110672045c40c
res_http_websocket: respond to CLOSE opcode

This ensures that Asterisk responds properly to frames received from a
client with opcode 8 (CLOSE) by echoing back the status code in its own
CLOSE frame.

Handling of the CLOSE opcode is moved up with the rest of the opcodes so
that unmasking gets applied. The payload is no longer returned to the
caller, but neither ARI nor the chan_sip nor pjsip made use of the
payload, which is a good thing since it was masked.

ASTERISK-28231 #close

Change-Id: Icb1b60205fc77ee970ddc91d1f545671781344cf
res/res_http_websocket.c