Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit ba048e7

Browse files
committed
Merge remote-tracking branch 'ry/v0.10'
Conflicts: AUTHORS ChangeLog configure deps/uv/ChangeLog deps/uv/src/unix/darwin.c deps/uv/src/unix/stream.c deps/uv/src/version.c deps/v8/src/isolate.cc deps/v8/src/version.cc lib/http.js src/node_version.h
2 parents 9c7078c + f904d61 commit ba048e7

File tree

130 files changed

+681
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+681
-157
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -455,3 +455,4 @@ Benoit Vallée <[email protected]>
455455
Ryuichi Okumura <[email protected]>
456456
Brandon Frohs <[email protected]>
457457
Nick Sullivan <[email protected]>
458+
Nathan Zadoks <[email protected]>

ChangeLog

+23
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,29 @@
6060
* zlib: allow passing options to convenience methods (Kyle Robinson Young)
6161

6262

63+
2013.05.24, Version 0.10.8 (Stable), 30d9e9fdd9d4c33d3d95a129d021cd8b5b91eddb
64+
65+
* v8: update to 3.14.5.9
66+
67+
* uv: upgrade to 0.10.8
68+
69+
* npm: Upgrade to 1.2.23
70+
71+
* http: remove bodyHead from 'upgrade' events (Nathan Zadoks)
72+
73+
* http: Return true on empty writes, not false (isaacs)
74+
75+
* http: save roundtrips, convert buffers to strings (Ben Noordhuis)
76+
77+
* configure: respect the --dest-os flag consistently (Nathan Rajlich)
78+
79+
* buffer: throw when writing beyond buffer (Trevor Norris)
80+
81+
* crypto: Clear error after DiffieHellman key errors (isaacs)
82+
83+
* string_bytes: strip padding from base64 strings (Trevor Norris)
84+
85+
6386
2013.05.17, Version 0.10.7 (Stable), d2fdae197ac542f686ee06835d1153dd43b862e5
6487

