FS-10523: [freeswitch-core] Websocket disconnects prematurely #resolve

This commit is contained in:
Anthony Minessale 2017-07-20 02:55:38 -05:00
parent de67e8031c
commit 04067b4e21
2 changed files with 2 additions and 0 deletions

View File

@ -445,6 +445,7 @@ ssize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
if ((ssl_err = SSL_get_error(wsh->ssl, r)) != SSL_ERROR_WANT_WRITE) {
break;
}
ssl_err = 0;
}
} while (--sanity > 0 && wsh->block && wrote < bytes);

View File

@ -445,6 +445,7 @@ ssize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
if ((ssl_err = SSL_get_error(wsh->ssl, r)) != SSL_ERROR_WANT_WRITE) {
break;
}
ssl_err = 0;
}
} while (--sanity > 0 && wsh->block && wrote < bytes);