Commit 7c189d4
test: deflake sequential/test-tls-session-timeout
This patch:
- Splits the validation tests into a separate file and keep the
test focus on functional test of the sessionTimeout option.
- Increase the testing timeout to 5 seconds in case it takes too
long for the first connection to complete and the session is
already expired when the second connection is started.
- Use a specific `sessionIdContext` to ensure stable session ID.
- Fix the s_client arguments by specifying CA file and server name.
- Do not use the serialized session ticket for the first connection.
That was genearted years ago and may not work in different OpenSSL
versions. Let the first fresh connection generate the ticket.
- Use random port instead of the common port.
- Add a timeout before the second connection to ensure session ticket
is properly written.
- Log information to faciliate debugging.
PR-URL: #59423
Fixes: #26839
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jacob Smith <[email protected]>
Reviewed-By: Stefan Stojanovic <[email protected]>1 parent 269cd16 commit 7c189d4
File tree
2 files changed
+81
-57
lines changed- test
- parallel
- sequential
2 files changed
+81
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 38 | | |
63 | 39 | | |
64 | 40 | | |
65 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
| |||
77 | 56 | | |
78 | 57 | | |
79 | 58 | | |
80 | | - | |
| 59 | + | |
81 | 60 | | |
82 | 61 | | |
83 | 62 | | |
84 | 63 | | |
85 | 64 | | |
86 | 65 | | |
87 | 66 | | |
| 67 | + | |
88 | 68 | | |
89 | 69 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
106 | 73 | | |
107 | 74 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
111 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
112 | 85 | | |
113 | | - | |
| 86 | + | |
114 | 87 | | |
115 | 88 | | |
116 | 89 | | |
| |||
119 | 92 | | |
120 | 93 | | |
121 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
122 | 109 | | |
123 | 110 | | |
124 | 111 | | |
| |||
131 | 118 | | |
132 | 119 | | |
133 | 120 | | |
| 121 | + | |
134 | 122 | | |
135 | 123 | | |
136 | 124 | | |
| |||
143 | 131 | | |
144 | 132 | | |
145 | 133 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
158 | 146 | | |
159 | 147 | | |
160 | 148 | | |
0 commit comments