jpillora / jpillora/chisel

Chisel Client Keeps Disconnecting Every 3-5 Minutes after Successful connection

Open
#560 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
16.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I'm experiencing an issue with the Chisel client where it disconnects every 1-5 minutes after Successful connection. However, after 30 to 60 minutes, the logs show that it's "Disconnected and Retrying Connection." It seems like the client isn't detecting the disconnection promptly and is retrying after a long delay.

Below are my logs ---

[server: XX.XX.XX.XX:30776] [server_fingerprint: ] [message: Creating reverse tunnel client]"}
2025/05/19 11:37:55 client: Connecting to ws://:30776
{"time":"2025-05-19T11:37:55.792112208Z","level":"INFO","msg":"[INFO] [http] [server_addr: 0.0.0.0] [server_port: 9002] [secured: true] [api_version: 2.13.0] [message: Starting Agent API server]"}
2025/05/19 11:37:56 client: Connected (Latency 139.950128ms)
2025/05/19 11:59:29 client: Disconnected
2025/05/19 11:59:29 client: Connection error: read tcp ip:39870-> Ip:30776: read: connection timed out
2025/05/19 11:59:29 client: Retrying in 100ms...
2025/05/19 11:59:30 client: Connected (Latency 140.147218ms)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is identified in the report. Start by reproducing the client disconnect and reviewing the connection-timeout and retry behavior corresponding to the supplied logs; done means the client detects the disconnect promptly and retries without the reported long delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.