The GitHub Actions job "Link Validator" on pekko-http.git/gzip-1.4 has failed.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
78f96743fe37a777483bfb6719db7dd9bb28cd9f / PJ Fanning 
<[email protected]>
Ensure deflater/inflater end() is called in DeflateCompressor and 
GzipCompressor (#1142)

* Ensure deflater/inflater end() is called in DeflateCompressor and 
GzipCompressor

- DeflateCompressor: add deflaterEnded flag + idempotent endDeflater() method;
  call endDeflater() in finishWithBuffer() instead of deflater.end() directly
- GzipDecompressor: add postStop() calling inflater.end() + add createInflater()
  factory method for testability
- StreamUtils.byteStringTransformer: add optional cleanup callback, call it in
  postStop() when the stage is stopped before onUpstreamFinish()
- Encoder.singleUseEncoderFlow: pass cleanup callback that calls endDeflater()
  on DeflateCompressor instances to handle stream cancellation/failure
- DeflateSpec: add tests for deflater cleanup on normal finish and cancellation
- GzipSpec: add tests for inflater cleanup on normal finish and cancellation,
  and deflater cleanup on normal finish and cancellation

* compile issues

* Add explicit cleanup() to Compressor/DeflateCompressor; GzipCompressor 
inherits it

* revert GzipCompressor changes

* Update GzipSpec.scala

* Update GzipSpec.scala

* Update GzipSpec.scala

* review comments

* Refactor onUpstreamFinish method for clarity

---------

Co-authored-by: copilot-swe-agent[bot] 
<[email protected]>

Report URL: https://github.com/apache/pekko-http/actions/runs/29094445375

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to