Files
node/lib
Anna Henningsen 64415564de zlib: remove _closed in source
This is purely cleanup and carries no visible behavioural changes.
Up to now, `this._closed` was used in zlib.js as a
synonym of `!this._handle`. This change makes this connection
explicit and removes the `_closed` property from zlib streams,
as the previous duplication has been the cause of subtle errors
like https://github.com/nodejs/node/issues/6034.

This also makes zlib errors lead to an explicit `_close()` call
rather than waiting for garbage collection to clean up the handle,
thus returning memory resources earlier in the case of an error.

Add a getter for `_closed` so that the property remains accessible
by legacy code.

PR-URL: https://github.com/nodejs/node/pull/6574
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-06-02 22:36:59 +10:00
..
2015-10-08 17:32:08 -07:00
2016-01-26 20:53:05 +01:00
2016-05-03 20:20:36 -04:00
2016-03-21 15:48:51 -07:00
2016-04-26 12:16:07 -07:00
2016-04-26 12:16:00 -07:00
2016-05-17 08:51:31 -05:00
2016-05-17 08:01:12 -05:00
2016-05-17 08:16:09 -05:00
2015-01-31 23:47:29 -05:00
2016-06-02 22:36:59 +10:00