mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-09 06:23:47 +01:00
use 'available' method
This commit is contained in:
parent
1ad04bf8bf
commit
7dd159add2
1 changed files with 1 additions and 3 deletions
|
@ -509,9 +509,7 @@ namespace transport
|
||||||
// try to read more
|
// try to read more
|
||||||
if (numReloads < 5)
|
if (numReloads < 5)
|
||||||
{
|
{
|
||||||
boost::asio::socket_base::bytes_readable command (true);
|
size_t moreBytes = m_Socket.available();
|
||||||
m_Socket.io_control (command);
|
|
||||||
size_t moreBytes = command.get();
|
|
||||||
if (moreBytes)
|
if (moreBytes)
|
||||||
{
|
{
|
||||||
if (moreBytes > NTCP_BUFFER_SIZE - m_ReceiveBufferOffset)
|
if (moreBytes > NTCP_BUFFER_SIZE - m_ReceiveBufferOffset)
|
||||||
|
|
Loading…
Add table
Reference in a new issue