mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.96k stars 432 forks source link

Accept the packet with seq smaller than the last received packet #316

Open zouyonghao opened 3 years ago

zouyonghao commented 3 years ago

This patch fix the following situation

+0 < . 1:1001(1000) ack 1 win 60395
+0.1 read(4, ..., 1000) =  1000
+0 < . 501:1501(1000) ack 1 win 14648
+0.5 read(4, ..., 500) =  500