Skip to content

fix: handle SURFboard chunked body resets under legacy TLS#307

Merged
itsDNNS merged 1 commit intomainfrom
fix/surfboard-legacy-phase2-hardening-184
Apr 1, 2026
Merged

fix: handle SURFboard chunked body resets under legacy TLS#307
itsDNNS merged 1 commit intomainfrom
fix/surfboard-legacy-phase2-hardening-184

Conversation

@itsDNNS
Copy link
Copy Markdown
Owner

@itsDNNS itsDNNS commented Apr 1, 2026

Summary

  • normalize SURFboard ChunkedEncodingError body-read resets into the existing transport retry path
  • keep the fix scoped to the SURFboard HNAP helper so legacy-TLS login retries work for both phase-1 and phase-2 response reads
  • add regression coverage for helper normalization and legacy-TLS retry after an HTTP 200 followed by a socket reset

Testing

  • python -m py_compile app/drivers/surfboard.py tests/test_surfboard_driver.py
  • .venv/bin/pytest -q tests/test_surfboard_driver.py -k 'chunked or LegacyTLSFallback'
  • .venv/bin/pytest -q tests/test_surfboard_driver.py
  • .venv/bin/pytest -q tests/ --ignore=tests/e2e

Closes #184.

@itsDNNS itsDNNS marked this pull request as ready for review April 1, 2026 06:48
@itsDNNS itsDNNS merged commit 7cf9090 into main Apr 1, 2026
8 checks passed
@itsDNNS itsDNNS deleted the fix/surfboard-legacy-phase2-hardening-184 branch April 1, 2026 06:52
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.

Unable to connect to SB8200

1 participant