mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 21:00:06 +00:00
Kernel: Ignore duplicate SYN packets
When receiving a SYN packet for a connection that's in the "SYN received" state we should ignore the duplicate SYN packet instead of closing the connection. This can happen when we didn't accept the connection in time and our peer has sent us another SYN packet because it thought that the initial SYN packet was lost.
This commit is contained in:
committed by
Andreas Kling
parent
3fc75088a2
commit
377b06c8ac
@@ -503,6 +503,9 @@ void handle_tcp(const IPv4Packet& ipv4_packet, const Time& packet_timestamp)
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
case TCPFlags::SYN:
|
||||
dbgln("handle_tcp: ignoring SYN for partially established connection");
|
||||
return;
|
||||
default:
|
||||
dbgln("handle_tcp: unexpected flags in SynReceived state ({:x})", tcp_packet.flags());
|
||||
|
||||
Reference in New Issue
Block a user