platform/upstream/nodejs.git
12 years agoRemove unused local variable.
Ben Noordhuis [Wed, 25 Apr 2012 11:10:31 +0000 (04:10 -0700)]
Remove unused local variable.

12 years agodoc: update string_decoder stability index to 3
Kyle Robinson Young [Tue, 24 Apr 2012 21:04:39 +0000 (14:04 -0700)]
doc: update string_decoder stability index to 3

Ref #3140

12 years agoprocess: comment for consistency
Nathan Rajlich [Tue, 24 Apr 2012 08:32:33 +0000 (01:32 -0700)]
process: comment for consistency

12 years agoprocess: set _print_eval even when --eval is not passed
Nathan Rajlich [Tue, 24 Apr 2012 08:24:13 +0000 (01:24 -0700)]
process: set _print_eval even when --eval is not passed

This is for scripts being fed from stdin:

  $ echo "{ foo: 'bar' }" | node -p

12 years agoprocess: make --eval and reading scripts from stdin act the same
Nathan Rajlich [Tue, 24 Apr 2012 08:34:17 +0000 (01:34 -0700)]
process: make --eval and reading scripts from stdin act the same

Reusing the same logic for both places for the behavior is consistent.

For example:

  $ ./node -p -e "'Hello World'"
  Hello World

  $ echo "'Hello World'" | ./node -p
  Hello World

12 years agodoc: util: add args to format and methods error, puts, print
Kyle Robinson Young [Mon, 23 Apr 2012 17:03:36 +0000 (10:03 -0700)]
doc: util: add args to format and methods error, puts, print

12 years agov8: posix: try to send() whole buffer
Ben Noordhuis [Tue, 24 Apr 2012 02:01:28 +0000 (04:01 +0200)]
v8: posix: try to send() whole buffer

Retry the send() syscall after a partial write.

12 years agov8: posix: handle EINTR in socket functions
Ben Noordhuis [Tue, 24 Apr 2012 01:45:30 +0000 (03:45 +0200)]
v8: posix: handle EINTR in socket functions

The socket functions did not handle EINTR (syscall interrupted by signal) which
tripped up the debug agent.

12 years agov8: debug: fix error handling in SendConnectMessage()
Ben Noordhuis [Tue, 24 Apr 2012 01:41:49 +0000 (03:41 +0200)]
v8: debug: fix error handling in SendConnectMessage()

The old error handling code checked if the return value of Socket::Send() != 0,
which is wrong because Socket::Send() can write less bytes than requested or
return -1 on error.

12 years agodoc: add deprecated function http.createClient()
Kyle Robinson Young [Mon, 23 Apr 2012 04:37:37 +0000 (21:37 -0700)]
doc: add deprecated function http.createClient()

Appears in a lot of old code and core tests. Documented to show it
is deprecated.

Closes #1613.

12 years agobuild: support make install "DESTDIR=/path"
Malte-Thorben Bruns [Sat, 21 Apr 2012 20:40:48 +0000 (22:40 +0200)]
build: support make install "DESTDIR=/path"

12 years agorepl: use Object.getPrototypeOf on functions for tab complete()
Nathan Rajlich [Sat, 21 Apr 2012 20:53:49 +0000 (13:53 -0700)]
repl: use Object.getPrototypeOf on functions for tab complete()

12 years agodomain: Document explicit binding, and d.run()
isaacs [Sat, 21 Apr 2012 17:32:03 +0000 (10:32 -0700)]
domain: Document explicit binding, and d.run()

12 years agodoc: add args for rl.write and rl.prompt
Kyle Robinson Young [Sat, 21 Apr 2012 03:06:00 +0000 (20:06 -0700)]
doc: add args for rl.write and rl.prompt

12 years agoreadline: remove unused vars in _ttyWrite
Kyle Robinson Young [Fri, 20 Apr 2012 16:59:54 +0000 (09:59 -0700)]
readline: remove unused vars in _ttyWrite

