1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 09:32:34 +00:00

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

This commit is contained in:
Anthony Minessale 2017-07-20 02:55:38 -05:00
parent 3ed616e4f1
commit 1a7c04da88
2 changed files with 2 additions and 0 deletions
libs/sofia-sip/libsofia-sip-ua/tport
src/mod/endpoints/mod_verto

@ -433,6 +433,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);

@ -433,6 +433,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);