]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: Forcefully terminate on write errors. 75/1075/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:52:24 +0000 (06:52 -0300)
commit128d2348e66e341e44c75ce6b69c427ea3d0fd2a
treed3fc746b4643c7a3af6c750e52782a13a07ddc62
parenteae9adcc1fe0246f42e5534abdc99466f9125c04
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