12 years agodoc: typo in cluster documentation
isaacs [Fri, 20 Apr 2012 14:42:57 +0000 (07:42 -0700)]
doc: typo in cluster documentation

12 years agodoc: add string_decoder doc
Kyle Robinson Young [Fri, 20 Apr 2012 06:32:58 +0000 (23:32 -0700)]
doc: add string_decoder doc

12 years agov8: fix "pure virtual method called" runtime error
Ben Noordhuis [Thu, 19 Apr 2012 23:28:54 +0000 (01:28 +0200)]
v8: fix "pure virtual method called" runtime error

Fixes #2912.

12 years agoreadline: _normalWrite() doesn't take a key modifier arg
Kyle Robinson Young [Wed, 18 Apr 2012 21:23:20 +0000 (14:23 -0700)]
readline: _normalWrite() doesn't take a key modifier arg

12 years agoreadline: change char to ch to avoid reserved word
Kyle Robinson Young [Wed, 18 Apr 2012 19:37:54 +0000 (12:37 -0700)]
readline: change char to ch to avoid reserved word

12 years agotest: use the new net.listen(backlog=x) API
Ben Noordhuis [Wed, 18 Apr 2012 19:55:36 +0000 (21:55 +0200)]
test: use the new net.listen(backlog=x) API

12 years agodoc: improve dns module docs
Erik Dubbelboer [Wed, 18 Apr 2012 13:56:14 +0000 (15:56 +0200)]
doc: improve dns module docs

12 years agodns: add more error codes
Erik Dubbelboer [Wed, 18 Apr 2012 13:56:14 +0000 (15:56 +0200)]
dns: add more error codes

12 years agoFix test/ jslint failures (by not linting tests)
isaacs [Wed, 18 Apr 2012 19:41:08 +0000 (12:41 -0700)]
Fix test/ jslint failures (by not linting tests)

In practice, it's not important to lint tests.  We lint src/
and lib/, which is where we're more prone to make mistakes that
affect real-world situations in subtle ways, and where more
changes are made that ought to be kept in a consistent style.

Tests are a mess anyways, and no one cares.

12 years agonet, http: add backlog parameter to .listen()
Erik Dubbelboer [Wed, 18 Apr 2012 13:56:14 +0000 (15:56 +0200)]
net, http: add backlog parameter to .listen()

12 years agoMerge remote-tracking branch 'ry/v0.6'
isaacs [Wed, 18 Apr 2012 19:25:32 +0000 (12:25 -0700)]
Merge remote-tracking branch 'ry/v0.6'

12 years agonet.js: lint
isaacs [Wed, 18 Apr 2012 19:24:41 +0000 (12:24 -0700)]
net.js: lint

12 years agodeps: fix v8 build error
Dane Springmeyer [Wed, 18 Apr 2012 17:32:02 +0000 (10:32 -0700)]
deps: fix v8 build error

Pull in build error fix from http://code.google.com/p/v8/source/detail?r=9505
Missed in 5d69bbfbd.

12 years agoMerge remote-tracking branch 'ry/v0.6' into master
isaacs [Wed, 18 Apr 2012 18:57:54 +0000 (11:57 -0700)]
Merge remote-tracking branch 'ry/v0.6' into master

Conflicts:
AUTHORS
ChangeLog
LICENSE
Makefile
deps/http_parser/test.c
deps/npm/AUTHORS
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/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/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/list.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/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/lib/npm.js
deps/npm/man/man1/npm.1
deps/npm/man/man3/npm.3
deps/npm/node_modules/fstream-npm/fstream-npm.js
deps/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json
deps/npm/node_modules/fstream-npm/package.json
deps/npm/node_modules/node-gyp/LICENSE
deps/npm/node_modules/node-gyp/lib/build.js
deps/npm/node_modules/node-gyp/lib/install.js
deps/npm/node_modules/node-gyp/node_modules/ansi/package.json
deps/npm/node_modules/node-gyp/node_modules/glob/package.json
deps/npm/node_modules/node-gyp/package.json
deps/npm/package.json
deps/uv/test/test-fs.c
deps/v8/src/regexp-macro-assembler-tracer.cc
deps/v8/src/version.cc
src/node_version.h
src/platform_sunos.cc
test/simple/test-net-write-after-close.js
wscript

