mikronode-ng icon indicating copy to clipboard operation
mikronode-ng copied to clipboard

Connection closing when last channel closes

Open germon opened this issue 8 years ago • 0 comments

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.

germon avatar Oct 30 '16 03:10 germon