1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Merge PR #662: Fix that virtual NAT session is closed even if data remains.

This commit is contained in:
Davide Beatrici 2018-08-21 13:04:06 +02:00 committed by GitHub
commit 233b525d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5009,7 +5009,7 @@ void PollingNatTcp(VH *v, NAT_ENTRY *n)
if (n->TcpFinished)
{
// Disconnect if all data transmission has completed
if (n->SendFifo->size == 0)
if (n->SendFifo->size == 0 && n->RecvFifo->size == 0)
{
n->TcpStatus = NAT_TCP_SEND_RESET;
}