zlib binding cleanup
authorisaacs <i@izs.me>
Tue, 10 Jan 2012 20:07:30 +0000 (12:07 -0800)
committerisaacs <i@izs.me>
Wed, 11 Jan 2012 00:42:52 +0000 (16:42 -0800)
commit8cca30f31b2b71812e340692f2892fd5bf9df5db
tree496890119e0c962e05eb79b55155704c4aebaa2a
parent290bc0c067a63a90f3c02c4cffc4892fad7562aa
zlib binding cleanup

* Add assert to prevent parallel writes
* Embed request object instead of using new/delete
* Remove unnecessary WorkReqWrap in favor of uv_work_t
* Use container_of instead of req->data

Along with 2d8af39accc6e1a863aa60ed80289508f3df50e8 and
0ad2717fd88e5ddd28a1c245c78b37bfe9aa4197, this should Fix #2504.
src/node_zlib.cc