res_http_websocket: websocket write timeout fails to fully disconnect
authorKevin Harwell <kharwell@digium.com>
Wed, 11 Feb 2015 16:52:55 +0000 (16:52 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 11 Feb 2015 16:52:55 +0000 (16:52 +0000)
commit137c4b0778928040dff81f15b770211ee1ead320
treeea094ab1134e7fd99571857eb1f9e951e8950b52
parent49161d8df80925ff674204d288ba491876530715
res_http_websocket: websocket write timeout fails to fully disconnect

When writing to a websocket if a timeout occurred the underlying socket did not
get closed/disconnected. This patch makes sure the websocket gets disconnected
on a write timeout. Also a notice is logged stating that the websocket was
disconnected.

ASTERISK-24701 #close
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/4412/
........

Merged revisions 431669 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 431670 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/ari/ari_websockets.c
res/res_http_websocket.c