Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
8d3278b
Now working on 0.7.8
isaacs Mar 30, 2012
32b2964
udp: remove slab allocator
bnoordhuis Mar 26, 2012
f86359c
udp: root JS objects in HandleScope with Local<>
bnoordhuis Mar 26, 2012
9eacf93
crypto: root JS objects in HandleScope with Local<>
bnoordhuis Mar 26, 2012
1a49df5
http: root JS objects in HandleScope with Local<>
bnoordhuis Mar 26, 2012
3005965
stat_watcher: root JS objects in HandleScope with Local<>
bnoordhuis Mar 26, 2012
036d907
tcp: root JS objects in HandleScope with Local<>
bnoordhuis Mar 26, 2012
9d1fde7
typed arrays: root JS objects in HandleScope with Local<>
bnoordhuis Mar 26, 2012
a58659c
core: add ROUND_UP() macro
bnoordhuis Mar 27, 2012
08032ef
core: add reusable slab allocator
bnoordhuis Mar 28, 2012
1e13a2d
stream_wrap: use new slab allocator
bnoordhuis Mar 29, 2012
1ab95a5
udp_wrap: use new slab allocator
bnoordhuis Mar 30, 2012
7c02b5a
udp_wrap: simplify AddressToJS() function
bnoordhuis Mar 30, 2012
4071815
Revert "Re-add top-level v8::Locker"
piscisaureus Mar 30, 2012
90ce5b3
cluster: Rename 'death' back to 'exit'
isaacs Mar 30, 2012
c26a0b5
doc: fix grammar error in cluster docs
bnoordhuis Mar 30, 2012
2726c22
Revert "tty: add keypress event for backwards-compat"
isaacs Mar 31, 2012
bc834c3
Alias _snprintf to snprintf, fix Windows build.
bnoordhuis Mar 31, 2012
dee8c51
node: don't check return value of unsetenv()
bnoordhuis Mar 31, 2012
a4a04f9
node: provide snprintf implementation on windows
bnoordhuis Mar 31, 2012
7bdeed2
zlib: fix uninitialized variable compiler warning
bnoordhuis Mar 31, 2012
cc15299
build: add support for DTrace and postmortem
Mar 28, 2012
01d46f3
Fix #3052 Handle errors properly in zlib
isaacs Apr 1, 2012
0810936
Fix links to libev and libeio licenses
ry Apr 2, 2012
92c0c69
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
bnoordhuis Apr 2, 2012
55e971e
Include text of licenses in LICENSE file
ry Apr 2, 2012
30994aa
Mac installer shows license
ry Apr 2, 2012
930fabe
Disable V8 postmortem debugging on Windows
piscisaureus Apr 3, 2012
2728dcc
Windows: add build step that generates license.rtf from LICENSE
piscisaureus Apr 4, 2012
3e88572
Windows: installer shows license agreement dialog
piscisaureus Apr 4, 2012
b6d6a54
build: target OSX 10.5 when building on darwin
TooTallNate Apr 5, 2012
d73b257
docs: grammar and spelling on lib/cluster.js
Apr 2, 2012
b9bfb1b
child_process: Emit err rather than throw for IPC write failure
isaacs Apr 6, 2012
e28f77c
readline: buffer data to only emit 'line' on '\n'
nfriedly Apr 6, 2012
aab7cb7
test: fix failing test-repl.js
TooTallNate Apr 6, 2012
ca8dea8
repl: make the completer use newlines
TooTallNate Apr 6, 2012
8752cee
test: make repl-autolibs check that the callback was invoked
TooTallNate Apr 6, 2012
8652c11
test: make the ArrayStream in repl tests write a '\n'
TooTallNate Apr 6, 2012
78eb174
readline: use StringDecoder for decoding "normal" data
TooTallNate Apr 6, 2012
93eca95
Revert "build: target OSX 10.5 when building on darwin"
isaacs Apr 9, 2012
06ada03
fs.WriteStream: Handle modifications to fs.open
isaacs Apr 9, 2012
0db4dc0
deps: upgrade libuv to 3c41597
bnoordhuis Apr 10, 2012
70a5b53
Re-apply "build: target OSX 10.5 when building on darwin"
TooTallNate Apr 10, 2012
7b71fd0
build: add comment explaining MACOSX_DEPLOYMENT_TARGET.
TooTallNate Apr 10, 2012
3ba9519
Makefile: minor nit
isaacs Apr 11, 2012
e066074
Fix #3089 Build changelog.html for website
isaacs Apr 11, 2012
fdeeabb
configure: don't use "with" for Python 2.5 and older
TooTallNate Apr 11, 2012
9b7a6c5
configure: output a newline at the end of config.gypi
TooTallNate Apr 11, 2012
3ec84a1
Slab allocator: don't attempt to shrink a non-buffer
piscisaureus Apr 11, 2012
e9dcfd4
Revert "deps: upgrade libuv to 3c41597"
bnoordhuis Apr 11, 2012
aa5961a
gyp: fix 'argument list too long' build error
bnoordhuis Apr 10, 2012
30e7fb7
deps: upgrade openssl to 1.0.0f
bnoordhuis Apr 10, 2012
0f9d201
deps: reapply 0110c90 to bundled openssl
bnoordhuis Apr 10, 2012
3694b69
deps: reapply 0a34755 to bundled openssl
bnoordhuis Apr 10, 2012
2639566
build: configure openssl
bnoordhuis Apr 10, 2012
6cbed95
test: fix openssl tests
bnoordhuis Apr 10, 2012
916b5d1
test: merge tls-ext-key-usage into tls-securepair-client
bnoordhuis Apr 10, 2012
1c88c3b
Disable OpenSSL UI
piscisaureus Apr 11, 2012
04271a5
gyp: Apply 'argument too long' fix in another place
isaacs Apr 12, 2012
5b43c63
child_process: emit error when .kill fails
AndreasMadsen Mar 13, 2012
16fca26
net: honor 'enable' flag in .setNoDelay()
bnoordhuis Apr 12, 2012
1444801
typed arrays: unexport SizeOfArrayElementForType()
jacobsa Mar 15, 2012
46acb09
docs: rewrite "addons" docs to use node-gyp
Apr 13, 2012
b7b7b29
dns: remove unused functions
bnoordhuis Apr 13, 2012
93cefab
Set errno in fake-failing child-process kill test
isaacs Apr 13, 2012
7ee1545
os: add cross platform EOL character
mgolawala Apr 12, 2012
c945eae
deps: fix -DOPENSSL_NO_SOCK on sunos
bnoordhuis Apr 14, 2012
f065c87
events: remove misleading comment
mmalecki Apr 15, 2012
0a83b78
docs: more explicit argument names in fs
shama Apr 16, 2012
48d52d8
http, https: fix .setTimeout()
Apr 13, 2012
21d2683
test: don't make request until server is listening
bnoordhuis Apr 16, 2012
0d13142
tcp: make getsockname() return address family as string
Apr 13, 2012
0f95a93
tls: remove duplicate line
fukayatsu Apr 16, 2012
59e6b14
docs: url.host doesn't include auth
Apr 7, 2012
b4626af
docs: url.format uses host for hostname and port, not auth
Apr 8, 2012
540a441
docs: fix broken links in zlib docs
Apr 16, 2012
70005be
Fixing ClientRequest setTimeout EventEmitter Leak
Apr 8, 2012
5bc07cc
doc: note that `stream.pause` is advisory
domenic Apr 9, 2012
7cd1690
doc: add cache argument to fs.realpath()
shama Apr 16, 2012
718aa50
doc: add require.extensions to globals
shama Apr 17, 2012
86bd9b6
doc: change `in` to `input` in the readline docs
TooTallNate Apr 17, 2012
9c3559f
readline: re-add the Interface#close() method; rename "end" to "close"
TooTallNate Apr 17, 2012
c5d35ac
test: check for multiple "emit" calls in repl-end-emits-exit.js
TooTallNate Apr 17, 2012
327286d
repl: update the `repl` for the new `readline` behavior
TooTallNate Apr 17, 2012
e28eb6d
doc: update the `readline` docs for the "close" event behavior
TooTallNate Apr 17, 2012
e621250
test: lowercase setRawMode() test case filename
TooTallNate Apr 17, 2012
80a55e9
Report errors thrown from uncaughtException handers
isaacs Apr 7, 2012
7407be8
MakeCallback: Accept Function or Symbol argument
isaacs Apr 13, 2012
ac1aadd
MakeCallback: Return the callback return value
isaacs Apr 13, 2012
88f94fa
MakeCallback: abort() if not a function
isaacs Apr 17, 2012
91701c2
MakeCallback: Use in node_file.cc
isaacs Apr 8, 2012
35c0cd2
MakeCallback: Use in node_crypto
isaacs Apr 12, 2012
e1dd570
MakeCallback: Use in node_io_watcher
isaacs Apr 12, 2012
db45b2c
MakeCallback: Use in node_signal_watcher
isaacs Apr 12, 2012
a26bee8
MakeCallback: Consistent symbol usage
isaacs Apr 12, 2012
963459d
Domain feature
isaacs Apr 6, 2012
10ce3d1
Domain hooks in ReqWrap<T> and MakeCallback
isaacs Apr 13, 2012
45c1d4f
Add switches to http_simple bench to use domains
isaacs Apr 10, 2012
d4ed2e6
Add Todo comments about domain-ifying crypto
isaacs Apr 12, 2012
8673a4a
Merge branch 'domains3'
isaacs Apr 17, 2012
8559a4a
Fix 64-bit SmartOS build
Apr 17, 2012
079b813
test: Minor change to message/undefined_reference_in_new_context
isaacs Apr 17, 2012
37fd953
uv: Cherry-pick joyent/libuv@3c41597
isaacs Apr 17, 2012
d8b33dc
lint
isaacs Apr 17, 2012
20143b3
doc: add some headers to make it more legible
josher19 Apr 10, 2012
d2860a6
doc: make readline example filter shorter
josher19 Apr 16, 2012
c8bbd13
Upgrade npm to 1.1.17
isaacs Apr 18, 2012
6ed5ef5
Upgrade V8 to 3.9.24.9
isaacs Apr 18, 2012
6bb9868
Reapply patches floating on V8
isaacs Apr 18, 2012
7b3fb22
typo in node_http_parser
isaacs Apr 18, 2012
c2b4709
2012.04.18, Version 0.7.8, (unstable)
isaacs Apr 18, 2012
889cbf9
Merge branch 'v0.7.8-release'
isaacs Apr 18, 2012
ae35daa
updated v0.7.8
koichik May 4, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,8 @@ Johannes Wüller <johanneswueller@gmail.com>
Erik Lundin <mjor.himself@gmail.com>
Mikael Bourges-Sevenier <mikeseven@gmail.com>
Yosef Dinerstein <yosefd@microsoft.com>
Nathan Friedly <nathan@nfriedly.com>
Aaron Jacobs <jacobsa@google.com>
Mustansir Golawala <mgolawala@gmail.com>
fukayatsu <fukayatsu@gmail.com>
Domenic Denicola <domenic@domenicdenicola.com>
43 changes: 42 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
2012.03.30, Version 0.7.7 (unstable)
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)