12 years agoNow working on 0.7.9
isaacs [Wed, 18 Apr 2012 18:17:29 +0000 (11:17 -0700)]
Now working on 0.7.9

12 years agoMerge branch 'v0.7.8-release'
isaacs [Wed, 18 Apr 2012 18:17:15 +0000 (11:17 -0700)]
Merge branch 'v0.7.8-release'

12 years ago2012.04.18, Version 0.7.8, (unstable) v0.7.8
isaacs [Wed, 18 Apr 2012 00:17:44 +0000 (17:17 -0700)]
2012.04.18, Version 0.7.8, (unstable)

* Upgrade V8 to 3.9.24.9

* Upgrade OpenSSL to 1.0.0f

* Upgrade npm to 1.1.18

* Show licenses in Binary installers

* Domains (isaacs)

* readline: rename "end" to "close" (Nathan Rajlich)

* tcp: make getsockname() return address family as string (Shigeki Ohtsu)

* http, https: fix .setTimeout() (ssuda)

* os: add cross platform EOL character (Mustansir Golawala)

* typed arrays: unexport SizeOfArrayElementForType() (Aaron Jacobs)

* net: honor 'enable' flag in .setNoDelay() (Ben Noordhuis)

* child_process: emit error when .kill fails (Andreas Madsen)

* gyp: fix 'argument list too long' build error (Ben Noordhuis)

* fs.WriteStream: Handle modifications to fs.open (isaacs)

* repl, readline: Handle newlines better (Nathan Rajlich, Nathan Friedly)

* build: target OSX 10.5 when building on darwin (Nathan Rajlich)

* Fix #3052 Handle errors properly in zlib (isaacs)

* build: add support for DTrace and postmortem (Dave Pacheco)

* core: add reusable Slab allocator (Ben Noordhuis)

12 years agotypo in node_http_parser
isaacs [Wed, 18 Apr 2012 02:24:28 +0000 (19:24 -0700)]
typo in node_http_parser

12 years agoReapply patches floating on V8
isaacs [Wed, 18 Apr 2012 01:16:52 +0000 (18:16 -0700)]
Reapply patches floating on V8

12 years agoUpgrade V8 to 3.9.24.9
isaacs [Wed, 18 Apr 2012 01:16:27 +0000 (18:16 -0700)]
Upgrade V8 to 3.9.24.9

12 years agoUpgrade npm to 1.1.17
isaacs [Wed, 18 Apr 2012 00:14:25 +0000 (17:14 -0700)]
Upgrade npm to 1.1.17

12 years agodoc: make readline example filter shorter
Josh W [Mon, 16 Apr 2012 19:03:30 +0000 (03:03 +0800)]
doc: make readline example filter shorter

12 years agodoc: add some headers to make it more legible
Josh W [Tue, 10 Apr 2012 05:59:13 +0000 (13:59 +0800)]
doc: add some headers to make it more legible

12 years agolint
isaacs [Tue, 17 Apr 2012 22:52:57 +0000 (15:52 -0700)]
lint

12 years agouv: Cherry-pick joyent/libuv@3c41597
isaacs [Tue, 17 Apr 2012 22:45:48 +0000 (15:45 -0700)]
uv: Cherry-pick joyent/libuv@3c41597

12 years agotest: Minor change to message/undefined_reference_in_new_context
isaacs [Tue, 17 Apr 2012 22:30:22 +0000 (15:30 -0700)]
test: Minor change to message/undefined_reference_in_new_context

12 years agoFix 64-bit SmartOS build
Dave Pacheco [Tue, 17 Apr 2012 20:50:09 +0000 (13:50 -0700)]
Fix 64-bit SmartOS build

