mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
always call receive handler from a streaming thread
This commit is contained in:
parent
0e6b7712a9
commit
3de4010a47
2 changed files with 8 additions and 14 deletions
|
@ -878,7 +878,7 @@ namespace util
|
|||
|
||||
void HTTPConnection::HandleStreamReceive (const boost::system::error_code& ecode, std::size_t bytes_transferred)
|
||||
{
|
||||
if (bytes_transferred)
|
||||
if (!ecode)
|
||||
{
|
||||
boost::asio::async_write (*m_Socket, boost::asio::buffer (m_StreamBuffer, bytes_transferred),
|
||||
boost::bind (&HTTPConnection::HandleWrite, this, boost::asio::placeholders::error));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue