mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 13:24:20 +00:00
don't send updated LeaseSet through a terminated session
This commit is contained in:
parent
1235d18d67
commit
1a9e11d86d
@ -817,7 +817,7 @@ namespace stream
|
|||||||
|
|
||||||
void Stream::SendUpdatedLeaseSet ()
|
void Stream::SendUpdatedLeaseSet ()
|
||||||
{
|
{
|
||||||
if (m_RoutingSession)
|
if (m_RoutingSession && !m_RoutingSession->IsTerminated ())
|
||||||
{
|
{
|
||||||
if (m_RoutingSession->IsLeaseSetNonConfirmed ())
|
if (m_RoutingSession->IsLeaseSetNonConfirmed ())
|
||||||
{
|
{
|
||||||
@ -838,6 +838,8 @@ namespace stream
|
|||||||
SendQuickAck ();
|
SendQuickAck ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
SendQuickAck ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Stream::ScheduleResend ()
|
void Stream::ScheduleResend ()
|
||||||
|
@ -61,7 +61,7 @@ namespace stream
|
|||||||
const int SYN_TIMEOUT = 200; // how long we wait for SYN after follow-on, in milliseconds
|
const int SYN_TIMEOUT = 200; // how long we wait for SYN after follow-on, in milliseconds
|
||||||
const size_t MAX_PENDING_INCOMING_BACKLOG = 128;
|
const size_t MAX_PENDING_INCOMING_BACKLOG = 128;
|
||||||
const int PENDING_INCOMING_TIMEOUT = 10; // in seconds
|
const int PENDING_INCOMING_TIMEOUT = 10; // in seconds
|
||||||
const int MAX_RECEIVE_TIMEOUT = 30; // in seconds
|
const int MAX_RECEIVE_TIMEOUT = 20; // in seconds
|
||||||
|
|
||||||
struct Packet
|
struct Packet
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user