1234567891011121314151617181920212223 |
- // SUT is a client, i.e. it opens a socket and connects to the peer.
- // Afterwards the peer closes the connection.
- // Create a socket and set it to non-blocking.
- 0.000 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
- // Establish connection
- 0.100 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
- 0.100 > S 0:0(0) <mss 1460, nop, wscale 6, nop, nop, sackOK>
- 0.200 < S. 0:0(0) ack 1 win 5792 <...>
- 0.200 > . 1:1(0) ack 1 <...>
- // Server closes the connection
- 0.300 < F. 1:1(0) ack 1 win 260
- // Respond with ACK
- +0 > . 1:1(0) ack 2
- // Client closes the connection
- 0.320 close(4) = 0
- 0.320 > F. 1:1(0) ack 2
- +0 < . 2:2(0) ack 2
|