12 years agoMerge branch 'domains3'
isaacs [Tue, 17 Apr 2012 20:36:29 +0000 (13:36 -0700)]
Merge branch 'domains3'

12 years agoAdd Todo comments about domain-ifying crypto
isaacs [Thu, 12 Apr 2012 15:16:30 +0000 (08:16 -0700)]
Add Todo comments about domain-ifying crypto

12 years agoAdd switches to http_simple bench to use domains
isaacs [Tue, 10 Apr 2012 21:59:21 +0000 (14:59 -0700)]
Add switches to http_simple bench to use domains

12 years agoDomain hooks in ReqWrap<T> and MakeCallback
isaacs [Fri, 13 Apr 2012 23:27:23 +0000 (16:27 -0700)]
Domain hooks in ReqWrap<T> and MakeCallback

12 years agoDomain feature
isaacs [Fri, 6 Apr 2012 23:26:18 +0000 (16:26 -0700)]
Domain feature

This is a squashed commit of the main work done on the domains-wip branch.

The original commit messages are preserved for posterity:

* Implicitly add EventEmitters to active domain
* Implicitly add timers to active domain
* domain: add members, remove ctor cb
* Don't hijack bound callbacks for Domain error events
* Add dispose method
* Add domain.remove(ee) method
* A test of multiple domains in process at once
* Put the active domain on the process object
* Only intercept error arg if explicitly requested
* Typo
* Don't auto-add new domains to the current domain

    While an automatic parent/child relationship is sort of neat,
    and leads to some nice error-bubbling characteristics, it also
    results in keeping a reference to every EE and timer created,
    unless domains are explicitly disposed of.

* Explicitly adding one domain to another is still fine, of course.
* Don't allow circular domain->domain memberships
* Disposing of a domain removes it from its parent
* Domain disposal turns functions into no-ops
* More documentation of domains
* More thorough dispose() semantics
* An example using domains in an HTTP server
* Don't handle errors on a disposed domain
* Need to push, even if the same domain is entered multiple times
* Array.push is too slow for the EE Ctor
* lint domain
* domain: docs
* Also call abort and destroySoon to clean up event emitters
* domain: Wrap destroy methods in a try/catch
* Attach tick callbacks to active domain
* domain: Only implicitly bind timers, not explicitly
* domain: Don't fire timers when disposed.
* domain: Simplify naming so that MakeCallback works on Timers
* Add setInterval and nextTick to domain test
* domain: Make stack private

12 years agoMakeCallback: Consistent symbol usage
isaacs [Thu, 12 Apr 2012 23:03:47 +0000 (16:03 -0700)]
MakeCallback: Consistent symbol usage

12 years agoMakeCallback: Use in node_signal_watcher
isaacs [Thu, 12 Apr 2012 05:29:36 +0000 (22:29 -0700)]
MakeCallback: Use in node_signal_watcher

12 years agoMakeCallback: Use in node_io_watcher
isaacs [Thu, 12 Apr 2012 05:29:18 +0000 (22:29 -0700)]
MakeCallback: Use in node_io_watcher

12 years agoMakeCallback: Use in node_crypto
isaacs [Thu, 12 Apr 2012 05:28:44 +0000 (22:28 -0700)]
MakeCallback: Use in node_crypto

12 years agoMakeCallback: Use in node_file.cc
isaacs [Sun, 8 Apr 2012 07:48:10 +0000 (00:48 -0700)]
MakeCallback: Use in node_file.cc

12 years agoMakeCallback: abort() if not a function
isaacs [Tue, 17 Apr 2012 04:27:12 +0000 (21:27 -0700)]
MakeCallback: abort() if not a function

12 years agoMakeCallback: Return the callback return value
isaacs [Fri, 13 Apr 2012 23:34:48 +0000 (16:34 -0700)]
MakeCallback: Return the callback return value

12 years agoMakeCallback: Accept Function or Symbol argument
isaacs [Fri, 13 Apr 2012 23:33:09 +0000 (16:33 -0700)]
MakeCallback: Accept Function or Symbol argument

