Iskren Ivov Chernev
2f4a62c5e1
doc: fix streams2 SimpleProtocol example
...
A non-existing variable `b` was used to queue data for reading.
2013-03-20 00:34:31 +01:00
JeongHoon Byun
f217b5ed62
doc: fix typo in crypto docs
2013-03-17 13:45:14 +01:00
Yi EungJun
852444a720
doc: https: Fix the link to tls.connect
2013-03-16 23:52:39 +01:00
koichik
1f53cfdeae
doc: don't mark fs callbacks as optional
...
Refs #5005 , #5008
2013-03-14 13:06:49 -07:00
Adam Malcontenti-Wilson
028c630ecd
doc: change dgram to socket for properties of dgram.Socket
...
Fixes #4919 .
2013-03-14 12:55:19 +01:00
Ben Noordhuis
fa05e8a270
doc: implicit fs callbacks don't throw in v0.10
...
But they will in v0.12.
Re #5005 .
2013-03-13 15:34:18 -07:00
Ben Noordhuis
7b7235a232
doc: add note on process.title max length
...
Fixes #5006 .
2013-03-13 23:27:16 +01:00
Ben Noordhuis
9af0085f70
doc: path.join() arguments must be strings
...
In v0.8, non-string arguments were ignored. v0.10 throws an exception.
2013-03-13 18:42:04 +01:00
Ben Noordhuis
da10bb85ff
doc: events: add 'removeListener' event section
...
Amends commit 84221fd by (also) documenting the 'removeListener' event
in a dedicated section, like the 'newListener' event.
Fixes #4977 .
2013-03-12 00:07:18 +01:00
isaacs
b3cbb16f41
zlib: Manage flush flags appropriately
...
If you call z.flush();z.write('foo'); then it would try to write 'foo'
before the flush was done, triggering an assertion in the zlib binding.
Closes #4950
2013-03-08 18:56:31 -08:00
Ben Noordhuis
96a314b68b
buffer: strip high bits when converting to ascii
...
Consider the following example:
console.log(Buffer('ú').toString('ascii'));
Before this commit, the contents of the buffer was used as-is and hence it
prints 'ú'.
Now, it prints 'C:'. Perhaps not much of an improvement but it conforms to what
the documentation says it does: strip off the high bits.
Fixes #4371 .
2013-03-08 14:42:15 -08:00
Andreas Madsen
bdf7ac2c5d
child_process: support sending dgram socket
...
child.send can send net servers and sockets. Now that we have support
for dgram clusters this functionality should be extended to include
dgram sockets.
2013-03-07 17:51:17 +01:00
Ben Noordhuis
71694361f9
doc: dgram: add v0.10 bind() behavior note
...
dgram.Socket#bind() is always asynchronous now. Add a note at the top
of the documentation that explains how to upgrade.
Fixes #4944 .
2013-03-07 14:13:42 +01:00
Ben Noordhuis
924f603e26
doc: dgram: document bind() callback argument
2013-03-07 14:11:46 +01:00
isaacs
d258fb0212
http: More useful setTimeout API on server
...
This adds the following to HTTP:
* server.setTimeout(msecs, callback)
Sets all new connections to time out after the specified time, at
which point it emits 'timeout' on the server, passing the socket as an
argument.
In this way, timeouts can be handled in one place consistently.
* req.setTimeout(), res.setTimeout()
Essentially an alias to req/res.socket.setTimeout(), but without
having to delve into a "buried" object. Adds a listener on the
req/res object, but not on the socket.
* server.timeout
Number of milliseconds before incoming connections time out.
(Default=1000*60*2, as before.)
Furthermore, if the user sets up their own timeout listener on either
the server, the request, or the response, then the default behavior
(destroying the socket) is suppressed.
Fix #3460
2013-03-06 12:43:48 -08:00
isaacs
b0f6789a78
stream: Remove bufferSize option
...
Now that highWaterMark increases when there are large reads, this
greatly reduces the number of calls necessary to _read(size), assuming
that _read actually respects the size argument.
2013-03-06 11:44:30 -08:00
isaacs
426b4c6258
stream: _write takes an encoding argument
...
This vastly reduces the overhead of decodeStrings:false streams,
such as net and http.
2013-03-05 14:27:15 -08:00
isaacs
cd68d86c32
stream: Remove output function from _transform
...
Just use stream.push(outputChunk) instead.
2013-03-05 14:27:15 -08:00
Paolo Fragomeni
8e2376b376
Update domain.markdown
2013-03-05 08:15:54 -08:00
Ben Noordhuis
862f7b850d
Merge remote-tracking branch 'origin/v0.8'
2013-03-05 15:43:03 +01:00
Ben Noordhuis
ecf9f606c9
doc: add url.resolve() usage examples
...
Fixes #4913 .
2013-03-04 20:54:36 +01:00
isaacs
e428bb7eae
cluster: Rename destroy() to kill(signal=SIGTERM)
...
Fix #4133 , bringing the cluster worker API more in line with the
child process API.
2013-03-03 17:26:38 -08:00
Aaron Cannon
0c57b31190
doc: Add crypto.pseudoRandomBytes, fix typo
2013-03-03 15:30:49 -08:00
Ben Noordhuis
2d51036fb9
Merge remote-tracking branch 'origin/v0.8'
...
Conflicts:
doc/api/http.markdown
test/simple/test-crypto.js
2013-03-02 23:13:35 +01:00
Trevor Norris
75305f3bab
events: add check for listeners length
...
Ability to return just the length of listeners for a given type, using
EventEmitter.listenerCount(emitter, event). This will be a lot cheaper
than creating a copy of the listeners array just to check its length.
2013-03-01 17:36:47 -08:00
Lars-Magnus Skog
4b20f3440d
doc change for Readable._read()
2013-03-01 16:33:48 -08:00
isaacs
fc22986023
doc: Clarify advisory-ness of stream._read() argument
2013-03-01 14:26:35 -08:00
Gil Pedersen
13c8bc8917
doc: Update to reflect new _read() interface
2013-03-01 14:23:51 -08:00
Evan Oxfeld
16ddc545bd
doc: Fix readable.unshift() example
...
Slice the portion of the buffer to unshift back into the read queue
2013-03-01 14:21:34 -08:00
isaacs
0928a526dd
fs: Support mode/flag options to read/append/writeFile
...
Fix #4841
2013-03-01 09:48:57 -08:00
isaacs
4926ffd14b
doc: Provide 2 examples of SimpleProtocol parser
...
The first example uses Readable, and shows the use of
readable.unshift(). The second uses the Transform class, showing that
it's much simpler in this case.
2013-02-28 17:38:17 -08:00
Eugene Girshov
50ba0f27d9
doc: remove note about close event
2013-03-01 00:01:06 +01:00
Ben Noordhuis
cb87920ba9
Merge remote-tracking branch 'origin/v0.8'
...
Conflicts:
AUTHORS
ChangeLog
deps/uv/src/unix/pipe.c
lib/http.js
src/node_version.h
2013-02-28 16:58:24 +01:00
Ben Noordhuis
22d3eff8f4
doc: add note about child process line buffering
...
Fixes #4808 .
2013-02-22 01:19:40 +01:00
isaacs
3b2e9d2648
stream: remove lowWaterMark feature
...
It seems like a good idea on the face of it, but lowWaterMarks are
actually not useful, and in practice should always be set to zero.
It would be worthwhile for writers if we actually did some kind of
writev() type of thing, but actually this just delays calling write()
and the overhead of doing a bunch of Buffer copies is not worth the
slight benefit of calling write() fewer times.
2013-02-21 15:23:18 -08:00
isaacs
75df612cd7
doc: Use 'close' rather than 'exit' in spawn examples
...
Close #4515
2013-02-18 11:24:14 -08:00
isaacs
d75e39794b
Merge remote-tracking branch 'ry/v0.8' into master
...
Conflicts:
AUTHORS
ChangeLog
lib/http.js
src/node_version.h
test/simple/test-http-header-response-splitting.js
2013-02-18 10:21:08 -08:00
Shigeki Ohtsu
401cef797d
doc: add setImmediate execute timing description
2013-02-15 16:11:05 -08:00
Ben Noordhuis
3e2be6f39f
doc: clarify child_process.exec() stdio option
...
It only works for stdin, not stdout/stderr, for obvious reasons.
2013-02-14 19:42:14 +01:00
Dan Kohn
2e1ebbf2c5
doc: add prompt to fix repl_test.js example
...
Running repl.start without the prompt set produces this error:
repl.js:95
throw new Error('An options Object, or a prompt String are required');
^
Error: An options Object, or a prompt String are required
at new REPLServer (repl.js:95:11)
at Object.exports.start (repl.js:321:14)
at Object.<anonymous> (/Users/dan/Dropbox/Documents/dev/nextgen/repl_test.js:5:6)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2013-02-13 16:40:27 +01:00
Ben Noordhuis
3f7e88a852
buffer: accept negative indices in Buffer#slice()
...
A negative start or end parameter now indexes from the end of the
buffer. More in line with String#slice() and ArrayBuffer#slice().
2013-02-12 17:09:19 -08:00
Ben Noordhuis
30b0bc4fa9
doc: update buffer/typed array documentation
...
Clarify that typed array constructors accept buffers as their first
argument but that the memory is not shared and why this was changed
in v0.9.
2013-02-10 21:57:32 +01:00
Nathan Rajlich
1ba39226b2
doc: document the writable.end() callback function
...
Support for it was added in a9c4a20331 .
2013-02-09 10:34:18 -08:00
Nikhil Marathe
6bcd9a4c94
Update http docs with http.IncomingMessage.
...
http.ServerRequest and http.ClientResponse are merged into http.IncomingMessage
which has fields for both, and acts as a Readable Stream and EventEmitter.
Fixes #3851 .
2013-02-07 18:07:21 +04:00
isaacs
5cc3569f6d
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
deps/npm/html/api/edit.html
deps/npm/html/api/explore.html
deps/npm/html/api/help-search.html
deps/npm/html/api/init.html
deps/npm/html/api/install.html
deps/npm/html/api/link.html
deps/npm/html/api/load.html
deps/npm/html/api/ls.html
deps/npm/html/api/npm.html
deps/npm/html/api/outdated.html
deps/npm/html/api/owner.html
deps/npm/html/api/pack.html
deps/npm/html/api/prefix.html
deps/npm/html/api/prune.html
deps/npm/html/api/publish.html
deps/npm/html/api/rebuild.html
deps/npm/html/api/restart.html
deps/npm/html/api/root.html
deps/npm/html/api/run-script.html
deps/npm/html/api/search.html
deps/npm/html/api/shrinkwrap.html
deps/npm/html/api/start.html
deps/npm/html/api/stop.html
deps/npm/html/api/submodule.html
deps/npm/html/api/tag.html
deps/npm/html/api/test.html
deps/npm/html/api/uninstall.html
deps/npm/html/api/unpublish.html
deps/npm/html/api/update.html
deps/npm/html/api/version.html
deps/npm/html/api/view.html
deps/npm/html/api/whoami.html
deps/npm/html/doc/README.html
deps/npm/html/doc/adduser.html
deps/npm/html/doc/bin.html
deps/npm/html/doc/bugs.html
deps/npm/html/doc/build.html
deps/npm/html/doc/bundle.html
deps/npm/html/doc/cache.html
deps/npm/html/doc/changelog.html
deps/npm/html/doc/coding-style.html
deps/npm/html/doc/completion.html
deps/npm/html/doc/config.html
deps/npm/html/doc/dedupe.html
deps/npm/html/doc/deprecate.html
deps/npm/html/doc/developers.html
deps/npm/html/doc/disputes.html
deps/npm/html/doc/docs.html
deps/npm/html/doc/edit.html
deps/npm/html/doc/explore.html
deps/npm/html/doc/faq.html
deps/npm/html/doc/folders.html
deps/npm/html/doc/global.html
deps/npm/html/doc/help-search.html
deps/npm/html/doc/help.html
deps/npm/html/doc/index.html
deps/npm/html/doc/init.html
deps/npm/html/doc/install.html
deps/npm/html/doc/json.html
deps/npm/html/doc/link.html
deps/npm/html/doc/ls.html
deps/npm/html/doc/npm.html
deps/npm/html/doc/outdated.html
deps/npm/html/doc/owner.html
deps/npm/html/doc/pack.html
deps/npm/html/doc/prefix.html
deps/npm/html/doc/prune.html
deps/npm/html/doc/publish.html
deps/npm/html/doc/rebuild.html
deps/npm/html/doc/registry.html
deps/npm/html/doc/removing-npm.html
deps/npm/html/doc/restart.html
deps/npm/html/doc/rm.html
deps/npm/html/doc/root.html
deps/npm/html/doc/run-script.html
deps/npm/html/doc/scripts.html
deps/npm/html/doc/search.html
deps/npm/html/doc/semver.html
deps/npm/html/doc/shrinkwrap.html
deps/npm/html/doc/star.html
deps/npm/html/doc/start.html
deps/npm/html/doc/stop.html
deps/npm/html/doc/submodule.html
deps/npm/html/doc/tag.html
deps/npm/html/doc/test.html
deps/npm/html/doc/uninstall.html
deps/npm/html/doc/unpublish.html
deps/npm/html/doc/update.html
deps/npm/html/doc/version.html
deps/npm/html/doc/view.html
deps/npm/html/doc/whoami.html
deps/npm/man/man1/global.1
deps/npm/man/man1/ls.1
deps/npm/man/man1/npm.1
deps/npm/man/man1/rm.1
deps/npm/man/man3/npm.3
deps/npm/node_modules/glob/glob.js
deps/npm/node_modules/glob/package.json
deps/npm/node_modules/node-gyp/package.json
deps/npm/node_modules/npm-registry-client/package.json
deps/npm/node_modules/npmconf/package.json
deps/npm/node_modules/read-installed/package.json
deps/npm/node_modules/rimraf/package.json
deps/npm/node_modules/rimraf/rimraf.js
deps/npm/package.json
deps/uv/src/win/error.c
doc/api/crypto.markdown
lib/zlib.js
src/node_version.h
src/node_zlib.cc
test/simple/test-buffer.js
2013-02-06 16:29:30 -08:00
Ben Noordhuis
5fe05464cb
doc: don't suggest to reuse net.Socket objects
...
Using Socket.prototype.connect() to reconnect an existing Socket object
is not reliable. Users should just create a new Socket object.
See #4698 .
2013-02-05 12:50:48 +01:00
Ben Noordhuis
3fe6aba558
os: rename tmpDir() to tmpdir() for consistency
...
Make the casing consistent with the other os.* functions but keep
os.tmpDir() around as an alias.
2013-01-30 04:24:58 +01:00
Rick Yakubowski
5abde8161a
doc: fix typo in cluster module documentation
...
Fix a small typo in the cluster.settings documentation.
2013-01-27 00:25:35 +01:00
isaacs
bdc7251b64
doc: fix line wrapping in addons.markdown
2013-01-25 14:27:46 -08:00
Rod Vagg
f210710795
doc: NODE_MODULE() to pass full module to addons
...
mainly to allow native addons to export single functions on `exports`
rather than being restricted to operating on an existing `exports`
object.
added link to addons repo in docs
2013-01-25 14:26:52 -08:00