Forwarded from Surge TestFlight Feed
Beta Updates

Surge Engine

Performance

• Hysteria 2 and TUIC downloads are faster and use less CPU. Surge now acknowledges received packets in batches. On a 10 GbE test machine, Hysteria 2 went from 2.86 to 3.84 Gbps, with CPU dropping from 137% to 108%.
• Hysteria 2 and TUIC uploads no longer send the whole congestion window in one burst, which overran the server and caused packet loss. Several uploads sharing one connection now get a fair share.
• QUIC sessions carried over another proxy's UDP relay, such as Hysteria 2 over SOCKS5 or Shadowsocks, now send packets in batches. Their uploads are much faster.
• UDP over AnyTLS and VLESS no longer loses most of its upload at high rates. Queued TLS writes are now sent together.
• HTTP/3 tunnels (TrustTunnel with h3=true, MASQUE) and SSH no longer spend CPU formatting log lines for every packet.
• Outgoing UDP sockets and the SOCKS5 UDP relay now use larger socket buffers instead of the system default, so fewer datagrams are dropped under load.
• Opening many tunnels at once through MASQUE, TUIC, HTTP/2 CONNECT, TrustTunnel or VLESS gRPC no longer leaves some of them stalled or hanging. Surge now opens more connections when the server's stream limit is reached.

Reliability

• When a Hysteria 2, TUIC or MASQUE server stops answering, Surge now notices within about 3 seconds and opens a new connection. Before, new requests kept going to the dead connection, and downloads hung until the idle timeout.
• MASQUE UDP associations now survive their QUIC connection being closed by the server.
• MASQUE now falls back to 1,200-byte packets for 30 minutes when a connection that started at 1,350 bytes gets no reply. Paths with a smaller MTU can connect again. MASQUE also accepts larger DATAGRAM frames from the server.

Fixes

• Fixed TrustTunnel HTTP/2 downloads always breaking after a few seconds at full speed.
• Fixed Hysteria 2 uploads with obfuscation stalling for good a few seconds in.
• Fixed HTTP/3 uploads (TrustTunnel with h3=true) stalling for several seconds when many connections were busy.
• Fixed UDP datagrams over Hysteria 2, TUIC and MASQUE being dropped while a large upload ran on the same connection.
• Fixed HTTP/2 CONNECT-UDP:
• UDP sent faster than the connection could carry piled up and delayed later datagrams by seconds.
• Fast UDP uploads lost most of their packets.
• Envoy reset the connection during fast UDP downloads.
• Fixed TLS-based policies dropping the rest of an upload once the server had finished sending.
• Fixed HTTP/2 CONNECT losing the end of an upload when the server finished first.
• Fixed Trojan UDP to hostnames failing with sing-box servers.
• Fixed a crash with VLESS Vision.
• Fixed the Snell server, MTProto proxy and port forwarding failing to restart after a profile reload with "Address already in use". This was a regression.
• Fixed a crash when an HTTP API request had a field of the wrong type, such as a non-numeric timeout for /v1/scripting/evaluate. Such requests now get a 400 response.
• Snell server and Vector:
• Fixed the Snell v6 server dropping IPv6 UDP.
• Fixed the Vector server resetting the UDP stream for datagrams to other hostnames.
• Fixed Vector cutting the upload short when the server finished first.

Surge Mac

• The proxy editor now supports VLESS, including REALITY, gRPC and WebSocket. You can also import vless:// share links.

Surge iOS

Improvements

• The proxy editor now supports VLESS, including REALITY, gRPC and WebSocket, and can import vless:// share links.
• VMess, TUIC v4 and all Shadowsocks ciphers are back in the proxy editor. TUIC v4 is a version option of TUIC.
• QUIC uploads (Hysteria 2, TUIC) on lossy, high-latency networks are much faster.
• Downloads over QUIC on lossy networks use less memory.

Fixes

• Fixed MITM of HTTP/2 for many hosts pushing the Network Extension past its memory limit. This was a regression in recent betas.