Commit 536e9ff
Allow ThreadedSocketAcceptor to be restarted after calling Stop() - fixes issue #196PR 586 Continued (connamara#959)
History:
* Original issue connamara#196
* First PR attempt connamara#351
* that PR was updated to PR connamara#586
* and then *that* PR was updated to PR connamara#959
Description from all the squashed commits:
* 196 - modifications to allow the acceptor to be restarted after a call to stop has been made
* 196 - changing to using ManulResetEvent rather than thread.sleep and ensuring it's disposed of properly
* 196 - need to call session.logon when starting the acceptor as sessions are disabled during the call to logout during acceptor.stop()
* 196 - changing ThreadedSocketReactor to use BeginAcceptTcpClient/EndAcceptTcpClient
* 196 - fixing issues introduced by dispose changes for 340
* 196 - modifications to allow the acceptor to be restarted after a call to stop has been made
* 196 - need to call session.logon when starting the acceptor as sessions are disabled during the call to logout during acceptor.stop()
* 196 - changing ThreadedSocketReactor to use BeginAcceptTcpClient/EndAcceptTcpClient
* Fixing appveyor issue with default parameters in a test
* Issue 196 - fixing test
* specify debug file location - Attempt to eliminate flakiness (connamara#586)
* Fix rebase of RestartingTheThreadedSocketAcceptorTests
* Remove duplicate function that popped up after rebase completed
* Updating tests to match latest remote updates
* Continued fixing test with latest remote changes
* Fixing more tests
* fix warnings and other minor changes
* fix dupe/unused usings
* fix nullable warnings
* remove unused vars
* refactor out the silly LogEvent function
* delete #region around the sole ctor
* change some properties to be expression-bodied
* use ObjectDisposedException.ThrowIf
* remove unneeded SocketOption assignments
* hard-wrap some long lines
* make AreSocketsRunning internal; only UT uses it
* release notes for connamara#195 / PR connamara#596 / PR connamara#959
* delete non-error write to the NonSessionLog
---------
Co-authored-by: Huw Jenkins <[email protected]>
Co-authored-by: Vlad Yourtchenko <[email protected]>
Co-authored-by: Grant Birchmeier <[email protected]>1 parent d875305 commit 536e9ff
File tree
8 files changed
+729
-137
lines changed- QuickFIXn
- UnitTests
8 files changed
+729
-137
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
123 | 134 | | |
124 | 135 | | |
125 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
136 | | - | |
| 134 | + | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
| |||
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
169 | 182 | | |
170 | 183 | | |
171 | 184 | | |
| |||
182 | 195 | | |
183 | 196 | | |
184 | 197 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 205 | | |
207 | 206 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 207 | + | |
| 208 | + | |
212 | 209 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 210 | + | |
218 | 211 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | | - | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
231 | 230 | | |
232 | 231 | | |
233 | | - | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | | - | |
| 253 | + | |
256 | 254 | | |
| 255 | + | |
257 | 256 | | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 269 | + | |
278 | 270 | | |
279 | | - | |
280 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| |||
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
295 | 317 | | |
296 | 318 | | |
297 | 319 | | |
| |||
363 | 385 | | |
364 | 386 | | |
365 | 387 | | |
366 | | - | |
| 388 | + | |
367 | 389 | | |
368 | 390 | | |
369 | | - | |
370 | | - | |
| 391 | + | |
| 392 | + | |
371 | 393 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
380 | 402 | | |
381 | | - | |
382 | 403 | | |
383 | 404 | | |
384 | 405 | | |
| |||
388 | 409 | | |
389 | 410 | | |
390 | 411 | | |
391 | | - | |
392 | | - | |
| 412 | + | |
| 413 | + | |
393 | 414 | | |
394 | 415 | | |
395 | 416 | | |
| |||
0 commit comments