Skip to content

Make tunnel-ssh autoClose configurable #1529

@ultram4rine

Description

@ultram4rine

Is your feature request related to a problem? Please describe.
Hi! I was playing with connect over SSH feature in clickhouse-driver and found out that tunnel automatically closes and every action fails.

Describe the solution you'd like
Maybe it is possible to configure this setting in tunnel-ssh?

Describe alternatives you've considered
:(

Additional context
LOC:

Some repro scripts:
Tunnel from usage example
Clickhouse:

import { createClient } from "@clickhouse/client";

const client = createClient({
  url: "http://localhost:51212",
});

client.ping().then((res) => console.log(res));

client
  .query({ query: "SELECT 1" })
  .then((res) => console.log(res.json().then((j) => console.log(j.data))));

If set autoClose to true, tunnel will close every time clickhouse script executed, if set to false, it remains opened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew issue opened using "Feature request" template

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions