Skip to content

feat(edge): configure slowloris timeouts, reset timed out sockets, and enable proxy sni - #9

Merged
ATLURI0001 merged 1 commit into
mainfrom
feat/slowloris-timeouts-and-upstream-sni
Nov 15, 2026
Merged

ATLURI0001 merged 1 commit into
mainfrom
feat/slowloris-timeouts-and-upstream-sni

Conversation

@ATLURI0001

Copy link
Copy Markdown
Owner

Architectural Overview & Diagnostic Format

Architecture Context

Edge reverse-proxy gateways must defend upstream clusters from slow-rate denial-of-service (Slowloris/Slow-Read attacks) while ensuring TLS Server Name Indication (SNI) is preserved when routing to encrypted upstream pools.

Diagnostic Additions

  1. Client Timeout Defense (Slowloris Mitigation):
    • client_body_timeout 15s: Restricts body write pauses to 15 seconds.
    • client_header_timeout 15s: Restricts header transmission intervals to 15 seconds.
    • send_timeout 15s: Clamps client transmission wait time.
    • reset_timedout_connection on: Reclaims worker sockets immediately via TCP RST on timeout.
  2. Upstream TLS SNI Propagation (proxy_ssl_server_name on):
    • Enables Server Name Indication header forwarding to TLS upstreams in proxy.conf, ensuring correct virtual host routing.

Verification & Test Evidence

  • Suite: python -m pytest tests/test_project.py
  • Results: Passed all 18 test cases including new test_slowloris_timeouts_and_socket_resets in 0.08s.

@ATLURI0001
ATLURI0001 merged commit edb8ee5 into main Nov 15, 2026
0 of 2 checks passed
@ATLURI0001
ATLURI0001 deleted the feat/slowloris-timeouts-and-upstream-sni branch November 15, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant