mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
Merge pull request #675 from majestrate/utp-timeout-2019-07-01
pump write when handshaking
This commit is contained in:
commit
d044de9e73
@ -230,7 +230,7 @@ namespace llarp
|
||||
{
|
||||
if(state != eSessionReady)
|
||||
return false;
|
||||
const auto dlt = parent->Now() - lastActive;
|
||||
const auto dlt = parent->Now() - lastSend;
|
||||
return dlt >= 10000;
|
||||
}
|
||||
|
||||
@ -278,6 +278,8 @@ namespace llarp
|
||||
ptr += s;
|
||||
sz -= s;
|
||||
}
|
||||
if(state != eSessionReady)
|
||||
PumpWrite();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user