zlib: introduce pending close state
authorFedor Indutny <fedor.indutny@gmail.com>
Thu, 13 Feb 2014 13:17:59 +0000 (17:17 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Mon, 17 Feb 2014 21:11:05 +0000 (01:11 +0400)
commit829a9b8cba0680f1d451551e12491e7b0e1ea92f
tree2f03648b355b4167210bfaf253bfe0ecb006706c
parent86b8d84811484763b251b9a8a2b9e673964ea6b5
zlib: introduce pending close state

zlib should not crash in `close()` if the write is still in progress.

fix #7101
src/node_zlib.cc
test/simple/test-zlib-close-after-write.js [new file with mode: 0644]