Commit graph

2 commits

Author SHA1 Message Date
Masamune3210
e59960c518 HTTP: implement streaming ReceiveData, fix GetDownloadSizeState, add cert chain stubs
- ReceiveData now streams body data in chunks via content_receiver + stream_cv
  instead of blocking until the full response body is downloaded; fixes downloads
  of large files that would time out before the body completed
- GetDownloadSizeState returns Content-Length from response headers immediately
  (via response_headers_future) rather than waiting for the progress callback,
  matching real hardware behavior
- GetResponseStatusCode and GetResponseHeader resolve from response_headers_future
  so they return as soon as headers arrive, not after full body download
- CancelConnection implemented: cancel_mutex + cancel_stop_fn set/cleared around
  client->send(); calling stop() aborts any in-flight request
- Cert chain stubs: CreateRootCertChain, DestroyRootCertChain, RootCertChainAddCert,
  RootCertChainAddDefaultCert, RootCertChainRemoveCert, SelectRootCertChain
- Shutdown fix: HTTP_C destructor sets async_shutdown and spin-waits for
  async_pending==0; async lambdas bail early on shutdown to prevent
  use-after-free of freed KernelSystem
- AM: remove redundant encrypted CIA check that blocked legitimate installs
- build-azahar.ps1: deploy now copies per-file with error counting instead of
  Move-Item so locked files (emulator open) produce warnings rather than silent failure

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 15:52:32 -05:00
Masamune3210
78e6aef690 add build script 2026-05-14 15:52:32 -05:00