12 years agoReport errors thrown from uncaughtException handers
isaacs [Sat, 7 Apr 2012 02:23:16 +0000 (19:23 -0700)]
Report errors thrown from uncaughtException handers

12 years agotest: lowercase setRawMode() test case filename
Nathan Rajlich [Tue, 17 Apr 2012 18:49:31 +0000 (11:49 -0700)]
test: lowercase setRawMode() test case filename

12 years agodoc: update the `readline` docs for the "close" event behavior
Nathan Rajlich [Tue, 17 Apr 2012 18:44:54 +0000 (11:44 -0700)]
doc: update the `readline` docs for the "close" event behavior

12 years agorepl: update the `repl` for the new `readline` behavior
Nathan Rajlich [Tue, 17 Apr 2012 18:35:11 +0000 (11:35 -0700)]
repl: update the `repl` for the new `readline` behavior

This fixes the failing REPL tests.

12 years agotest: check for multiple "emit" calls in repl-end-emits-exit.js
Nathan Rajlich [Tue, 17 Apr 2012 18:34:37 +0000 (11:34 -0700)]
test: check for multiple "emit" calls in repl-end-emits-exit.js

12 years agoreadline: re-add the Interface#close() method; rename "end" to "close"
Nathan Rajlich [Tue, 17 Apr 2012 18:31:07 +0000 (11:31 -0700)]
readline: re-add the Interface#close() method; rename "end" to "close"

The idea here is to reduce the number of times that `setRawMode()` is called
on the `input` stream, since it is expensive, and simply pause()/resume()
should not call it.

So now `setRawMode()` only gets called at the beginning of the Interface
instance, and then when `Interface#close()` is called.

Test case included.

12 years agodoc: change `in` to `input` in the readline docs
Nathan Rajlich [Tue, 17 Apr 2012 18:17:54 +0000 (11:17 -0700)]
doc: change `in` to `input` in the readline docs

Also compacting some long lines.

12 years agodoc: add require.extensions to globals
Kyle Robinson Young [Tue, 17 Apr 2012 05:15:51 +0000 (22:15 -0700)]
doc: add require.extensions to globals

Closes #3028

12 years agodoc: add cache argument to fs.realpath()
Kyle Robinson Young [Mon, 16 Apr 2012 21:52:44 +0000 (14:52 -0700)]
doc: add cache argument to fs.realpath()

12 years agodoc: note that `stream.pause` is advisory
domenic [Mon, 9 Apr 2012 05:46:55 +0000 (01:46 -0400)]
doc: note that `stream.pause` is advisory

12 years agoFixing ClientRequest setTimeout EventEmitter Leak
ssuda [Sun, 8 Apr 2012 15:24:53 +0000 (20:54 +0530)]
Fixing ClientRequest setTimeout EventEmitter Leak

This will fix #3068

12 years agodocs: fix broken links in zlib docs
Zachary Scott [Mon, 16 Apr 2012 20:43:02 +0000 (16:43 -0400)]
docs: fix broken links in zlib docs

12 years agodocs: url.format uses host for hostname and port, not auth
Zachary Scott [Sun, 8 Apr 2012 16:07:28 +0000 (12:07 -0400)]
docs: url.format uses host for hostname and port, not auth

Fixes #3062.

12 years agodocs: url.host doesn't include auth
Zachary Scott [Sat, 7 Apr 2012 15:10:22 +0000 (11:10 -0400)]
docs: url.host doesn't include auth

Fixes #3062.

12 years agotls: remove duplicate line
fukayatsu [Mon, 16 Apr 2012 18:37:32 +0000 (03:37 +0900)]
tls: remove duplicate line

12 years agotcp: make getsockname() return address family as string
Shigeki Ohtsu [Fri, 13 Apr 2012 07:45:38 +0000 (16:45 +0900)]
tcp: make getsockname() return address family as string

12 years agotest: don't make request until server is listening
Ben Noordhuis [Mon, 16 Apr 2012 15:57:41 +0000 (17:57 +0200)]
test: don't make request until server is listening

