0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
Cross-platform JavaScript runtime environment https://nodejs.org/
Go to file
Felix Geisendörfer 2b91256c61 Fix error handling bug in stream.pipe()
Problem: Since stream.pipe() is registering it's own error handlers on
the source and destination stream, it needs to replicate the
EventEmitter 'error' emitting semantics of throwing an error if there
are no other listeners. However, there was a off-by-one error because
the check for remaining listeners was done after cleanup() which means
the pipe's own listener was no longer included.

This would cause 'error' events on either the dest or the source to
throw if there was one other error listener, and while swallowing
the 'error' event if there was no other listener.

Solution: I added a test demonstrating the two issues and fixed the
problem by correcting the off-by-one error.

Fixes #1095.
2011-05-24 10:50:33 -07:00
benchmark Add startup memory script to benchmarks 2011-02-18 14:01:04 -08:00
cmake Add string class that uses ExternalAsciiStringResource. 2011-03-08 13:56:41 -08:00
deps Merge branch 'v8-3.1' into v0.4 2011-05-20 19:25:30 -07:00
doc Fix incorrect documentation for assert.fail() 2011-05-24 10:44:14 -07:00
lib Fix error handling bug in stream.pipe() 2011-05-24 10:50:33 -07:00
src Now working on v0.4.9 2011-05-21 00:10:23 -07:00
test Fix error handling bug in stream.pipe() 2011-05-24 10:50:33 -07:00
tools Add string class that uses ExternalAsciiStringResource. 2011-03-08 13:56:41 -08:00
.gitignore hello.txt should be stored in tmpdir 2011-03-18 09:14:15 -07:00
AUTHORS bump version to v0.4.7 2011-04-22 17:06:25 -07:00
ChangeLog Bump to v0.4.8 2011-05-20 19:40:06 -07:00
CMakeLists.txt cmake: dtrace support. 2011-02-18 10:45:25 -08:00
config.h.cmake Add cmake build support. 2010-11-22 13:32:49 -08:00
configure Back to WAF 2010-11-01 16:51:20 -07:00
CTestConfig.cmake cmake: Add cdash support. 2010-11-23 23:33:20 -06:00
LICENSE Update copyright headers 2011-03-14 17:37:05 -07:00
Makefile Added favicon.ico 2011-04-02 02:35:23 -07:00
Makefile.cmake cmake: Add toolchain file for cross-compiling. 2010-12-22 16:12:49 -08:00
README.cmake cmake: Add toolchain file for cross-compiling. 2010-12-22 16:12:49 -08:00
README.md Fix links 2011-01-27 16:24:02 -08:00
TODO Update TODO items 2011-01-05 11:59:04 -08:00
TODO.win32 Fix mingw build 2011-02-04 14:49:50 -08:00
wscript Bump to v0.4.8 2011-05-20 19:40:06 -07:00

Evented I/O for V8 javascript.

To build:

./configure
make
make install

To run the tests:

make test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers