mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 18:47:52 +00:00
copy request to buffer if LeaseSet is requested
This commit is contained in:
parent
96a9575049
commit
8c49f76534
@ -874,10 +874,12 @@ namespace util
|
|||||||
SendToDestination (leaseSet, port, buf, len);
|
SendToDestination (leaseSet, port, buf, len);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
memcpy (m_Buffer, buf, len);
|
||||||
|
m_BufferLen = len;
|
||||||
i2p::client::context.GetSharedLocalDestination ()->RequestDestination (destination);
|
i2p::client::context.GetSharedLocalDestination ()->RequestDestination (destination);
|
||||||
m_Timer.expires_from_now (boost::posix_time::seconds(HTTP_DESTINATION_REQUEST_TIMEOUT));
|
m_Timer.expires_from_now (boost::posix_time::seconds(HTTP_DESTINATION_REQUEST_TIMEOUT));
|
||||||
m_Timer.async_wait (boost::bind (&HTTPConnection::HandleDestinationRequestTimeout,
|
m_Timer.async_wait (boost::bind (&HTTPConnection::HandleDestinationRequestTimeout,
|
||||||
this, boost::asio::placeholders::error, destination, port, buf, len));
|
this, boost::asio::placeholders::error, destination, port, m_Buffer, m_BufferLen));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user