Commit 4c85f6bb authored by Robert Ricci's avatar Robert Ricci

Skip FINs - this reduces the number of "Got an ACK, but I don't know of any

outstanding packets" exceptions in Kevin's trace.
parent eef6cf12
......@@ -234,6 +234,14 @@ void PacketSensor::localAck(PacketInfo * packet)
// Right now, we don't know whether or not this ACK is for a retransmitted
// packet - we will find out later
isRetransmit = false;
// Ignore FIN
if (packet->tcp->fin) {
logWrite(SENSOR_DETAIL, "PacketSensor::localAck() Skipping FIN");
ackValid = false;
return;
}
if (state->isAckValid() && state->getState() == StateSensor::ESTABLISHED)
{
// Set it to true, and then set it to false if we encounter an error.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment