diff options
author | Joshua Colp <jcolp@digium.com> | 2015-12-30 18:43:34 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-12-30 18:43:34 -0600 |
commit | 4e5250d5c29a4a43531522efb6de234759e8dbfb (patch) | |
tree | 70dca47003439f9e3392d287c8d07d4af3004231 /include/asterisk | |
parent | 410c5ee0fc5f1ba8bc25ca6e2cdc11527f36b1b7 (diff) | |
parent | 3bddcc0219bbe18ae925e1d41301fa9001530804 (diff) |
Merge "res_http_websocket.c: prevent avoidable disconnections caused by write errors"
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/http_websocket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/http_websocket.h b/include/asterisk/http_websocket.h index 23492ff95..cd49dbe48 100644 --- a/include/asterisk/http_websocket.h +++ b/include/asterisk/http_websocket.h @@ -266,12 +266,12 @@ AST_OPTIONAL_API(int, ast_websocket_read_string, * \param session Pointer to the WebSocket session * \param opcode WebSocket operation code to place in the frame * \param payload Optional pointer to a payload to add to the frame - * \param actual_length Length of the payload (0 if no payload) + * \param payload_size Length of the payload (0 if no payload) * * \retval 0 if successfully written * \retval -1 if error occurred */ -AST_OPTIONAL_API(int, ast_websocket_write, (struct ast_websocket *session, enum ast_websocket_opcode opcode, char *payload, uint64_t actual_length), { errno = ENOSYS; return -1;}); +AST_OPTIONAL_API(int, ast_websocket_write, (struct ast_websocket *session, enum ast_websocket_opcode opcode, char *payload, uint64_t payload_size), { errno = ENOSYS; return -1;}); /*! * \brief Construct and transmit a WebSocket frame containing string data. |