Skip to content

Conversation

@d-mato
Copy link
Contributor

@d-mato d-mato commented Oct 6, 2025

Description

Makes the tunnel-ssh autoClose option configurable to support HTTP-based database drivers like ClickHouse.

Fixes #1529

Changes

  • Added optional tunnelOptions parameter to createSshTunnel method
  • Exposed close() method in return value for manual tunnel control
  • Default behavior unchanged (backward compatible)

Usage

// Custom tunnel options
const tunnel = await this.createSshTunnel(
  sshConfig,
  dbConfig,
  { autoClose: false }
);

// Manually close when needed
tunnel.close();

  • Your code builds clean without any errors or warnings
  • You have made the needed changes to the docs
  • You have written a description of what is the purpose of this pull request above

Copy link
Collaborator

@gjsjohnmurray gjsjohnmurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This looks good to me.

@gjsjohnmurray gjsjohnmurray merged commit 28fcd30 into mtxr:dev Oct 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make tunnel-ssh autoClose configurable

2 participants