6588
* uv: upgrade to v0.10.7

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Evented I/O for V8 javascript. [![Build Status](https://secure.travis-ci.org/joy
55

66
Prerequisites (Unix only):
77

8+
* GCC 4.2 or newer
89
* Python 2.6 or 2.7
910
* GNU Make 3.81 or newer
1011
* libexecinfo (FreeBSD and OpenBSD only)

benchmark/http/client-request-body.js

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Measure the time it takes for the HTTP client to send a request body.
2+
3+
var common = require('../common.js');
4+
var http = require('http');
5+
6+
var bench = common.createBenchmark(main, {
7+
dur: [5],
8+
type: ['asc', 'utf', 'buf'],
9+
bytes: [32, 256, 1024],
10+
method: ['write', 'end '] // two spaces added to line up each row
11+
});
12+
13+
function main(conf) {
14+
var dur = +conf.dur;
15+
var len = +conf.bytes;
16+
17+
var encoding;
18+
var chunk;
19+
switch (conf.type) {
20+
case 'buf':
21+
chunk = new Buffer(len);
22+
chunk.fill('x');
23+
break;
24+
case 'utf':
25+
encoding = 'utf8';
26+
chunk = new Array(len / 2 + 1).join('ü');
27+
break;
28+
case 'asc':
29+
chunk = new Array(len + 1).join('a');
30+
break;
31+
}
32+
33+
var nreqs = 0;
34+
var options = {
35+
headers: { 'Connection': 'keep-alive', 'Transfer-Encoding': 'chunked' },
36+
agent: new http.Agent({ maxSockets: 1 }),
37+
host: '127.0.0.1',
38+
port: common.PORT,
39+
path: '/',
40+
method: 'POST'
41+
};
42+
43+
var server = http.createServer(function(req, res) {
44+
res.end();
45+
});
46+
server.listen(options.port, options.host, function() {
47+
setTimeout(done, dur * 1000);
48+
bench.start();
49+
pummel();
50+
});
51+
52+
function pummel() {
53+
var req = http.request(options, function(res) {
54+
nreqs++;
55+
pummel(); // Line up next request.
56+
res.resume();
57+
});
58+
if (conf.method === 'write') {
59+
req.write(chunk, encoding);
60+
req.end();
61+
} else {
62+
req.end(chunk, encoding);
63+
}
64+
}
65+
66+
function done() {
67+
bench.end(nreqs);
68+
}
69+
}

configure

+19-13
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import sys
1010
CC = os.environ.get('CC', 'cc')
1111

1212
root_dir = os.path.dirname(__file__)
13-
sys.path.insert(0, os.path.join(root_dir, 'deps', 'v8', 'tools'))
13+
sys.path.insert(0, os.path.join(root_dir, 'tools', 'gyp', 'pylib'))
14+
from gyp.common import GetFlavor
1415

1516
# parse our options
1617
parser = optparse.OptionParser()
@@ -236,7 +237,7 @@ parser.add_option("--dest-os",
236237
action="store",
237238
dest="dest_os",
238239
help="Operating system to build for. Valid values are: "
239-
"win, mac, solaris, freebsd, linux")
240+
"win, mac, solaris, freebsd, openbsd, linux")
240241

241242
parser.add_option("--no-ifaddrs",
242243
action="store_true",
@@ -462,18 +463,18 @@ def configure_node(o):
462463
# By default, enable DTrace on SunOS systems. Don't allow it on other
463464
# systems, since it won't work. (The MacOS build process is different than
464465
# SunOS, and we haven't implemented it.)
465-
if sys.platform.startswith('sunos') or sys.platform.startswith('darwin'):
466+
if flavor in ('solaris', 'mac'):
466467
o['variables']['node_use_dtrace'] = b(not options.without_dtrace)
467468
o['variables']['uv_use_dtrace'] = o['variables']['node_use_dtrace']
468469
o['variables']['uv_parent_path'] = '/deps/uv/'
469-
elif sys.platform.startswith('linux'):
470+
elif flavor == 'linux':
470471
o['variables']['node_use_dtrace'] = 'false'
471472
o['variables']['node_use_systemtap'] = b(options.with_dtrace)
472473
if options.systemtap_includes:
473474
o['include_dirs'] += [options.systemtap_includes]
474475
elif options.with_dtrace:
475476
raise Exception(
476-
'DTrace is currently only supported on SunOS or Linux systems.')
477+
'DTrace is currently only supported on SunOS, MacOS or Linux systems.')
477478
else:
478479
o['variables']['node_use_dtrace'] = 'false'
479480
o['variables']['node_use_systemtap'] = 'false'
@@ -482,15 +483,15 @@ def configure_node(o):
482483
o['defines'] += ['SUNOS_NO_IFADDRS']
483484

484485
# By default, enable ETW on Windows.
485-
if sys.platform.startswith('win32'):
486+
if flavor == 'win':
486487
o['variables']['node_use_etw'] = b(not options.without_etw);
487488
elif options.with_etw:
488489
raise Exception('ETW is only supported on Windows.')
489490
else:
490491
o['variables']['node_use_etw'] = 'false'
491492

492493
# By default, enable Performance counters on Windows.
493-
if sys.platform.startswith('win32'):
494+
if flavor == 'win':
494495
o['variables']['node_use_perfctr'] = b(not options.without_perfctr);
495496
elif options.with_perfctr:
496497
raise Exception('Performance counter is only supported on Windows.')
@@ -603,7 +604,7 @@ def configure_openssl(o):
603604

604605

605606
def configure_winsdk(o):
606-
if not sys.platform.startswith('win32'):
607+
if flavor != 'win':
607608
return
608609

609610
winsdk_dir = os.environ.get("WindowsSdkDir")
@@ -616,6 +617,13 @@ def configure_winsdk(o):
616617
print "ctrpp not found in WinSDK path--using pre-gen files from tools/msvs/genfiles."
617618

618619

620+
# determine the "flavor" (operating system) we're building for,
621+
# leveraging gyp's GetFlavor function
622+
flavor_params = {};
623+
if (options.dest_os):
624+
flavor_params['flavor'] = options.dest_os;
625+
flavor = GetFlavor(flavor_params);
626+
619627
output = {
620628
'variables': { 'python': sys.executable },
621629
'include_dirs': [],
@@ -668,14 +676,12 @@ write('config.mk',
668676
'# Do not edit. Generated by the configure script.\n' + config)
669677

670678
if options.use_ninja:
671-
gyp_args = ['-f', 'ninja']
679+
gyp_args = ['-f', 'ninja-' + flavor]
672680
elif options.use_xcode:
673681
gyp_args = ['-f', 'xcode']
674-
elif os.name == 'nt':
682+
elif flavor == 'win':
675683
gyp_args = ['-f', 'msvs', '-G', 'msvs_version=auto']
676-
elif options.dest_os:
677-
gyp_args = ['-f', 'make-' + options.dest_os]
678684
else:
679-
gyp_args = ['-f', 'make']
685+
gyp_args = ['-f', 'make-' + flavor]
680686

681687
subprocess.call([sys.executable, 'tools/gyp_node'] + gyp_args)

deps/npm/html/api/bin.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
1919
<p>This function should not be used programmatically. Instead, just refer
2020
to the <code>npm.bin</code> member.</p>
2121
</div>
22-
<p id="footer">bin &mdash; [email protected].21</p>
22+
<p id="footer">bin &mdash; [email protected].23</p>
2323
<script>
2424
;(function () {
2525
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/bugs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525
<p>This command will launch a browser, so this command may not be the most
2626
friendly for programmatic use.</p>
2727
</div>
28-
<p id="footer">bugs &mdash; [email protected].21</p>
28+
<p id="footer">bugs &mdash; [email protected].23</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/commands.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
2828

2929
<ul><li><a href="../doc/index.html">index(1)</a></li></ul>
3030
</div>
31-
<p id="footer">commands &mdash; [email protected].21</p>
31+
<p id="footer">commands &mdash; [email protected].23</p>
3232
<script>
3333
;(function () {
3434
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/config.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3333

3434
<ul><li><a href="../api/npm.html">npm(3)</a></li></ul>
3535
</div>
36-
<p id="footer">config &mdash; [email protected].21</p>
36+
<p id="footer">config &mdash; [email protected].23</p>
3737
<script>
3838
;(function () {
3939
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/deprecate.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3232

3333
<ul><li><a href="../api/publish.html">publish(3)</a></li><li><a href="../api/unpublish.html">unpublish(3)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
3434
</div>
35-
<p id="footer">deprecate &mdash; [email protected].21</p>
35+
<p id="footer">deprecate &mdash; [email protected].23</p>
3636
<script>
3737
;(function () {
3838
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/docs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525
<p>This command will launch a browser, so this command may not be the most
2626
friendly for programmatic use.</p>
2727
</div>
28-
<p id="footer">docs &mdash; [email protected].21</p>
28+
<p id="footer">docs &mdash; [email protected].23</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3030
<p>Since this command opens an editor in a new process, be careful about where
3131
and how this is used.</p>
3232
</div>
33-
<p id="footer">edit &mdash; [email protected].21</p>
33+
<p id="footer">edit &mdash; [email protected].23</p>
3434
<script>
3535
;(function () {
3636
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/explore.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2424

2525
<p>The first element in the &#39;args&#39; parameter must be a package name. After that is the optional command, which can be any number of strings. All of the strings will be combined into one, space-delimited command.</p>
2626
</div>
27-
<p id="footer">explore &mdash; [email protected].21</p>
27+
<p id="footer">explore &mdash; [email protected].23</p>
2828
<script>
2929
;(function () {
3030
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/help-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3232

3333
<p>The silent parameter is not neccessary not used, but it may in the future.</p>
3434
</div>
35-
<p id="footer">help-search &mdash; [email protected].21</p>
35+
<p id="footer">help-search &mdash; [email protected].23</p>
3636
<script>
3737
;(function () {
3838
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/init.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3535

3636
<p><a href="../doc/json.html">json(1)</a></p>
3737
</div>
38-
<p id="footer">init &mdash; [email protected].21</p>
38+
<p id="footer">init &mdash; [email protected].23</p>
3939
<script>
4040
;(function () {
4141
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/install.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525
<p>Finally, &#39;callback&#39; is a function that will be called when all packages have been
2626
installed or when an error has been encountered.</p>
2727
</div>
28-
<p id="footer">install &mdash; [email protected].21</p>
28+
<p id="footer">install &mdash; [email protected].23</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/link.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3939
<p>Now, any changes to the redis package will be reflected in
4040
the package in the current working directory</p>
4141
</div>
42-
<p id="footer">link &mdash; [email protected].21</p>
42+
<p id="footer">link &mdash; [email protected].23</p>
4343
<script>
4444
;(function () {
4545
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/load.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3232

3333
<p>For a list of all the available command-line configs, see <code>npm help config</code></p>
3434
</div>
35-
<p id="footer">load &mdash; [email protected].21</p>
35+
<p id="footer">load &mdash; [email protected].23</p>
3636
<script>
3737
;(function () {
3838
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/ls.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h3 id="global">global</h3>
5959
This means that if a submodule a same dependency as a parent module, then the
6060
dependency will only be output once.</p>
6161
</div>
62-
<p id="footer">ls &mdash; [email protected].21</p>
62+
<p id="footer">ls &mdash; [email protected].23</p>
6363
<script>
6464
;(function () {
6565
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/npm.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="SYNOPSIS">SYNOPSIS</h2>
2424

2525
<h2 id="VERSION">VERSION</h2>
2626

27-
<p>1.2.21</p>
27+
<p>1.2.23</p>
2828

2929
<h2 id="DESCRIPTION">DESCRIPTION</h2>
3030

@@ -92,7 +92,7 @@ <h2 id="ABBREVS">ABBREVS</h2>
9292

9393
<pre><code>var cmd = npm.deref(&quot;unp&quot;) // cmd === &quot;unpublish&quot;</code></pre>
9494
</div>
95-
<p id="footer">npm &mdash; [email protected].21</p>
95+
<p id="footer">npm &mdash; [email protected].23</p>
9696
<script>
9797
;(function () {
9898
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/outdated.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
1919

2020
<p>If the &#39;packages&#39; parameter is left out, npm will check all packages.</p>
2121
</div>
22-
<p id="footer">outdated &mdash; [email protected].21</p>
22+
<p id="footer">outdated &mdash; [email protected].23</p>
2323
<script>
2424
;(function () {
2525
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/owner.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3434

3535
<ul><li><a href="../api/publish.html">publish(3)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
3636
</div>
37-
<p id="footer">owner &mdash; [email protected].21</p>
37+
<p id="footer">owner &mdash; [email protected].23</p>
3838
<script>
3939
;(function () {
4040
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/pack.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525

2626
<p>If no arguments are supplied, then npm packs the current package folder.</p>
2727
</div>
28-
<p id="footer">pack &mdash; [email protected].21</p>
28+
<p id="footer">pack &mdash; [email protected].23</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/prefix.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2121

2222
<p>This function is not useful programmatically</p>
2323
</div>
24-
<p id="footer">prefix &mdash; [email protected].21</p>
24+
<p id="footer">prefix &mdash; [email protected].23</p>
2525
<script>
2626
;(function () {
2727
var wrapper = document.getElementById("wrapper")

0 commit comments

Comments
 (0)