FS-10762: [freeswitch-core] Websocket logic error #resolve

This commit is contained in:
Anthony Minessale 2017-11-14 12:28:25 -06:00 committed by Muteesa Fred
parent c5e662c9bc
commit 34f0ab58c1
3 changed files with 7 additions and 3 deletions

View File

@ -1 +1 @@
Mon Nov 13 13:48:40 CST 2017
Tue Nov 14 12:28:03 CST 2017

View File

@ -442,7 +442,9 @@ ssize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
}
if (r == -1) {
if ((ssl_err = SSL_get_error(wsh->ssl, r)) != SSL_ERROR_WANT_WRITE) {
ssl_err = SSL_get_error(wsh->ssl, r);
if (ssl_err != SSL_ERROR_WANT_WRITE && ssl_err != SSL_ERROR_WANT_READ) {
break;
}
ssl_err = 0;

View File

@ -442,7 +442,9 @@ ssize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
}
if (r == -1) {
if ((ssl_err = SSL_get_error(wsh->ssl, r)) != SSL_ERROR_WANT_WRITE) {
ssl_err = SSL_get_error(wsh->ssl, r);
if (ssl_err != SSL_ERROR_WANT_WRITE && ssl_err != SSL_ERROR_WANT_READ) {
break;
}
ssl_err = 0;