1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 17:35:37 +02:00

Improve protocol-level receiving code (#9617)

This commit is contained in:
sfan5
2020-04-20 23:22:00 +02:00
committed by GitHub
parent c2ac7b1a83
commit 8ef239b448
3 changed files with 142 additions and 146 deletions

View File

@@ -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);