summaryrefslogtreecommitdiff
path: root/src/network/connection.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-04-20 23:22:00 +0200
committerGitHub <noreply@github.com>2020-04-20 23:22:00 +0200
commit8ef239b448c52485cf94d334c1d8b1c6de37d976 (patch)
tree658ba4c8c2d7207befd8789d3ec63c738424cc0c /src/network/connection.cpp
parentc2ac7b1a83a581005a953551790e4582630af23f (diff)
downloadminetest-8ef239b448c52485cf94d334c1d8b1c6de37d976.tar.gz
minetest-8ef239b448c52485cf94d334c1d8b1c6de37d976.tar.bz2
minetest-8ef239b448c52485cf94d334c1d8b1c6de37d976.zip
Improve protocol-level receiving code (#9617)
Diffstat (limited to 'src/network/connection.cpp')
-rw-r--r--src/network/connection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index 15eda7725..3692e45a9 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -1173,7 +1173,9 @@ Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout,
m_bc_peerhandler(peerhandler)
{
- m_udpSocket.setTimeoutMs(5);
+ /* Amount of time Receive() will wait for data, this is entirely different
+ * from the connection timeout */
+ m_udpSocket.setTimeoutMs(500);
m_sendThread->setParent(this);
m_receiveThread->setParent(this);