Skip to content

[pull] main from Hawthorne001:main#382

Merged
pull[bot] merged 2 commits intoMainbaseT:mainfrom
Hawthorne001:main
Feb 12, 2026
Merged

[pull] main from Hawthorne001:main#382
pull[bot] merged 2 commits intoMainbaseT:mainfrom
Hawthorne001:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

fraidev and others added 2 commits February 11, 2026 22:02
…enoland#32130)

Deno's zlib `Zlib::write` was calling `processCallback` synchronously,
while Node.js runs compression on the libuv threadpool and calls it
asynchronously. This caused several issues:

- destroy() couldn't propagate before subsequent write callbacks fired
- stream buffering didn't work correctly (needDrain was never set)
- flush operations didn't produce separate compressed chunks

This change removes the synchronous callback from Rust's `Zlib::write`
and schedules `processCallback` via `process.nextTick` from JavaScript.
A `_callbackPending` flag ensures backward compatibility with
Brotli/Zstd handles which still call the callback synchronously.

Enables 3 node_compat tests:
- test-zlib-destroy-pipe
- test-zlib-flush-drain
- test-zlib-flush-write-sync-interleaved
@pull pull bot locked and limited conversation to collaborators Feb 12, 2026
@pull pull bot added the ⤵️ pull label Feb 12, 2026
@pull pull bot merged commit 7b43bca into MainbaseT:main Feb 12, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants