Commit 658cfa9
committed
Network,TorHandshakes: handle handshake fail
Previously, TorHandshakes used failwith to raise handshake
failed error. Since we need to catch it, as a result of
replacing generic try-with which lead to a red CI in the
PR, we had to define its special excpetion and catch that.
```
The active test run was aborted. Reason: Test host process crashed :
Unhandled exception. System.Exception: Key handshake failed!
at
NOnion.TorHandshakes.NTorHandshake.NOnion-TorHandshakes-IHandshake-GenerateKdfResult(ICreatedCell
serverSideData) in
/home/runner/work/NOnion/NOnion/NOnion/TorHandshakes/NTorHandshake.fs:line
112
at
<StartupCode$NOnion>[email protected](Unit
unitVar) in
/home/runner/work/NOnion/NOnion/NOnion/Network/TorCircuit.fs:line
352
at
Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1
ctxt, TResult result1, FSharpFunc`2 part2) in
F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 398
at
NOnion.Utility.MailboxResultUtil.TryExecuteAsyncAndReplyAsResult@25-3.Invoke(AsyncActivation`1
ctxt) in
/home/runner/work/NOnion/NOnion/NOnion/Utility/MailboxUtil.fs:line
25
at
NOnion.Utility.MailboxResultUtil.TryExecuteAsyncAndReplyAsResult@24-6.Invoke(AsyncActivation`1
ctxt) in
/home/runner/work/NOnion/NOnion/NOnion/Utility/MailboxUtil.fs:line
24
at
<StartupCode$NOnion>[email protected](AsyncActivation`1
ctxt) in
/home/runner/work/NOnion/NOnion/NOnion/Network/TorCircuit.fs:line
965
at
<StartupCode$NOnion>[email protected](AsyncActivation`1
ctxt) in
/home/runner/work/NOnion/NOnion/NOnion/Network/TorCircuit.fs:line
950
at
<StartupCode$FSharp-Core>[email protected](AsyncActivation`1
ctxt) in
F:\workspace\_work\1\s\src\fsharp\FSharp.Core\mailbox.fs:line
303
at
Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2
firstAction) in
F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line
109
--- End of stack trace from previous location
where exception was thrown ---
at
[email protected](ExceptionDispatchInfo
edi) in
F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line
907
at
Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2
firstAction) in
F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line
109
at
<StartupCode$FSharp-Core>[email protected](Object
o) in
F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line
165
at
System.Threading.QueueUserWorkItemCallback.Execute()
at
System.Threading.ThreadPoolWorkQueue.Dispatch()
```1 parent d16f92f commit 658cfa9
File tree
4 files changed
+24
-9
lines changed- NOnion
- Network
- TorHandshakes
4 files changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
196 | 208 | | |
197 | 209 | | |
198 | 210 | | |
| |||
332 | 344 | | |
333 | 345 | | |
334 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
335 | 351 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
343 | 355 | | |
344 | 356 | | |
345 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
0 commit comments