]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: When shutting down a session don't close closed socket 79/1079/2
authorJoshua Colp <jcolp@digium.com>
Thu, 13 Aug 2015 10:26:51 +0000 (07:26 -0300)
committerJoshua Colp <jcolp@digium.com>
Thu, 13 Aug 2015 10:36:32 +0000 (05:36 -0500)
commit495dfb24b732bf74b85119c0a081bff83d06a3f1
tree319a35481331ab628f927e3e400f3b911a1a215c
parente1e37e47fd011398b406efe4d4b1630b8d537859
res_http_websocket: When shutting down a session don't close closed socket

Due to the use of ast_websocket_close in session termination it is
possible for the underlying socket to already be closed when the
session is terminated. This occurs when the close frame is attempted
to be written out but fails.

Change-Id: I7572583529a42a7dc911ea77a974d8307d5c0c8b
res/res_http_websocket.c