Dispose SSH connection when disconnecting & fixed disconnection events handling#3071
Dispose SSH connection when disconnecting & fixed disconnection events handling#3071sebjulliand wants to merge 8 commits intomasterfrom
Conversation
Signed-off-by: Seb Julliand <[email protected]>
|
👋 A new build is available for this PR based on 09fc3bf. |
|
@sebjulliand I have tested the vsix and it solved my issue. I also tested the steps described in #2578, and the connection popup only appeared once so also good. Sidenote: While running on the vsix version, I got the message "Code for IBM i will not function correctly until the temporary library has been corrected in the settings." I looked at the settings but did not see any anomalies. The temp library setting is filled with ILEDITOR. |
@arco400 thank you for your test and your feedback; much appreciated! |
SanjulaGanepola
left a comment
There was a problem hiding this comment.
@sebjulliand Glad you found the main issue with this. I was also running into this problem often!
I did notice one regression which we should address as I confirmed that it doesn't happen on the master branch.
While running on the vsix version, I got the message "Code for IBM i will not function correctly until the temporary library has been corrected in the settings."
As for this specific error, I wasn't running into this on my end so not sure what may have caused it for you both.
Signed-off-by: Seb Julliand <[email protected]>
|
@SanjulaGanepola It should be just fine now 🤞🏻 |
|
@sebjulliand After some more testing, I believe the issue I found is actually not due to the changes in this PR, but actually from the big Mapepire PR. The steps to reproduce:
The idea is to have the SQL job connected, then disconnect your VPN, and try to execute some SQL. Looks like when Side note: Can we pull in |
I'm definitely adding it; it's been bugging me so far not having these types 😛 |
Signed-off-by: Seb Julliand <[email protected]>
|
👋 A new build is available for this PR based on 5303aac. |
Signed-off-by: Seb Julliand <[email protected]>
Signed-off-by: Seb Julliand <[email protected]>
Signed-off-by: Seb Julliand <[email protected]>
Signed-off-by: Seb Julliand <[email protected]>
Signed-off-by: Seb Julliand <[email protected]>
|
@SanjulaGanepola I think I fixed it all. Dropping the VPN at any point in time should not be a problem anymore. I also found what the issue was with To reproduce the bug, you simply need to connect, disconnect, connect again to the same system. Hopefully it's all good now 🙏🏻 |
Changes
Fixes #2578
This PR fixes:
endhappens, then a normal disconnection happened (i.e. the user manually disconnected)errorhappens it means the connection was dropped on the client or server sideThe connection not being disposed was causing #2578.
A broken connection will now only show the reconnect dialog once, for the connection that actually dropped.
How to test this PR
Checklist