From 0042cd911f53536f82c7b6046ff6e046360df86b Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 13 Jun 2005 04:40:17 +0000 Subject: [PATCH] Added 65K of buffer while still sending packets git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@387 726aef4b-f618-498e-8847-2d620e286838 --- DCCSock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCSock.cpp b/DCCSock.cpp index b1134465..e6fe6bee 100644 --- a/DCCSock.cpp +++ b/DCCSock.cpp @@ -15,7 +15,7 @@ void CDCCSock::ReadData(const char* data, int len) { memcpy(&iRemoteSoFar, m_sSendBuf.data(), 4); iRemoteSoFar = ntohl(iRemoteSoFar); - if (iRemoteSoFar >= m_uBytesSoFar) { + if ((iRemoteSoFar + 65536) >= m_uBytesSoFar) { SendPacket(); }