2012.03.30, Version 0.7.7 (unstable), 5cda2542fdb086f9fe5de889bea435a65e377dea

* Upgrade V8 to 3.9.24.7

Expand Down
562 changes: 515 additions & 47 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ website_files = \
out/doc/about/index.html \
out/doc/community/index.html \
out/doc/logos/index.html \
out/doc/changelog.html \
$(doc_images)

doc: program $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/
Expand All @@ -125,6 +126,9 @@ $(apidoc_dirs):
out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
cp $< $@

out/doc/changelog.html: ChangeLog doc/changelog-head.html doc/changelog-foot.html tools/build-changelog.sh
bash tools/build-changelog.sh

out/doc/%.html: doc/%.html
cat $< | sed -e 's|__VERSION__|'$(VERSION)'|g' > $@

Expand All @@ -142,7 +146,7 @@ email.md: ChangeLog tools/email-footer.md
cat tools/email-footer.md | sed -e 's|__VERSION__|'$(VERSION)'|g' >> $@

blog.html: email.md
cat $< | node tools/doc/node_modules/.bin/marked > $@
cat $< | ./node tools/doc/node_modules/.bin/marked > $@

website-upload: doc
rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
Expand Down
4 changes: 3 additions & 1 deletion benchmark/http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ sudo sysctl -w net.inet.ip.portrange.first=12000
sudo sysctl -w net.inet.tcp.msl=1000
sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000
ulimit -n 100000

