Ben Noordhuis
4c150ca0d0
net: fix listen() regression, revert patches
This commit reverts the following commits (in reverse chronological order):
74d076c
errnoException must be done immediately
ddb02b9
net: support Server.listen(Pipe)
085a098
cluster: do not use internal server API
d138875
net: lazy listen on handler
Commit d138875
introduced a backwards incompatible change that broke the
simple/test-net-socket-timeout and simple/test-net-lazy-listen tests - it
defers listening on the target port until the `net.Server` instance has at
least one 'connection' event listener.
The other patches had to be reverted in order to revert d138875
.
Fixes #3832 .
13 years ago
isaacs
168a555780
fs: fix naming of truncate/ftruncate functions
For backwards compatibility, fs.truncate(<number>) will proxy to
fs.ftruncate.
Fix #3805
13 years ago
isaacs
0414e14702
doc: util.pump is deprecated. Use Stream.pipe
Conflicts:
doc/api/util.markdown
13 years ago
Kyle Robinson Young
bc7479d232
doc: fix typos in child_process
13 years ago
isaacs
4ff56aa15e
doc: util.pump is deprecated. Use Stream.pipe
13 years ago
Ben Noordhuis
3219616f43
util: mark util.pump() as deprecated
13 years ago
Andreas Madsen
d13887512e
net: lazy listen on handler
This allow the server to be shared without the need to handle connection
from master
13 years ago
Ben Noordhuis
9315377693
doc: improve cluster.workers documentation
13 years ago
Eugen Dueck
af699c47d1
doc: http: document res.write() `drain` return value
13 years ago
Bert Belder
9e2319f977
docs: remove unused require from example
Closes GH-3801
13 years ago
Ben Noordhuis
2eb6a62f4f
doc: document child_process.fork() limitation
13 years ago
isaacs
f8dab6acb6
doc: Remove timeout arg in child_process.fork
Fix #3784
13 years ago
Shigeki Ohtsu
5b37da2ac0
doc: fix domains example
Need `utf8` encoding for JSON.parse and fix to avoid JSON.parse error when only
one argument is passed in domain.bind
13 years ago
Joe Andaverde
20e12e4be3
events: make .listeners() return a copy
Make EventEmitter.listeners(event) return a copy of the listeners array instead
of the array itself.
Fixes #3442 .
13 years ago
Timothy J Fontaine
bdd1a740cb
add docs for socket/server/timer unref and ref
13 years ago
koichik
bc30c90af6
doc: remove duplicate section
Fixes #3750 .
13 years ago
Ben Noordhuis
e8af340557
doc: advise *strongly* against uncaughtException
13 years ago
isaacs
a52a44e072
doc: nextTick semantics and justification
13 years ago
Pavel Lang
ff14007573
Enable color customization of `util.inspect`
This is rewrite of #3701 and #3603 before.
This patch introduce `util.inspect.styles`
and `util.inspect.colors` objects, which enables customization
of color sequences.
13 years ago
Mike Morearty
19aa05fab8
doc: fix bug in child_process.spawn() sample code
13 years ago
Ivan Torres
8146f2e607
doc: clarify fs.symlink and fs.symlinkSync parameters
13 years ago
Justin Plock
fba1e48fae
doc: cluster: worker.pid is now worker.process.pid
13 years ago
Ben Noordhuis
5b5362aa8d
fs: make unwatchFile() remove a specific listener
Before this commit, `fs.unwatchFile(path)` removed *all* listeners for `path`.
The function is overloaded now: `fs.unwatchFile(path)` still removes all
listeners, but `fs.unwatchFile(path, cb)` lets you remove a specific listener.
Fixes #3660 .
13 years ago
isaacs
559a98f0d7
doc: Formatting and grammar on stream api doc
13 years ago
Dominic Tarr
7accaeb490
correct documentation of Stream#destroy
13 years ago
Ben Noordhuis
b53cd9798f
doc: document setTimeout / setInterval behavior
13 years ago
Ben Noordhuis
b9abb64fbb
doc: fs.lchmod() is only available on OS X
13 years ago
Ben Noordhuis
be3afd0bec
doc: remove references to deprecated fs api
The string-based versions of fs.read() and fs.write() have been deprecated
since before v0.2.0.
13 years ago
Andreas Madsen
401ff10295
doc: `detached` is a boolean
13 years ago
Andreas Madsen
3d51646c4b
doc: replace references to cluster.autoFork
13 years ago
koichik
d7825b3c1d
docs: add punycode to TOC
Refs #3301 .
13 years ago
Ben Noordhuis
8708bb0280
doc: update fs.watchFile() docs
13 years ago
Ryan Dahl
fe464a2fea
Rename GYP variable node_use_system_openssl to be consistent
13 years ago
Bert Belder
3795d77113
windows: `listen(pipe_name)` is not supported when running cluster
- Added a note to the cluster module documentation.
- Disabled test-cluster-http-pipe.
13 years ago
isaacs
f105f2f2fd
trivial: Doc typo and lint fix
13 years ago
Trent Mick
196207c228
node: remove unused flags and files
Drop vestigial `process.installPrefix`, `node --vars`, NODE_CFLAGS and
NODE_PREFIX.
Also removed unused node_config.h.in (replaced with config.gypi a while back).
13 years ago
Ben Kelly
c6185c8484
doc: Improve cross-linking in API docs markdown
Cross-link EventEmitter references in API docs to events.html
Fix broken cross-reference links with wrong anchor names in API docs.
13 years ago
isaacs
283d735e2b
doc: Include zlib constants
13 years ago
isaacs
e72addcf8e
event: Document the mutability of listeners()
13 years ago
Andreas Madsen
c2c08196d8
cluster: rename worker.unqiueID to worker.id
13 years ago
isaacs
e733dc3bc3
Fix #3388 Support listening on file descriptors
This implements server.listen({ fd: <filedescriptor> }). The fd should
refer to an underlying resource that is already bound and listening, and
causes the new server to also accept connections on it.
Not supported on Windows. Raises ENOTSUP.
13 years ago
isaacs
a11bf99ce0
Fix #3407 os.tmpDir()
13 years ago
Ben Noordhuis
8963a5228d
doc: update crypto cipher/decipher docs
13 years ago
isaacs
d53cdc5378
Add Buffer.concat method
We write out this loop a lot of places throughout node.
It clearly needs to be an API method.
13 years ago
Andreas Madsen
60b45dcbb6
domain: document and test dispose event
13 years ago
Marc Harter
569acea0ee
Fix #3379 prevent domain.intercept passing 1st arg to cb
13 years ago
Charlie McConnell
4b021a3541
child_process: expose UV_PROCESS_DETACHED as options.detached
13 years ago
Bert Belder
0699f5bfb4
Improve child process stdio documentation
13 years ago
Fedor Indutny
0262b6d2a5
child_process: new stdio API for .spawn() method
13 years ago
Erwin van der Koogh
ccc854d14e
doc: remove all references to setsid
Fixes #2299 .
13 years ago