mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
use 'available' method
This commit is contained in:
@@ -509,9 +509,7 @@ namespace transport
|
||||
// try to read more
|
||||
if (numReloads < 5)
|
||||
{
|
||||
boost::asio::socket_base::bytes_readable command (true);
|
||||
m_Socket.io_control (command);
|
||||
size_t moreBytes = command.get();
|
||||
size_t moreBytes = m_Socket.available();
|
||||
if (moreBytes)
|
||||
{
|
||||
if (moreBytes > NTCP_BUFFER_SIZE - m_ReceiveBufferOffset)
|
||||
|
||||
Reference in New Issue
Block a user