Preemptively fixes simple/test-https-timeout on platforms where binding to an
interface is not an instantaneous action.

12 years agohttp, https: fix .setTimeout()
ssuda [Fri, 13 Apr 2012 23:35:28 +0000 (05:05 +0530)]
http, https: fix .setTimeout()

Fixes #3107.

12 years agoFix bug in x64 RegExp detecting start of string.
lrn@chromium.org [Mon, 3 Oct 2011 10:31:01 +0000 (10:31 +0000)]
Fix bug in x64 RegExp detecting start of string.

Also add missing MIPS case in regexp tracer.

Fixes issues v8:1748 and v8:1746

BUG=v8:1748, v8:1746
TEST=mjsunit/regress/regress-1748.js

Review URL: http://codereview.chromium.org/8116001

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@9504 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

12 years agodisable omit-frame-pointer on solaris systems
Dave Pacheco [Wed, 8 Feb 2012 00:50:05 +0000 (16:50 -0800)]
disable omit-frame-pointer on solaris systems

12 years agoPatches floating on v8
isaacs [Thu, 2 Feb 2012 23:37:59 +0000 (15:37 -0800)]
Patches floating on v8

12 years agoUpgrade V8 to 3.6.6.25
Bert Belder [Mon, 16 Apr 2012 15:27:16 +0000 (17:27 +0200)]
Upgrade V8 to 3.6.6.25

12 years agodocs: more explicit argument names in fs
Kyle Robinson Young [Mon, 16 Apr 2012 05:24:25 +0000 (22:24 -0700)]
docs: more explicit argument names in fs

12 years agonode: don't check return value of unsetenv()
Ben Noordhuis [Sat, 31 Mar 2012 21:23:46 +0000 (23:23 +0200)]
node: don't check return value of unsetenv()

It returns void on some platforms, notably FreeBSD.

12 years agoevents: remove misleading comment
Maciej Małecki [Sun, 15 Apr 2012 09:09:37 +0000 (11:09 +0200)]
events: remove misleading comment

12 years agodeps: fix -DOPENSSL_NO_SOCK on sunos
Ben Noordhuis [Sat, 14 Apr 2012 21:51:03 +0000 (21:51 +0000)]
deps: fix -DOPENSSL_NO_SOCK on sunos

The OPENSSL_NO_SOCK macro in OpenSSL missed a couple of networking functions
that called other functions that OPENSSL_NO_SOCK *had* filtered out. None of
the functions (filtered or not) were actually used but it was enough to trip
up the Solaris linker.

12 years agoos: add cross platform EOL character
Mustansir Golawala [Thu, 12 Apr 2012 08:29:15 +0000 (01:29 -0700)]
os: add cross platform EOL character

12 years agodeps: upgrade http_parser to joyent/http-parser@da91852
Ben Noordhuis [Sat, 14 Apr 2012 21:12:36 +0000 (23:12 +0200)]
deps: upgrade http_parser to joyent/http-parser@da91852

12 years agoSet errno in fake-failing child-process kill test
isaacs [Fri, 13 Apr 2012 23:53:51 +0000 (16:53 -0700)]
Set errno in fake-failing child-process kill test

12 years agodns: remove unused functions
Ben Noordhuis [Fri, 13 Apr 2012 12:46:35 +0000 (14:46 +0200)]
dns: remove unused functions

12 years agodocs: rewrite "addons" docs to use node-gyp
Zachary Scott [Fri, 13 Apr 2012 00:24:35 +0000 (20:24 -0400)]
docs: rewrite "addons" docs to use node-gyp

Closes #3100.
Closes #3101.

12 years agotyped arrays: unexport SizeOfArrayElementForType()
Aaron Jacobs [Thu, 15 Mar 2012 02:26:35 +0000 (13:26 +1100)]
typed arrays: unexport SizeOfArrayElementForType()

It isn't used anywhere else, so made it an implementation detail in
v8_typed_array.cc.

