Merge pull request #24610 from Faless/emws_buf_size_fixes

Fix HTML5 WebSocket client buffers size.
This commit is contained in:
Rémi Verschelde 2018-12-27 09:45:25 +01:00 committed by GitHub
commit 32a7c05eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,8 +205,8 @@ int EMWSClient::get_max_packet_size() const {
}
EMWSClient::EMWSClient() {
_in_buf_size = GLOBAL_GET(WSC_IN_BUF);
_in_pkt_size = GLOBAL_GET(WSC_IN_PKT);
_in_buf_size = nearest_shift((int)GLOBAL_GET(WSC_IN_BUF) - 1) + 10;
_in_pkt_size = nearest_shift((int)GLOBAL_GET(WSC_IN_PKT) - 1);
_is_connecting = false;
_peer = Ref<EMWSPeer>(memnew(EMWSPeer));
/* clang-format off */