]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Websocket: Add session locking and delay close
authorKinsey Moore <kmoore@digium.com>
Wed, 30 Apr 2014 13:06:47 +0000 (13:06 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 30 Apr 2014 13:06:47 +0000 (13:06 +0000)
commit064601a7ed93068623e60e92389438a530bb6622
tree153bcb72eaaa017df3af6bcee4aa5a781a1448a8
parent2fa93ecfdc75d1fa963ac4b5d02afa80126e7303
Websocket: Add session locking and delay close

This resolves a race condition where data could be written to a NULL
FILE pointer causing a crash as a websocket connection was in the
process of shutting down by adding locking to websocket session writes
and by deferring session teardown until session destruction.

(closes issue ASTERISK-23605)
Review: https://reviewboard.asterisk.org/r/3481/
Reported by: Matt Jordan
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@413124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_http_websocket.c