mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Attempted fix of on off UDP connection causing toxcore to disconnect from
the friend.
This commit is contained in:
parent
5593d7318a
commit
6315ff2362
|
@ -61,7 +61,7 @@
|
||||||
#define MAX_NUM_SENDPACKET_TRIES 8
|
#define MAX_NUM_SENDPACKET_TRIES 8
|
||||||
|
|
||||||
/* The timeout of no received UDP packets before the direct UDP connection is considered dead. */
|
/* The timeout of no received UDP packets before the direct UDP connection is considered dead. */
|
||||||
#define UDP_DIRECT_TIMEOUT (MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL)
|
#define UDP_DIRECT_TIMEOUT ((MAX_NUM_SENDPACKET_TRIES * CRYPTO_SEND_PACKET_INTERVAL) / 2)
|
||||||
|
|
||||||
#define PACKET_ID_PADDING 0 /* Denotes padding */
|
#define PACKET_ID_PADDING 0 /* Denotes padding */
|
||||||
#define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */
|
#define PACKET_ID_REQUEST 1 /* Used to request unreceived packets */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user