Merge pull request #675 from majestrate/utp-timeout-2019-07-01

pump write when handshaking
This commit is contained in:
Jeff 2019-07-01 13:56:33 -04:00 committed by GitHub
commit d044de9e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}