mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Improve protocol-level receiving code (#9617)
This commit is contained in:
parent
c2ac7b1a83
commit
8ef239b448
3 changed files with 142 additions and 146 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue