mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
try to receive remanining message
This commit is contained in:
parent
3e59535a53
commit
1824a9a38e
4
SAM.cpp
4
SAM.cpp
@ -191,7 +191,7 @@ namespace client
|
|||||||
bytes_transferred += m_BufferOffset;
|
bytes_transferred += m_BufferOffset;
|
||||||
m_BufferOffset = 0;
|
m_BufferOffset = 0;
|
||||||
m_Buffer[bytes_transferred] = 0;
|
m_Buffer[bytes_transferred] = 0;
|
||||||
char * eol = strchr (m_Buffer, '\n');
|
char * eol = (char *)memchr (m_Buffer, '\n', bytes_transferred);
|
||||||
if (eol)
|
if (eol)
|
||||||
{
|
{
|
||||||
*eol = 0;
|
*eol = 0;
|
||||||
@ -240,7 +240,7 @@ namespace client
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogPrint (eLogWarning, "SAM incomplete message ", m_Buffer);
|
LogPrint (eLogWarning, "SAM incomplete message ", bytes_transferred);
|
||||||
m_BufferOffset = bytes_transferred;
|
m_BufferOffset = bytes_transferred;
|
||||||
// try to receive remaining message
|
// try to receive remaining message
|
||||||
Receive ();
|
Receive ();
|
||||||
|
Loading…
Reference in New Issue
Block a user