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 .
14 years ago
Brian White
d22259426c
Fix incorrect documentation for assert.fail()
Fixes #1100 .
14 years ago
Ryan Dahl
a72284e264
Fix windows EOL chars
14 years ago
Bert Belder
9cec08e490
Batch of ev -> uv changes
14 years ago
Ryan Dahl
207901e7de
Guard tick_spinner start/stop
All tests passing on OSX. Thanks to Bert for debugging this.
14 years ago
Ryan Dahl
d3426789d2
Upgrade libuv to d91b5012bd32b60f1a0f35241f7ac45c147f0c8a
14 years ago
Ryan Dahl
2c79f13634
Upgrade libuv to 40f0ad6d364cff76adaf1c7f182b1dc939f36617
14 years ago
Ryan Dahl
860cb906a6
Merge branch 'v0.4'
Conflicts:
src/node_version.h
14 years ago
Ryan Dahl
823604a4e0
Now working on v0.4.9
14 years ago
Ryan Dahl
7dd22c26e4
Bump to v0.4.8
14 years ago
Ryan Dahl
80b0225b98
Merge branch 'v8-3.1' into v0.4
14 years ago
Ryan Dahl
cee4ce39a9
Upgrade V8 to 3.1.8.16
14 years ago
Ryan Dahl
70dd6d4ea3
Fix TJ's assert error
Unable to reproduce but connect's "make test TESTS=test/static.test.js" does
it occasionally.
14 years ago
Mark Cavage
a55a9ff3c2
Additional docs for net.listenFD()
Fixes #1080 .
14 years ago
Ryan Dahl
59274e8a33
Merge branch 'v0.4'
Conflicts:
lib/crypto.js
lib/tls.js
14 years ago
Ryan Dahl
9c7f89bf56
CryptoStream.prototype.readyState shoudn't reference fd
Fixes #1069
14 years ago
Brian White
2de0611b43
Remove unused variable
Fixes #1077
14 years ago
Robert Mustacchi
7ea19d02fd
Use same make as when originally invoked
14 years ago
Robert Mustacchi
317653b4df
Rework getNetworkInterfaces() for Linux, SunOS, Mac OS X
14 years ago
David Trejo
8a0ac5b422
Add test for agent upgrade and example in docs
14 years ago
Ryan Dahl
73ea01cd64
Revert "Upgrade libuv to 9c2dd6bea970b2376696aba070bdfc2873843cfb"
This reverts commit 4b60e87afe
.
Event loop ref count broken.
14 years ago
Alexandre Marangone
6c28fcf661
(char *) casting for all strings args to kstat function to avoid warnings
Fixes #1071 .
14 years ago
Alexandre Marangone
5d9dc1c6d5
Adding os.totalmem() and os.freemem() for SunOS
14 years ago
Fedor Indutny
21724ecaec
Share SSL context between server connections
Fixes #1073 .
14 years ago
Ryan Dahl
6461af1baa
Fix buffer test
14 years ago
Ryan Dahl
5e409c2f1a
makeFastBuffer should not segfault but rather throw on non-buffer
14 years ago
Ryan Dahl
4b60e87afe
Upgrade libuv to 9c2dd6bea970b2376696aba070bdfc2873843cfb
14 years ago
Ryan Dahl
3ac0ada758
Merge branch 'v0.4'
14 years ago
David Trejo
f4e69e44ff
readline docs
14 years ago
David Trejo
68d840b47d
readline docs
14 years ago
Ryan Dahl
85934bcf2a
Remove libev/macos kqueue override - goes in libuv
14 years ago
Ryan Dahl
63c0d71213
Changes for job bullets
14 years ago
Ryan Dahl
0271b785a1
fork: Use utf8 for channel encoding
14 years ago
Ryan Dahl
85bc8d02fa
Merge branch 'v0.4'
Conflicts:
src/node_crypto.cc
14 years ago
Ryan Dahl
103a450d3a
Remove 'binary' encoding assert - add tests
Don't write large characters to buffers with binary encoding. You will be
silently injured.
14 years ago
isaacs
249361cab7
Close #1054 More clear documentation for module system
14 years ago
Ryan Dahl
e83c6959db
Disable compression with OpenSSL.
This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.
14 years ago
koichik
d4f82ea590
Fix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"
Fixes #1038
14 years ago
Brian White
e505a1215c
Add reading/writing of floats and doubles from/to buffers
Code for readIEEE754/writeIEEE754 is from jspack: http://code.google.com/p/jspack/
14 years ago
koichik
80c2fe9456
Fix event listener leak check timing
Fixes #1041 .
14 years ago
koichik
56aa2fd4c3
Fix doc - missing dns.resolveNs() and dns.resolveCname()
Fixes #1039 .
14 years ago
Felix Geisendörfer
9d717f6bef
Update http.ServerRequest docs
The documentation for 'end' was wrong, and 'close' now has an `err`
parameter.
14 years ago
Felix Geisendörfer
e7ac6d8fcd
Error argument for http.ServerRequest 'close'
Problem: It was not possible to detect the reason for a premature
connection termination in http requests.
This patch provides a new `err` argument to the 'close' event which
can be inspected to differentiate between a timeout and a client
actively terminating the connection.
Also contains tests for this new behavior for http and https.
14 years ago
Felix Geisendörfer
1fde5f51b4
Make https 'timeout' events bubble up
Also adds a test case for it.
14 years ago
Ryan Dahl
91bd144d2c
check_tick_watcher to use libuv
14 years ago
Ryan Dahl
a46c63bae7
prepare_tick_watcher to use libuv
14 years ago
Ryan Dahl
17c88db158
move tick_spinner on libuv
14 years ago
Ryan Dahl
efca334be2
Integrate libuv into build system
14 years ago
Ryan Dahl
9a3dd754be
Add trademark stuff to homepage
14 years ago
Ryan Dahl
337c48db5f
Rename spawnNode to fork
14 years ago