ZaStoGram_desktop/Telegram
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh a4b44264bd Pace proxy connects architecturally instead of hammering the endpoint
The 17:42 log shows a proxy that works stably from Android failing 166
of 301 new desktop connects: the desktop client kills proxied connect
attempts after kMinConnectedTimeout (1s), reconnects, and bursts new
FakeTLS handshakes 150ms apart from every reconnecting session - the
exact pattern that gets an endpoint throttled.

Three coordinated changes:

- SessionPrivate::armWaitForConnectedTimer() floors the wait at the
  connections' own fullConnectTimeout() when a proxy is configured, so
  an attempt gets its whole budget (TCP with SYN retransmits + FakeTLS
  handshake) before being destroyed. Direct connections keep the short
  first wait.

- ResolvingConnection gives the last remaining route a patient 8s
  timeout (kOnlyRouteAttemptTimeout) instead of the 4s racing timeout:
  with no alternative route to race, killing the only attempt early
  gains nothing and costs a handshake. fullConnectTimeout() reflects
  the new budget.

- The open scheduler adds failure-driven adaptive spacing per endpoint,
  independent of the stealth connection pattern: each connect timeout
  doubles the gap between new opens (500ms..6s), each success halves
  it back toward zero. EndpointHealth feeds it from reportFailure()/
  reportSuccess(), so all sessions collectively approach a throttling
  proxy gently instead of stampeding it.
2026-07-06 18:42:45 +03:00
..
build Stable-only fork: force BetaChannel off after upstream 6.9.4 beta bump 2026-07-05 21:50:22 +03:00
cmake Merge remote-tracking branch 'upstream/dev' into dev 2026-07-05 21:47:12 +03:00
codegen@63ec3de727 Fix child field access in styles. 2026-06-09 14:27:37 +04:00
lib_base@dad317d45d Update submodules. 2026-07-03 07:00:51 +04:00
lib_crl@bc81a8ce1b One more attempt to restore context with ANGLE. 2026-06-22 12:16:34 +04:00
lib_lottie@49d67cf66d Toast icon revolution. 2026-03-28 14:48:58 +07:00
lib_qr@6fdf604614 Added initial ability to share QR code from user profile. 2024-09-10 02:00:26 +03:00
lib_rpl@c57cccffb0 Renamed rpl::start_with_ with rpl::on_. 2025-12-10 21:28:33 +03:00
lib_spellcheck@1f18c1e35b Make InputField menu extension with hooks. 2026-06-23 11:40:19 +04:00
lib_storage@ccdc72548a Version 5.2.3. 2024-07-07 09:01:58 +04:00
lib_tl@665160f915 Scheme generation: skip channelForbidden flags check. 2026-02-01 23:33:57 +04:00
lib_translate@09c1072622 Made Swift 6 local translation support optional. 2026-04-06 17:52:53 +03:00
lib_ui@5f214bbc4f Update submodules. 2026-07-03 07:00:51 +04:00
lib_webrtc@52636e86ea Fix joining unmuted on macOS. 2026-04-21 17:10:22 +07:00
lib_webview@b1011367be Fix build with GCC. 2026-06-09 22:21:08 +04:00
Resources Harden MTProxy compatibility flow 2026-07-05 22:43:21 +03:00
shaders Fixed invisible small group call videos. 2026-06-22 11:51:49 +03:00
SourceFiles Pace proxy connects architecturally instead of hammering the endpoint 2026-07-06 18:42:45 +03:00
Telegram Unify macOS icon in Icon name. 2026-05-25 14:07:23 +04:00
ThirdParty Add some more math formula guardrails. 2026-06-23 11:40:19 +04:00
CMakeLists.txt Harden MTProxy compatibility flow 2026-07-05 22:43:21 +03:00
configure.bat
configure.py Fix build on Linux 2024-06-22 11:32:36 +04:00
configure.sh
create.bat Create .mm source blanks for macOS modules. 2024-07-06 11:08:42 +04:00
Telegram.plist Fix the "Open With" entry on macOS. 2026-02-13 11:56:46 +04:00