./node benchmark/http_simple.js || exit 1 &
sleep 1
ab -n 30000 -c 100 http://127.0.0.1:8000/bytes/123 | grep Req

ab -n 30000 -c 100 http://127.0.0.1:8000/${TYPE:-bytes}/${LENGTH:-1024} | grep Req
killall node
20 changes: 20 additions & 0 deletions benchmark/http_simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,27 @@ for (var i = 0; i < 20*1024; i++) {
stored = {};
storedBuffer = {};

var useDomains = process.env.NODE_USE_DOMAINS;

// set up one global domain.
if (useDomains) {
var domain = require('domain');
var gdom = domain.create();
gdom.on('error', function(er) {
console.log('Error on global domain', er);
throw er;
});
gdom.enter();
}

var server = http.createServer(function (req, res) {

if (useDomains) {
var dom = domain.create();
dom.add(req);
dom.add(res);
}

var commands = req.url.split("/");
var command = commands[1];
var body = "";
Expand Down
12 changes: 11 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
'component%': 'static_library', # NB. these names match with what V8 expects
'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way

# Enable V8's post-mortem debugging only on unix flavors.
'conditions': [
['OS != "win"', {
'v8_postmortem_support': 'true'
}]
],
},

'target_defaults': {
Expand Down Expand Up @@ -42,6 +49,8 @@
}],
['OS=="solaris"', {
'cflags': [ '-fno-omit-frame-pointer' ],
# pull in V8's postmortem metadata
'ldflags': [ '-Wl,-z,allextract' ]
}],
['strict_aliasing!="true"', {
'cflags': [ '-fno-strict-aliasing' ],
Expand Down Expand Up @@ -137,7 +146,6 @@
'ldflags': [ '-m32' ],
}],
[ 'OS=="linux"', {
'cflags': [ '-ansi' ],
'ldflags': [ '-rdynamic' ],
}],
[ 'OS=="solaris"', {
Expand All @@ -149,6 +157,7 @@
],
}],
['OS=="mac"', {
'defines': ['_DARWIN_USE_64_BIT_INODE=1'],
'xcode_settings': {
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
Expand All @@ -161,6 +170,7 @@
'GCC_VERSION': '4.2',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
'PREBINDING': 'NO', # No -Wl,-prebind
'MACOSX_DEPLOYMENT_TARGET': '10.5', # -mmacosx-version-min=10.5
'USE_HEADERMAP': 'NO',
'OTHER_CFLAGS': [
'-fno-strict-aliasing',
Expand Down
24 changes: 19 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ parser.add_option("--shared-zlib-libname",
parser.add_option("--with-dtrace",
action="store_true",
dest="with_dtrace",
help="Build with DTrace (experimental)")
help="Build with DTrace (default is true on supported systems)")

parser.add_option("--without-dtrace",
action="store_true",
dest="without_dtrace",
help="Build without DTrace")

# CHECKME does this still work with recent releases of V8?
parser.add_option("--gdb",
Expand Down Expand Up @@ -225,7 +230,6 @@ def gcc_version():
def configure_node(o):
# TODO add gdb
o['variables']['node_prefix'] = options.prefix if options.prefix else ''
o['variables']['node_use_dtrace'] = b(options.with_dtrace)
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_install_waf'] = b(not options.without_waf)
o['variables']['host_arch'] = host_arch()
Expand All @@ -242,6 +246,16 @@ def configure_node(o):
if 'clang' not in CC and gcc_version() < [False, 4, 0, 0]:
o['variables']['visibility'] = ''

# By default, enable DTrace on SunOS systems. Don't allow it on other
# systems, since it won't work. (The MacOS build process is different than
# SunOS, and we haven't implemented it.)
if sys.platform.startswith('sunos'):
o['variables']['node_use_dtrace'] = b(not options.without_dtrace);
elif b(options.with_dtrace) == 'true':
raise Exception('DTrace is currently only supported on SunOS systems.')
else:
o['variables']['node_use_dtrace'] = 'false'


def configure_libz(o):
o['variables']['node_shared_zlib'] = b(options.shared_zlib)
Expand Down Expand Up @@ -328,11 +342,11 @@ pprint.pprint(output, indent=2)
def write(filename, data):
filename = os.path.join(root_dir, filename)
print "creating ", filename
with open(filename, 'w+') as f:
f.write(data)
f = open(filename, 'w+')
f.write(data)

write('config.gypi', "# Do not edit. Generated by the configure script.\n" +
pprint.pformat(output, indent=2))
pprint.pformat(output, indent=2) + "\n")

write('config.mk', "# Do not edit. Generated by the configure script.\n" +
("BUILDTYPE=%s\n" % ('Debug' if options.debug else 'Release')))
Expand Down
3 changes: 3 additions & 0 deletions deps/npm/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ Andrew Lunny <alunny@gmail.com>
Henrik Hodne <dvyjones@binaryhex.com>
Adam Blackburn <regality@gmail.com>
Kris Windham <kriswindham@gmail.com>
Jens Grunert <jens.grunert@gmail.com>
Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
Dalmais Maxence <github@maxired.fr>
27 changes: 27 additions & 0 deletions deps/npm/doc/cli/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ The following shorthands are parsed on the command-line:
* `-l`: `--long`
* `-desc`: `--description`
* `-S`: `--save`
* `-D`: `--save-dev`
* `-O`: `--save-optional`
* `-y`: `--yes`
* `-n`: `--yes false`
* `ll` and `la` commands: `ls --long`
Expand Down Expand Up @@ -358,6 +360,13 @@ user.

A proxy to use for outgoing https requests.

### user-agent

* Default: npm/{npm.version} node/{process.version}
* Type: String

Sets a User-Agent to the request header

### ignore

* Default: ""
Expand Down Expand Up @@ -577,6 +586,24 @@ Save installed packages to a package.json file as dependencies.

Only works if there is already a package.json file present.

### save-dev

* Default: false
* Type: Boolean

Save installed packages to a package.json file as devDependencies.

Only works if there is already a package.json file present.

### save-optional

* Default: false
* Type: Boolean

Save installed packages to a package.json file as optionalDependencies.

Only works if there is already a package.json file present.

### searchopts

* Default: ""
Expand Down
Loading