From 2fd3d875dc3c7a6f53b4fd4e86af2e04b1ccfc2b Mon Sep 17 00:00:00 2001 From: LX3JL Date: Sun, 7 Nov 2021 11:07:30 +0100 Subject: [PATCH] xlxd 2.5.1 Corrected issue with IMRS repeataer disconnecting during very long QSO --- src/cimrsprotocol.cpp | 6 ++++-- src/main.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/cimrsprotocol.cpp b/src/cimrsprotocol.cpp index 4ad5fe3..1062646 100644 --- a/src/cimrsprotocol.cpp +++ b/src/cimrsprotocol.cpp @@ -126,10 +126,9 @@ void CImrsProtocol::Task(void) EncodePongPacket(&Buffer); m_Socket.Send(Buffer, Ip, IMRS_PORT); - // and our turn + // our turn EncodePingPacket(&Buffer); m_Socket.Send(Buffer, Ip, IMRS_PORT); - } else if ( IsValidConnectPacket(Buffer, &Callsign) ) { @@ -327,6 +326,9 @@ void CImrsProtocol::HandleQueue(void) m_Socket.Send(buffer, client->GetIp(), IMRS_PORT); //std::cout << "sending " << buffer.size() << " bytes to " << client->GetIp() << std::endl; } + // as DR-2X doesn't seems to respond to keepalives when receiving a stream + // tickle the keepalive timer here + client->Alive(); } g_Reflector.ReleaseClients(); } diff --git a/src/main.h b/src/main.h index ae10c8c..3f8f9d3 100644 --- a/src/main.h +++ b/src/main.h @@ -50,7 +50,7 @@ #define VERSION_MAJOR 2 #define VERSION_MINOR 5 -#define VERSION_REVISION 0 +#define VERSION_REVISION 1 // global ------------------------------------------------------