Fix early socket close in tcp-large-transfer example
This commit is contained in:
@@ -212,5 +212,8 @@ void WriteUntilBufferFull (Ptr<Socket> localSocket, uint32_t txSpace)
|
||||
}
|
||||
currentTxBytes += amountSent;
|
||||
}
|
||||
localSocket->Close ();
|
||||
if (currentTxBytes >= totalTxBytes)
|
||||
{
|
||||
localSocket->Close ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user