mikronode-ng
mikronode-ng copied to clipboard
Connection closing when last channel closes
I noticed all open issues are channel related, so I thought I would throw in another one.
The app opens one connection to the router with " closeOnDone: false" and "closeOnTimeout: true". For each command the app opens a channel with "closeOnDone: true".
There is a problem with the connection auto-closing when the last channel is done and auto-closed. Regardless of the connection's "closeOnDone" attribute.
To avoid this I open a dummy channel with "closeOnDone = false". It's never used but it does the job of keeping the connection open.
This is less critical than issue 11. I've had the 'dummy channel' workaround in place for a while. But thanks for taking a look at this when you dive into the channel issues.
Gerald.