Skip to content
Snippets Groups Projects
  • Joshua Colp's avatar
    7e65be4e
    res_http_websocket: Forcefully terminate on write errors. · 7e65be4e
    Joshua Colp authored
    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
    7e65be4e
    History
    res_http_websocket: Forcefully terminate on write errors.
    Joshua Colp authored
    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