12 years agonet: honor 'enable' flag in .setNoDelay()
Ben Noordhuis [Thu, 12 Apr 2012 17:13:04 +0000 (19:13 +0200)]
net: honor 'enable' flag in .setNoDelay()

Fixes #3096.

12 years agochild_process: emit error when .kill fails
Andreas Madsen [Tue, 13 Mar 2012 16:22:47 +0000 (17:22 +0100)]
child_process: emit error when .kill fails

12 years agogyp: Apply 'argument too long' fix in another place
isaacs [Thu, 12 Apr 2012 01:26:52 +0000 (18:26 -0700)]
gyp: Apply 'argument too long' fix in another place

For some reason, aa5961a445acbd2b533ef870eb19733be7b7ede5 caused
'make test' to rebuild the entire project every time.  Applying
the fix to the other place where gyp chops up the argument list
makes it behave properly.

12 years agoDisable OpenSSL UI
Bert Belder [Wed, 11 Apr 2012 16:20:54 +0000 (18:20 +0200)]
Disable OpenSSL UI

12 years agotest: merge tls-ext-key-usage into tls-securepair-client
Ben Noordhuis [Tue, 10 Apr 2012 23:05:10 +0000 (01:05 +0200)]
test: merge tls-ext-key-usage into tls-securepair-client

12 years agotest: fix openssl tests
Ben Noordhuis [Tue, 10 Apr 2012 22:47:52 +0000 (00:47 +0200)]
test: fix openssl tests

Don't assume that the libcrypto and libssl that we're linked against is the same
version as the openssl command line tool. This is important because the tool has
a bug in all pre-1.0.0 versions that makes it unusable for these tests.

12 years agobuild: configure openssl
Ben Noordhuis [Tue, 10 Apr 2012 21:41:34 +0000 (21:41 +0000)]
build: configure openssl

* compile with -DOPENSSL_NO_SOCK and -DOPENSSL_NO_DGRAM, we don't need it
* compile with -DOPENSSL_NO_GOST and -DOPENSSL_NO_HW_PADLOCK, works around the
  brain dead linker on solaris and maybe others
* compile with -DTERMIOS, OS X doesn't have <termio.h>
* compile with -D__EXTENSIONS__ on solaris, makes siginfo_t available
* compile without -ansi on linux, it hides a number of POSIX declarations
  (sigaction, NI_MAXHOST, etc.)

12 years agodeps: reapply 0a34755 to bundled openssl
Ben Noordhuis [Tue, 10 Apr 2012 14:04:49 +0000 (16:04 +0200)]
deps: reapply 0a34755 to bundled openssl

12 years agodeps: reapply 0110c90 to bundled openssl
Ben Noordhuis [Tue, 10 Apr 2012 14:08:50 +0000 (16:08 +0200)]
deps: reapply 0110c90 to bundled openssl

12 years agodeps: upgrade openssl to 1.0.0f
Ben Noordhuis [Tue, 10 Apr 2012 13:57:21 +0000 (15:57 +0200)]
deps: upgrade openssl to 1.0.0f

12 years agogyp: fix 'argument list too long' build error
Ben Noordhuis [Tue, 10 Apr 2012 18:01:34 +0000 (20:01 +0200)]
gyp: fix 'argument list too long' build error

12 years agoRevert "deps: upgrade libuv to 3c41597"
Ben Noordhuis [Wed, 11 Apr 2012 22:59:38 +0000 (00:59 +0200)]
Revert "deps: upgrade libuv to 3c41597"

This reverts commit 0db4dc0024eaa538bf4913d6bf256a18126de2ba.

This commit makes a lot of tests fail due to reference counting errors. It's
not worth it to debug because the reference counting scheme is due to change
soon anyway.

12 years agoSlab allocator: don't attempt to shrink a non-buffer
Bert Belder [Wed, 11 Apr 2012 20:02:12 +0000 (22:02 +0200)]
Slab allocator: don't attempt to shrink a non-buffer