[asterisk-dev] [Code Review] 3481: Websocket: Add locking around session access and modification

Joshua Colp reviewboard at asterisk.org
Tue Apr 29 07:28:41 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3481/#review11778
-----------------------------------------------------------



branches/11/res/res_http_websocket.c
<https://reviewboard.asterisk.org/r/3481/#comment21582>

    Is there any need for this since it should always be non-NULL now?



branches/11/res/res_http_websocket.c
<https://reviewboard.asterisk.org/r/3481/#comment21583>

    I don't see a close_sent change in here.



branches/11/res/res_http_websocket.c
<https://reviewboard.asterisk.org/r/3481/#comment21584>

    I'd remove this or change the message - otherwise you'll get it twice.


- Joshua Colp


On April 28, 2014, 6:18 p.m., opticron wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3481/
> -----------------------------------------------------------
> 
> (Updated April 28, 2014, 6:18 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-23605
>     https://issues.asterisk.org/jira/browse/ASTERISK-23605
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> 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 accesses and modifications of the websocket session struct.
> 
> 
> Diffs
> -----
> 
>   branches/11/res/res_http_websocket.c 413007 
> 
> Diff: https://reviewboard.asterisk.org/r/3481/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> opticron
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140429/7f6551ac/attachment-0001.html>


More information about the asterisk-dev mailing list