isaacs
62dd04027b
streams2: Set Readable lwm to 0 by default
12 years ago
isaacs
f20fd22abd
streams2: Add high water mark for Readable
Also, organize the numeric settings a bit on the ReadableState class
12 years ago
isaacs
63ac07b32b
streams2: Export Readable/Writable State classes
12 years ago
isaacs
5856823223
streams2: Fix duplex no-half-open logic
12 years ago
isaacs
286aa04910
streams2: Abstract out onread function
12 years ago
isaacs
f624ccb475
streams2: Use StringDecoder.end
12 years ago
isaacs
cf0b4ba410
streams2: flow() is not always bound to src
12 years ago
isaacs
acfb0ef908
test: fixture for streams2 testing
12 years ago
isaacs
e82d06bef9
streams2: Fix regression from Duplex ctor assignment
12 years ago
isaacs
f3e71eb417
test: Writable bufferizing, non-bufferizing, and callbacks
12 years ago
isaacs
71e2b61388
streams2: Support write(chunk,[encoding],[callback])
12 years ago
isaacs
0678480b57
streams2: Allow Writables to opt out of pre-buffer-izing
12 years ago
isaacs
545f512619
streams2: ctor guards on Stream classes
12 years ago
isaacs
9b1b85490b
streams2: Tests of new interfaces
12 years ago
isaacs
8acb416ad0
streams2: Handle immediate synthetic transforms properly
12 years ago
isaacs
06e321d0f9
streams2: Correct drain/return logic
It was testing the length *before* adding the current chunk, which
is the opposite of correct.
Also, the return value was flipped.
12 years ago
isaacs
02f017d24f
streams2: Allow 0 as a lowWaterMark value
12 years ago
isaacs
caa853bb06
transform: Automatically read() on _write when read buffer is empty
12 years ago
isaacs
3b59fd70f4
streams2: Make Transform streams pull-style
That is, the transform is triggered by a _read, not by a _write.
This way, backpressure works properly.
12 years ago
isaacs
9b5abe5bfe
streams2: setEncoding and abstract out endReadable
12 years ago
isaacs
51a52c43a2
streams2: Set flowing=true when flowing
12 years ago
isaacs
639fbe28d1
streams2: Convert strings to buffers before passing to _write()
12 years ago
isaacs
420e07c577
streams2: The new stream base classes
12 years ago
isaacs
17834ed28c
Add 'stream' as a native module in repl
12 years ago
isaacs
372cb32dc4
module: Support cycles in native module requires
12 years ago
isaacs
314c6b3060
Don't allow invalid encodings in StringDecoder class
12 years ago
isaacs
77ed12fe7a
Merge remote-tracking branch 'ry/v0.8' into master
Conflicts:
AUTHORS
ChangeLog
deps/uv/test/test-spawn.c
deps/uv/uv.gyp
src/cares_wrap.cc
src/node.cc
src/node_version.h
test/simple/test-buffer.js
tools/gyp/pylib/gyp/common.py
tools/install.py
12 years ago
isaacs
45cdb0e4c1
blog: Post for 0.8.16
12 years ago
isaacs
953673424a
Now working on 0.8.17
12 years ago
isaacs
a18507ce11
Merge commit 'v0.8.16' into v0.8
12 years ago
isaacs
1c9c6277d5
2012.12.13, Version 0.8.16 (Stable)
* npm: Upgrade to 1.1.69
* fs: fix WriteStream/ReadStream fd leaks (Ben Noordhuis)
* crypto: fix leak in GetPeerCertificate (Fedor Indutny)
* buffer: Don't double-negate numeric buffer arg (Trevor Norris)
* net: More accurate IP address validation and IPv6 dotted notation. (Joshua Erickson)
12 years ago
Ben Noordhuis
6cf68aead6
deps: upgrade libuv to e079a99
12 years ago
isaacs
b09f97068e
npm: Upgrade to v1.1.69
12 years ago
Ben Noordhuis
d65832ccd0
fs: fix WriteStream fd leak
Close the file descriptor when a write operation fails.
Fixes #4387 .
12 years ago
Ben Noordhuis
6e97b2cc17
fs: fix ReadStream fd leak
Close the file descriptor when a read operation fails.
Fixes #4387 .
12 years ago
Ben Noordhuis
65d824b488
test: add common.mustCall function
Verifies that the callback gets invoked <n> times during the lifetime of the
test script.
This is a back-port of commit d0e6c3f
from the master branch.
13 years ago
isaacs
92e92b0215
doc: Add nodejstr to community page
12 years ago
Ryunosuke SATO
0506d294dc
events: fix typos in code comment
- newListeners -> newListener
12 years ago
Ryunosuke SATO
eb502205d5
events: setMaxListeners() should not have side effects
This object initialization has been unnecessary since 12cf730b
.
Ref #3803 .
12 years ago
Ryunosuke SATO
1c7acd2c84
events: use assigned variable instead of arguments
Always `arguments[0]` is used when `EventEmitter#emit` called.
Using assigned variable is faster than `arguments[0]`.
12 years ago
Ryunosuke SATO
0397223ab4
events: use null assignment instead of deleting property
12 years ago
Bert Belder
3c293ba272
http: protect against response splitting attacks
12 years ago
isaacs
0e95ea42ce
lint
introduced in 5b65638
.
12 years ago
isaacs
33fa740577
fs: Raise error when null bytes detected in paths
Reworking of @bnoordhuis's more aggressive approach.
12 years ago
Ben Noordhuis
c79fd0e167
doc: remove broken require.extensions example
Fixes #4384 .
12 years ago
Ben Noordhuis
5b65638124
tls, https: add tls handshake timeout
Don't allow connections to stall indefinitely if the SSL/TLS handshake does
not complete.
Adds a new tls.Server and https.Server configuration option, handshakeTimeout.
Fixes #4355 .
12 years ago
Ben Noordhuis
3ece130ea2
process: add getgroups(), setgroups(), initgroups()
DRY the getuid(), getgid(), etc. functions while we're at it.
12 years ago
Ben Noordhuis
c08e947fbd
buffer: remove unused #includes
12 years ago
Ben Noordhuis
c81dec70e6
test: remove simple/test-child-process-fork2
The test assumes the parent and the child are scheduled fairly. Probably true
most of the time but not always, making it fail spuriously.
Bad test, remove it.
12 years ago
Shigeki Ohtsu
1c8a5269c5
test: fix simple/test-debug-brk-file race condition
V8 debug agent needs some time to be ready and no longer sends the first event
break response to a debug client. We wait some time to connect the agent and
check its break status by obtaining breakpoint list and seeing if it exists on
line 0.
12 years ago