summaryrefslogtreecommitdiff
path: root/scene/debugger
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-12-21 16:45:55 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-12-21 16:50:29 +0100
commitf8f56963943b91c0ad78fa4b7728596d459c5ac0 (patch)
tree36bcc8fa4115f11f14dc0a26287cdc8124816178 /scene/debugger
parent78f1513928bd5a683f0a0b40d4a4fec42fb1d4f3 (diff)
Correct size for PacketPeerStream in Debugger.
We wanted 8 MiB but we were getting 16 MiB (minus 4 bytes for the separator). We are now getting 8 MiB minus 4 bytes for encoding.
Diffstat (limited to 'scene/debugger')
-rw-r--r--scene/debugger/script_debugger_remote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/debugger/script_debugger_remote.cpp b/scene/debugger/script_debugger_remote.cpp
index c3c6a088cb..1b37a7dbdb 100644
--- a/scene/debugger/script_debugger_remote.cpp
+++ b/scene/debugger/script_debugger_remote.cpp
@@ -1257,7 +1257,7 @@ ScriptDebuggerRemote::ScriptDebuggerRemote() :
scene_tree(NULL) {
packet_peer_stream->set_stream_peer(tcp_client);
- packet_peer_stream->set_output_buffer_max_size(1024 * 1024 * 8); //8mb should be way more than enough
+ packet_peer_stream->set_output_buffer_max_size((1024 * 1024 * 8) - 4); // 8 MiB should be way more than enough, minus 4 bytes for separator.
phl.printfunc = _print_handler;
phl.userdata = this;