The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / src / node_zlib.cc @ 31c510ca

History | View | Annotate | Download (15.8 KB)

# Date Author Comment
829a9b8c 02/17/2014 04:11 PM Fedor Indutny

zlib: introduce pending close state

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

fix #7101

5c832e44 02/08/2014 06:31 PM Timothy J Fontaine

src: refactor buffer bounds checking

Consolidate buffer bounds checking logic into Buffer namespace and use
it consistently throughout the source.

dc3c2d12 07/01/2013 01:37 PM Brian White

zlib: level can be negative

This is a back-port of commit e945903 from the master branch.

cb87920b 02/28/2013 10:58 AM Ben Noordhuis

Merge remote-tracking branch 'origin/v0.8'

Conflicts:
AUTHORS
ChangeLog
deps/uv/src/unix/pipe.c
lib/http.js
src/node_version.h

51f6e6a9 02/25/2013 05:45 PM Ben Noordhuis

src, test: downgrade to v8 3.14 api

ef945219 02/21/2013 06:08 PM Ben Noordhuis

zlib: fix assert on bad input

The following test case occasionally triggered an assert because
write_in_progress_ didn't get cleared on error:

$ cat test.js
require('zlib').gunzip('BAM', console.log);
setTimeout(gc, 10);
$ while true; do node --expose-gc test.js || break; done...
5cc3569f 02/06/2013 07:29 PM isaacs

Merge remote-tracking branch 'ry/v0.8' into master

Conflicts:
AUTHORS
ChangeLog
deps/npm/html/api/bin.html
deps/npm/html/api/bugs.html
deps/npm/html/api/commands.html
deps/npm/html/api/config.html
deps/npm/html/api/deprecate.html
deps/npm/html/api/docs.html...

6b99fd23 02/05/2013 04:26 PM Ben Noordhuis

zlib: pass object size hint to V8

Inform V8 that the zlib context object is tied to a large off-heap buffer.

This makes the GC run more often (in theory) and improves the accuracy of
--trace_external_memory.

8d146689 02/05/2013 04:25 PM Ben Noordhuis

zlib: reduce memory consumption, release early

In zlibBuffer(), don't wait for the garbage collector to reclaim the zlib memory
but release it manually. Reduces memory consumption by a factor of 10 or more
with some workloads.

Test case:

function f() {...
d7bf7ed9 01/22/2013 07:34 AM Ben Noordhuis

zlib: don't assert on malformed dictionary

Handle Z_DATA_ERROR errors from inflateSetDictionary() gracefully.
Fixes the following assertion:

node: ../src/node_zlib.cc:167: static void node::ZCtx::Process
(uv_work_t*): Assertion `ctx->err_ == 0 && "Failed to set...
1c32eb4a 01/22/2013 07:34 AM Ben Noordhuis

zlib: don't assert on missing dictionary

Handle Z_NEED_DICT errors graciously. Fixes the following assertion:

node: ../src/node_zlib.cc:161: static void node::ZCtx::Process
(uv_work_t*): Assertion`ctx->dictionary_ != __null && "Stream
has no dictionary"' failed....
7788a6bf 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Undefined()

01c3d0aa 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Local<>::New

6573fc35 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Integer::New

0e01d639 12/14/2012 01:52 PM isaacs

zlib: streams2

6cf68aea 12/13/2012 02:23 PM Ben Noordhuis

deps: upgrade libuv to e079a99

07d3b21f 10/31/2012 07:56 PM isaacs

zlib: s/clear/close/ and match other close() semantics

a93424da 10/30/2012 10:03 AM Ben Noordhuis

zlib: pass object size hint to V8

Inform V8 that the zlib context object is tied to a large off-heap buffer.

This makes the GC run more often (in theory) and improves the accuracy of
--trace_external_memory.

570e4be9 10/30/2012 10:03 AM Ben Noordhuis

zlib: reduce memory consumption, release early

In zlibBuffer(), don't wait for the garbage collector to reclaim the zlib memory
but release it manually. Reduces memory consumption by a factor of 10 or more
with some workloads.

Test case:

function f() {...
bf539f9b 07/09/2012 01:22 AM isaacs

zlib: Call inflateEnd for UNZIP. Fixes memory leak.

Fix #2595

a26bee8f 04/17/2012 04:14 PM isaacs

MakeCallback: Consistent symbol usage

01d46f3a 04/02/2012 04:48 PM isaacs

Fix #3052 Handle errors properly in zlib

7bdeed20 03/31/2012 07:50 PM Ben Noordhuis

zlib: fix uninitialized variable compiler warning

44eb279e 03/29/2012 08:22 AM ssuda

zlib: don't use C++ templates

Reduces the executable's size by a few kilobytes.

531eba18 03/12/2012 06:22 PM Ben Noordhuis

zlib: fix include of zlib.h

Including <zlib.h> may lead to false positives when the user specifies a bad
path in `./configure --shared-zlib --shared-zlib-includes=/path/to/zlib`. If
a zlib.h exists somewhere on the system include path (common on UNIX systems),...

ff4a9d38 03/09/2012 06:14 PM Ben Noordhuis

core: use proper #include directives

74a8215a 02/06/2012 09:44 AM Ben Noordhuis

Revert support for isolates.

It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh...

c80abfa0 01/25/2012 12:35 PM Fedor Indutny

zlib: fix `Failed to set dictionary` issue

71ae1753 01/11/2012 04:19 PM Fedor Indutny

zlib: reset() method for deflate/inflate streams

  • ammended test-zlib-dictionary to cover reusing streams
89556f5a 01/11/2012 04:11 PM Fedor Indutny

zlib: C++ style fixes for dictionary

9e6957b0 01/11/2012 03:17 PM Fedor Indutny

Merge branch 'v0.6'

Conflicts:
src/handle_wrap.cc
src/node_zlib.cc
src/process_wrap.cc

07701e7c 01/11/2012 02:43 PM Fedor Indutny

zlib: C++ style fixes

8cca30f3 01/10/2012 07:42 PM isaacs

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...

0ad2717f 01/10/2012 03:01 PM Ben Noordhuis

Make sure that zlib contexts are not garbage collected when busy

2d8af39a 01/10/2012 03:01 PM Bert Belder

Fix memory leak in node_zlib

20ba454e 12/28/2011 07:56 PM Ryan Dahl

Add node::Loop() and don't inc node_isolate.h in *.cc

node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0

f168f7d7 12/28/2011 07:56 PM Ryan Dahl

Remove node_isolate.h from node.h

356992fe 12/28/2011 07:56 PM Ben Noordhuis

isolates: isolate-ify the main loop

e53e9c72 12/07/2011 06:44 PM Ryan Dahl

move global vars for node_file.cc, node_zlib.cc, and node_crypto.cc

e6091952 12/05/2011 08:58 PM Fedor Indutny

[zlib] added dictionary support

cdcb1118 11/09/2011 10:34 AM Ben Noordhuis

Remove stray NODE_MODULE() semi-colons.

f1ca4853 10/03/2011 07:40 AM Ben Noordhuis

zlib: fix assert message

d104bfd5 09/18/2011 02:03 AM isaacs

zlib: Fix test so that it's not trivially passing, then pass it.

Regression from the refactor to move more things into JS.

5b8e1dab 09/17/2011 09:22 PM isaacs

Initial pass at zlib bindings