jpillora / jpillora/chisel

Need a way to override hardcoded max UDP message size of 9012

Open
#357 4 comments 0 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

The max UDP message size is currently hardcoded to 9012. We would like to increase it, since our max workload message size is greater.

Quick fix:

export CHISEL_UDP_MAX_SIZE=12000

share\tunnel\tunnel_out_ssh_udp.go:80
share\tunnel\tunnel_in_proxy_udp.go:83

const maxMTU = settings.EnvInt("UDP_MAX_SIZE", 9012)

or command line param e.g. --udp-max-size 12000

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

Start with share/tunnel/tunnel_out_ssh_udp.go:80 and share/tunnel/tunnel_in_proxy_udp.go:83, then inspect settings.EnvInt and the existing UDP_MAX_SIZE handling. Determine the supported configuration mechanism and verify that a larger configured value is applied consistently to both UDP paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.