Bug 250360 - [tcp] connections should be closed if a same packet without FIN is received after FIN received
Summary: [tcp] connections should be closed if a same packet without FIN is received a...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: Michael Tuexen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-15 08:15 UTC by Yong-Hao Zou
Modified: 2020-10-18 10:36 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yong-Hao Zou 2020-10-15 08:15:45 UTC
The connection should be closed with the following packetdrill script

``
// Establish a connection.
0   socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
+0  setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0

+0  bind(3, ..., ...) = 0
+0  listen(3, 1) = 0

+0  < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop,nop,wscale 7>
+0 ~ +1  > S. 0:0(0) ack 1 <...>

+.1 < . 1:1(0) ack 1 win 32792
+0  accept(3, ..., ...) = 4
+0 fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0

+0 < . 1:3962(3961) ack 1 win 28535
+0 < F. 3962:6683(2721) ack 1 win 45489

+0.1 read(4, ..., 177) =  177
+0.1 write(4, ..., 177) =  177
+0.1 write(4, ..., 113) =  113
+0 < . 3962:7468(3506) ack 1 win 29046
+0.1 write(4, ..., 113) =  -1 // current we got 113

```