]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: Forcefully terminate on write errors. 73/1073/1
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Aug 2015 10:24:30 +0000 (07:24 -0300)
committerJoshua Colp <jcolp@digium.com>
Wed, 12 Aug 2015 09:49:59 +0000 (06:49 -0300)
commitb4e9416138339274176cb87b26db905723e553ba
tree60e0521f4b3c505b4af8492b5af4df269ad82e9a
parent47d9ff1741118d5594c8500dfc5b048b5e04d8a0
res_http_websocket: Forcefully terminate on write errors.

The res_http_websocket module will currently attempt to close
the WebSocket connection if fatal cases occur, such as when
attempting to write out data and being unable to. When the
fatal cases occur the code attempts to write a WebSocket close
frame out to have the remote side close the connection. If
writing this fails then the connection is not terminated.

This change forcefully terminates the connection if the
WebSocket is to be closed but is unable to send the close frame.

ASTERISK-25312 #close

Change-Id: I10973086671cc192a76424060d9ec8e688602845
res/res_http_websocket.c