mrb
bd9fa2e841
dgram: use slab memory allocator
Change udp memory allocation scheme from uv_buf_init to slab allocation. Takes
slab allocation scheme from stream_wrap.
13 years ago
Nathan Rajlich
f2ba4cef2a
build: remove the old -DPLATFORM="mac" define
To prevent redefinition warnings.
13 years ago
Nathan Rajlich
9ff86a2848
build: set `process.platform` to "darwin" on OS X
This is consistent with the old waf build system, and doesn't break old scripts
that are expecting the value to be "darwin".
Fixes #2518 .
13 years ago
Ben Noordhuis
465e22e62f
docs: clarify filename argument of vm.* functions
13 years ago
koichik
7dffbaf2ce
http: Upgrade/CONNECT request should detach its socket earlier
With Upgrade or CONNECT request, http.ClientRequest emits 'close' event
after its socket is closed. However, after receiving a response, the socket
is not under management by the request.
http.ClientRequest should detach the socket before 'upgrade'/'connect'
event is emitted to pass the socket to a user. After that, it should
emit 'close' event immediately without waiting for closing of the socket.
Fixes #2510 .
13 years ago
Igor Zinkovsky
247d0da188
update libuv to 855764406e
fixes #2521
13 years ago
Fedor Indutny
71ae175319
zlib: reset() method for deflate/inflate streams
* ammended test-zlib-dictionary to cover reusing streams
13 years ago
Fedor Indutny
89556f5a2f
zlib: C++ style fixes for dictionary
13 years ago
Fedor Indutny
9e6957b0a5
Merge branch 'v0.6'
Conflicts:
src/handle_wrap.cc
src/node_zlib.cc
src/process_wrap.cc
13 years ago
Fedor Indutny
07701e7cc8
zlib: C++ style fixes
13 years ago
Mathias Bynens
8abb73ef58
punycode: Update to v0.3.0
13 years ago
Maciej Małecki
b073989e17
makefile: ignore `lib/punycode.js` while linting
`punycode` is a third party code which generates a lot of lint errors.
Upstream was contacted in order to fix it in bestiejs/punycode.js#6, but
request was denied.
Therefore, it's reasonable to exclude this file from linting process.
Ref #2456 .
13 years ago
Andreas Madsen
c8108aad83
child_process: fix typo in internal message event name
13 years ago
isaacs
8cca30f31b
zlib binding cleanup
* Add assert to prevent parallel writes
* Embed request object instead of using new/delete
* Remove unnecessary WorkReqWrap in favor of uv_work_t
* Use container_of instead of req->data
Along with 2d8af39acc
and
0ad2717fd8
, this should Fix #2504 .
13 years ago
Ryan Dahl
290bc0c067
Use .jpg instead of .bmp for .msi
smaller.
13 years ago
Maciej Małecki
4d49469d0d
child_process: fix typo in internal message event name
13 years ago
Ryan Dahl
e1b829d2a5
Add broken test-isolates3.js
13 years ago
Ben Noordhuis
0ad2717fd8
Make sure that zlib contexts are not garbage collected when busy
13 years ago
Bert Belder
2d8af39acc
Fix memory leak in node_zlib
13 years ago
Ryan Dahl
d4ee61ffc7
Add failing test-isolates2.js
13 years ago
Ryan Dahl
e6a30bd107
Fix #2473
Tested in production.
See also http://code.google.com/p/v8/issues/detail?id=1889
13 years ago
Fedor Indutny
4cbcdb4b2c
test: make debugger-repl tests work with isolates
13 years ago
Ben Noordhuis
7cee968c21
isolates: add process-global list of isolates
13 years ago
Fedor Indutny
6b2091b58a
debug threads
13 years ago
Fedor Indutny
99679c6430
IsolateDebugger C++
13 years ago
Fedor Indutny
44e7033279
fixed debugger segfaults
13 years ago
Fedor Indutny
a5f74b4da7
added isolates support
13 years ago
Ben Noordhuis
97e4b3a7bf
isolates: drain message queue completely
13 years ago
Andreas Madsen
787f62de8c
Improve test-child-process-silent
13 years ago
Ryan Dahl
b28e700ebd
require('sys') now throws
To be removed in v0.9
13 years ago
Ben Noordhuis
b07acb3808
child_process: fix segfault after failed spawn
The process handle is uninitialized when uv_spawn() fails so don't export the
handle to JS land when that happens. Attempts to close the uninitialized handle
resulted in segmentation faults and memory corruption.
Fixes #2481 .
13 years ago
Ben Noordhuis
d5d043f2d7
handle_wrap: guard against uninitialized handle or double close
13 years ago
Ryan Dahl
8b28d599a7
Merge remote branch 'origin/v0.6'
Conflicts:
Makefile
configure
src/node_version.h
13 years ago
Ben Noordhuis
cc5cea35b0
uv: upgrade to 803f5a0
13 years ago
Ryunosuke SATO
22d7fe1206
events: fix checking max listeners with `1`
Fixes #2490 .
13 years ago
koichik
08a91acd76
http: better support for CONNECT method.
Introduces 'connect' event on both client (http.ClientRequest) and
server (http.Server).
Refs: #2259 , #2474 .
Fixes #1576 .
13 years ago
koichik
c1a63a9e90
tls: Allow establishing secure connection on the existing socket
This is necessary to use SSL over HTTP tunnels.
Refs #2259 , #2474 .
Fixes #2489 .
13 years ago
koichik
70033bd960
net: make connect() accept options
This makes API even with tls.connect().
Refs #1983 .
See also:
http://groups.google.com/group/nodejs-dev/msg/3b6dbcc4a9a82d99
Fixes #2487 .
13 years ago
Ben Noordhuis
9a79bb694e
Avoid unnecessary buffer to string conversion.
Speeds up the benchmark below by about 680% (0.5s versus 3.4s on my Core 2 Duo).
var crypto = require('crypto');
var hash = crypto.createHash('sha1');
var data = new Buffer(1024);
for (var i = 0; i < 128 * 1024; ++i) hash.update(data);
Fixes #2494 .
13 years ago
Ben Noordhuis
472a72d27f
build: honour the PYTHON environment variable
Overrides the path to the python binary. Defaults to `python`.
13 years ago
Maciej Małecki
0321adbcf4
tls doc: update docs to reflect API change
Refs #1983 .
13 years ago
Maciej Małecki
39484f49ef
test tls: make tests use new `tls.connect` API
Refs #1983 .
13 years ago
Maciej Małecki
df0edf5fe6
https: make `https` use new `tls.connect` API
Refs #1983 .
13 years ago
Maciej Małecki
4b4d059791
tls: make `tls.connect` accept port and host in `options`
Previous API used form:
tls.connect(443, "google.com", options, ...)
now it's replaced with:
tls.connect({port: 443, host: "google.com", ...}, ...)
It simplifies argument parsing in `tls.connect` and makes the API
consistent with other parts.
Fixes #1983 .
13 years ago
koichik
9ef3c6238b
docs: fix ChangeLog
13 years ago
koichik
57653added
docs: small changes.
13 years ago
isaacs
ff4096f958
Now working on v0.6.8
13 years ago
isaacs
d5a189acef
2012.01.06, Version 0.6.7 (stable)
* V8 hash collision fix (Breaks MIPS) (Bert Belder, Erik Corry)
* Upgrade V8 to 3.6.6.15
* Upgrade npm to 1.1.0-beta-10 (isaacs)
* many doc updates (Ben Noordhuis, Jeremy Martin, koichik, Dave Irvine,
Seong-Rak Choi, Shannen, Adam Malcontenti-Wilson, koichik)
* Fix segfault in node_http_parser.cc
* dgram, timers: fix memory leaks (Ben Noordhuis, Yoshihiro Kukuchi)
* repl: fix repl.start not passing the `ignoreUndefined` arg (Damon Oehlman)
* #1980 : Socket.pause null reference when called on a closed Stream (koichik)
* #2263 : XMLHttpRequest piped in a writable file stream hang (koichik)
* #2069 : http resource leak (koichik)
* buffer.readInt global pollution fix (Phil Sung)
* timers: fix performance regression (Ben Noordhuis)
* #2308 , #2246 : node swallows openssl error on request (koichik)
* #2114 : timers: remove _idleTimeout from item in .unenroll() (James Hartig)
* #2379 : debugger: Request backtrace w/o refs (Fedor Indutny)
* simple DTrace ustack helper (Dave Pacheco)
* crypto: rewrite HexDecode without snprintf (Roman Shtylman)
* crypto: don't ignore DH init errors (Ben Noordhuis)
13 years ago
isaacs
d84a6ba3d1
Remove snapshot from Mac binary build
13 years ago
Ryan Dahl
bca88b2dc1
support nosnapshot in vcbuild.bat
13 years ago