File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- # $OpenBSD: connection-timeout.sh,v 1.1 2023/01/17 10:02:34 djm Exp $
1
+ # $OpenBSD: connection-timeout.sh,v 1.2 2023/01/17 10:15:10 djm Exp $
2
2
# Placed in the Public Domain.
3
3
4
4
tid=" unused connection timeout"
@@ -58,10 +58,17 @@ sleep 8
58
58
check_ssh && fail " ssh unexpectedly present"
59
59
stop_ssh
60
60
61
- verbose " timeout after session"
61
+ verbose " session inhibits timeout"
62
+ rm -f $OBJ /copy.1
62
63
start_ssh
63
- ${REAL_SSH} -qoControlPath=$CTL -oControlMaster=no -Fnone somehost " exit 0" ||
64
- fail " session failed"
64
+ ${REAL_SSH} -qoControlPath=$CTL -oControlMaster=no -Fnone somehost \
65
+ " sleep 8; touch $OBJ /copy.1" &
66
+ check_ssh || fail " ssh unexpectedly missing"
67
+ wait
68
+ test -f $OBJ /copy.1 || fail " missing result file"
69
+
70
+ verbose " timeout after session"
71
+ # Session should still be running from previous
65
72
sleep 8
66
73
check_ssh && fail " ssh unexpectedly present"
67
74
stop_ssh
You can’t perform that action at this time.
0 commit comments