FS-10762: [freeswitch-core] Websocket logic error #resolve
This commit is contained in:
parent
c5e662c9bc
commit
34f0ab58c1
|
@ -1 +1 @@
|
|||
Mon Nov 13 13:48:40 CST 2017
|
||||
Tue Nov 14 12:28:03 CST 2017
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue