Skip to content

Commit

Permalink
Merge pull request multipath-tcp#33 from pabeni/mptcp_mptcp-net-next
Browse files Browse the repository at this point in the history
mptcp: add regression test for disconnect()
  • Loading branch information
matttbe authored Jan 22, 2021
2 parents a6373aa + 8653fdf commit 3b67ae3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gtests/net/mptcp/regressions/unconnected_shutdown.pkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This test case covers the regression fixed by ("mptcp: fix locking in mptcp_disconnect()")
// shutdown a socket with connect pending, so that mptcp_disconnect()
// is inoked
--tolerance_usecs=100000
`../common/defaults.sh`

0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3
+0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
+0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0

+0.0 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
+0.0 > S 0:0(0) <mss 1460,sackOK,TS val 100 ecr 0,nop,wscale 8,mpcapable v1 flags[flag_h] nokey>

+0.0 shutdown(3, SHUT_WR) = 0

0 comments on commit 3b67ae3

Please sign in to comment.