Skip to content

Commit 2a0e6b4

Browse files
committed
Upgrade core engine to v3.3.22
Adaptive buffers, session eviction, 3x faster D2C flush, hot-reload fixes. Tightened keepalive (15s) and ACK (90s) timeouts.
1 parent fc61eb5 commit 2a0e6b4

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

.github/workflows/build-engine.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
telemt_commit:
77
description: 'Telemt commit hash to build from'
88
required: true
9-
default: '2be3e4a'
9+
default: '1544e3f'
1010
version_tag:
11-
description: 'Version tag (e.g. 3.3.18-2be3e4a)'
11+
description: 'Version tag (e.g. 3.3.22-1544e3f)'
1212
required: true
13-
default: '3.3.18-2be3e4a'
13+
default: '3.3.22-1544e3f'
1414

1515
env:
1616
REGISTRY: ghcr.io

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -516,21 +516,22 @@ mtproxymax telegram remove # Remove bot completely
516516
- **`--no-restart` flag**`secret add/remove/add-batch/remove-batch --no-restart` for scripting and automation
517517
- **TUI options** — Interactive menu options [6] and [7] for batch operations
518518

519-
### v1.0.0 — Engine v3.3.18
519+
### v1.0.0 — Engine v3.3.22
520520

521-
**Engine Upgrade (v3.3.3 → v3.3.18):**
521+
**Engine Upgrade (v3.3.3 → v3.3.22):**
522522

523-
- **Event-Driven ME** — Pool switches from busy-polling to event-driven, reducing CPU usage on idle/low-traffic servers
523+
- **Adaptive Buffers** — Dynamic buffer sizing: less RAM at low load, more throughput at high load
524+
- **Session Eviction** — Smarter cleanup of idle/dead connections under memory pressure
525+
- **Flow Performance** — 3x faster D2C flush (1500μs → 500μs) + immediate ACK flushing for lower latency
526+
- **Tighter Timeouts** — Keepalive 60s → 15s, ACK 300s → 90s for faster dead-connection cleanup
527+
- **Hot-Reload Fixes** — More reliable config reload without restart
528+
- **Configurable max_connections** — New option to cap total connections (default: 10000)
529+
- **Event-Driven ME** — Pool switches from busy-polling to event-driven, reducing CPU on idle servers
524530
- **CPU/RAM Hot-Path Optimization** — Removed hot-path obstacles for lower resource usage under load
525-
- **Hot-Reload Debounce** — Config reload requires 2 stable snapshots, preventing partial-write races during secret changes
526-
- **ME Writer Rebinding** — Lifecycle and consistency fixes: proper cleanup of stale writers, faster recovery after drops
527-
- **Source-IP ME Routing** — Routing decisions now factor in source IP for better multi-homed server support
528-
- **ME Gate Fixes** — Dead writer bindings cleaned up immediately instead of silently wasting resources
529-
- **ME Writer Selection** — Smarter active-by-endpoint writer picking for better DC routing
530-
- **DC-to-Client Tuning** — Fine-tuned data path from datacenter to client connections
531+
- **ME Writer Rebinding** — Lifecycle fixes: proper cleanup of stale writers, faster recovery after drops
532+
- **Source-IP ME Routing** — Routing decisions factor in source IP for multi-homed servers
531533
- **ME/DC Reroute** — Dynamic rerouting when preferred datacenter path degrades
532534
- **Per-Upstream Runtime Selftest** — Built-in diagnostics for upstream connectivity
533-
- **PROXY Real IP in Logs** — Real client IP now visible in PROXY protocol logs
534535

535536
### v1.0.0 — Per-User Limits + Telegram Bot
536537

mtproxymax.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ UPSTREAMS_FILE="${INSTALL_DIR}/upstreams.conf"
2222
BACKUP_DIR="${INSTALL_DIR}/backups"
2323
CONTAINER_NAME="mtproxymax"
2424
DOCKER_IMAGE_BASE="mtproxymax-telemt"
25-
TELEMT_MIN_VERSION="3.3.18"
26-
TELEMT_COMMIT="2be3e4a" # Pinned: v3.3.18Hot-reload debounce, ME writer rebinding fixes, src-IP routing, TPL-3 license
25+
TELEMT_MIN_VERSION="3.3.22"
26+
TELEMT_COMMIT="1544e3f" # Pinned: v3.3.22Adaptive buffers, session eviction, flow perf, hot-reload fixes
2727
GITHUB_REPO="SamNet-dev/MTProxyMax"
2828
REGISTRY_IMAGE="ghcr.io/samnet-dev/mtproxymax-telemt"
2929

@@ -1042,8 +1042,8 @@ metrics_whitelist = ["127.0.0.1", "::1"]
10421042
[timeouts]
10431043
client_handshake = 30
10441044
tg_connect = 10
1045-
client_keepalive = 60
1046-
client_ack = 300
1045+
client_keepalive = 15
1046+
client_ack = 90
10471047
10481048
[censorship]
10491049
tls_domain = "${domain}"

0 commit comments

Comments
 (0)