Evgeny
a4f86a322d
fix: backpressure data loss in socks/http proxy + comprehensive test
socks_proxy (client side):
- tx_buf buffering on send_data failure in RELAY path, retry in tx_waiter_cb
- process_http_request: version_str null-term fix (memcpy(vlen)+explicit \0)
- process_http_request: assemble hdr+body+extra into heap pkt, atomic send
- socks_proxy_handle_etcp: alloc failure logs write_queue state + byte counters
tcp_proxy_server (exit node):
- read_queue_drain_cb: tx_buf buffering on backpressure, retry_timer (500ms, force=1)
- on_fin_cb: defer FIN when read_queue+tx_buf has pending data (dst_fin_deferred)
- handle_data + drain_cb: per-stream byte counters (sent/recv/relayed/drain_count)
- on_fin_cb/on_error_cb: detailed state logging (counters, queues, buffers)
test_socks_http_proxy:
- 4 workers: socks_ipv4, socks_domain (DNS resolution via SOCKS), http_proxy, https_connect
- 4 file sizes: 1KB, 100KB, 1MB, 10MB — deterministic content, byte-by-byte cmp -s
- HTTPS server with self-signed cert, POST/echo, HEAD, OPTIONS
- 51/51 tests PASS
2026-07-03 14:29:17 +03:00
..
2026-06-01 12:58:31 +03:00
2026-06-09 22:20:25 +03:00
2026-07-03 14:29:17 +03:00
2026-06-07 21:01:44 +03:00
2026-07-02 19:30:08 +03:00
2026-07-02 19:30:08 +03:00
2026-07-02 17:37:17 +03:00
2026-07-03 12:48:51 +03:00
2026-06-29 20:01:40 +03:00
2026-07-02 20:40:08 +03:00
2026-07-02 14:17:42 +03:00
2026-06-29 20:01:40 +03:00
2026-06-29 20:01:40 +03:00
2026-05-14 03:50:01 +03:00
2026-07-02 17:14:38 +03:00
2026-06-29 20:01:40 +03:00
2026-06-11 11:06:31 +03:00
2026-06-11 11:06:31 +03:00
2026-07-02 20:31:32 +03:00
2026-06-29 23:15:38 +03:00
2026-06-29 20:04:20 +03:00
2026-06-29 20:04:20 +03:00
2026-07-02 17:14:38 +03:00
2026-07-02 11:12:14 +03:00
2026-07-02 13:35:22 +03:00
2026-06-29 20:01:40 +03:00
2026-07-01 20:33:11 +03:00
2026-06-29 20:01:40 +03:00
2026-06-25 09:29:44 +03:00
2026-07-02 17:14:38 +03:00
2026-05-10 14:00:49 +03:00
2026-07-01 23:51:31 +03:00
2026-06-02 18:02:37 +03:00
2026-05-10 00:05:23 +03:00
2026-05-10 00:05:23 +03:00
2026-07-02 20:31:32 +03:00
2026-06-29 20:01:40 +03:00
2026-07-02 19:30:08 +03:00
2026-07-01 18:53:23 +03:00
2026-06-22 15:53:24 +03:00
2026-06-22 15:53:24 +03:00
2026-07-02 19:30:08 +03:00
2026-07-02 18:58:34 +03:00
2026-06-29 20:01:40 +03:00
2026-06-04 12:01:55 +03:00
2026-05-10 14:00:49 +03:00
2026-06-22 15:53:24 +03:00
2026-06-22 15:53:24 +03:00
2026-06-14 10:00:02 +03:00
2026-06-14 10:00:02 +03:00
2026-06-16 01:19:58 +03:00
2026-06-16 01:19:58 +03:00
2026-07-02 13:35:22 +03:00
2026-06-14 10:00:02 +03:00
2026-06-14 10:00:02 +03:00
2026-06-14 10:00:02 +03:00
2026-05-31 00:53:19 +03:00
2026-07-02 18:58:34 +03:00
2026-05-31 15:58:30 +03:00
2026-07-03 12:48:51 +03:00
2026-06-29 20:01:40 +03:00