Charlie McConnell
4b021a3541
child_process: expose UV_PROCESS_DETACHED as options.detached
13 years ago
Fedor Indutny
3116522e7c
child_process: spawn().ref() and spawn().unref()
13 years ago
Bert Belder
f482236665
windows: don't print error when GetConsoleTitleW returns an empty string
13 years ago
isaacs
1285cd9011
Now working on 0.6.20
13 years ago
Joel Brandt
b9c5eee7d9
add NODE_EXTERN to node::Start
13 years ago
isaacs
debf552ed2
2012.06.06 Version 0.6.19 (stable)
* npm: upgrade to 1.1.24
* fs: no end emit after createReadStream.pause() (Andreas Madsen)
* vm: cleanup module memory leakage (Marcel Laverdet)
* unix: fix loop starvation under high network load (Ben Noordhuis)
* unix: remove abort() in ev_unref() (Ben Noordhuis)
* windows/tty: never report error after forcibly aborting line-buffered read (Bert Belder)
* windows: skip GetFileAttributes call when opening a file (Bert Belder)
13 years ago
Ben Noordhuis
27061cc9f4
udp_wrap, stream_wrap: lazy init slab allocator
Create slab allocator when binding is initialized.
Add an AtExit handler to destroy the slab before the VM shuts down, it can't be
disposed when V8 is dead and Valgrind will complain about memory leaks.
13 years ago
Ben Noordhuis
cc0e7efb37
slab_allocator: fix crash in dtor if V8 is dead
Don't try to dispose the persistent handles if the VM is already dead, it
triggers an assertion inside V8.
13 years ago
Shigeki Ohtsu
208d1715a7
slab_allocator: fix leak of Persistent handles
13 years ago
Fedor Indutny
af98fc9d5f
child_process: new stdio API for .spawn() method
13 years ago
isaacs
dc8b488bbe
Now working on 0.7.10
13 years ago
Fedor Indutny
761e0c460a
deps: upgrade libuv to 7556590
13 years ago
isaacs
782277f11a
2012.05.28, Version 0.7.9 (unstable)
* Upgrade V8 to 3.11.1
* Upgrade npm to 1.1.23
* uv: rework reference counting scheme (Ben Noordhuis)
* uv: add interface for joining external event loops (Bert Belder)
* repl, readline: Handle Ctrl+Z and SIGCONT better (Nathan Rajlich)
* fs: 64bit offsets for fs calls (Igor Zinkovsky)
* fs: add sync open flags 'rs' and 'rs+' (Kevin Bowman)
* windows: enable creating directory junctions with fs.symlink (Igor Zinkovsky, Bert Belder)
* windows: fix fs.lstat to properly detect symlinks. (Igor Zinkovsky)
* Fix #3270 Escape url.parse delims (isaacs)
* http: make http.get() accept a URL (Adam Malcontenti-Wilson)
* Cleanup vm module memory leakage (Marcel Laverdet)
* Optimize writing strings with Socket.write (Bert Belder)
* add support for CESU-8 and UTF-16LE encodings (koichik)
* path: add path.sep to get the path separator. (Yi, EungJun)
* net, http: add backlog parameter to .listen() (Erik Dubbelboer)
* debugger: support mirroring Date objects (Fedor Indutny)
* addon: add AtExit() function (Ben Noordhuis)
* net: signal localAddress bind failure in connect (Brian Schroeder)
* util: handle non-string return value in .inspect() (Alex Kocharin)
13 years ago
Igor Zinkovsky
b4ed3c1969
remove NODE_USE_64BIT_UV_FS_API
13 years ago
Igor Zinkovsky
39e25528eb
windows: enable creating directory junctions with fs.symlink
13 years ago
Ben Noordhuis
039fac633e
deps: upgrade libuv to a478847
The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
13 years ago
Andreas Madsen
81a4edcf6a
cluster: remove NODE_UNIQUE_ID from env on startup
In case a worker would spawn a new subprocess with process.env, NODE_UNIQUE_ID
would have been a part of the env. Making the new subprocess believe it is a
worker, this would result in some confusion if the subprocess where to listen to
a port, since the server handle request would then be relayed to the worker.
This patch removes the NODE_UNIQUE_ID flag from process.env on startup so any
subprocess spawned by a worker is a normal process with no cluster stuff.
13 years ago
Oleg Efimov
968b49ba0a
Check for tabs in source line in DisplayExceptionLine
Fix for joyent/node#3280
13 years ago
Marcel Laverdet
7865c5c51d
vm: cleanup module memory leakage
There are some paths here that led to dangling contexts. By being smarter with
handle management we can get rid of all the cleanup code and fix those issues.
This is a backport of commit 7063575
.
13 years ago
isaacs
a3753b496e
Revert "Fix #3242 Actually deprecate 'binary' buffer encoding"
This reverts commit 5979f096d1
.
Related:
- #3279
- #3278
13 years ago
Ben Noordhuis
e813e3491e
node: make _getActiveHandles() return user objects
Before this commit, process._getActiveHandles() returned a list of internal
handles. Now, it returns the user objects that handles are attached to.
For example, a tcp_wrap handle will now return its parent net.Socket object.
It works for all handle types except timers because timer handles are shared
across multiple user objects.
13 years ago
Ben Noordhuis
5f0406534c
process: add _getActiveHandles(), _getActiveRequests()
* process._getActiveHandles() returns a list containing all active handles
(timers, sockets, etc.) that have not been unref'd.
* process._getActiveRequests() returns a list of active requests (in-flight
actions like connecting to a remote host, writing data to a socket, etc.).
13 years ago
Ben Noordhuis
636add246c
req_wrap: share process_symbol, domain_symbol
Share persistent strings process_symbol and domain_symbol across compilation
units. Avoids redefinition errors when src/node.cc includes src/req_wrap.h.
13 years ago
isaacs
f19f980724
Now working on 0.6.19
13 years ago
isaacs
4bc1d395de
2012.05.15 Version 0.6.18 (stable)
* windows: skip GetFileAttributes call when opening a file (Bert Belder)
* crypto: add PKCS12/PFX support (Sambasiva Suda)
* #3240 : child_process: delete NODE_CHANNEL_FD from env in spawn (Ben Noordhuis)
* windows: add test for path.normalize with UNC paths (Bert Belder)
* windows: make path.normalize convert all slashes to backslashes (Bert Belder)
* fs: Automatically close FSWatcher on error (Bert Belder)
* #3258 : fs.ReadStream.pause() emits duplicate data event (koichik)
* pipe_wrap: don't assert() on pipe accept errors (Ben Noordhuis)
* Better exception output for module load and process.nextTick (Felix Geisendörfer)
* zlib: fix error reporting (Ben Noordhuis)
* http: Don't destroy on timeout (isaacs)
* #3231 : http: Don't try to emit error on a null'ed req object (isaacs)
* #3236 : http: Refactor ClientRequest.onSocket (isaacs)
13 years ago
ssuda
fb7348ae06
crypto: add PKCS12/PFX support
Fixes #2845 .
13 years ago
Ben Noordhuis
bd907174e8
node: delete NODE_CHANNEL_FD from env
Prevents accidental inheritance by child processes. If the child process is a
node process, it would try to set up a channel with the parent and consequently
never quit because the channel kept the event loop alive.
Fixes #3240 .
13 years ago
Ben Noordhuis
3883f22ad1
pipe_wrap: don't assert() on pipe accept errors
Pass errors to the onconnection callback.
13 years ago
Felix Geisendörfer
814033365b
Fix process.nextTick throw call sites
This patch now reports the proper throw call site for exceptions
triggered within process.nextTick. So instead of this:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
You will now see:
mydir/myscript.js:15
throw new Error('My Error');
^
From my testing this patch causes no performance regressions, but does
greatly simplify processing the nextTickQueue.
13 years ago
isaacs
5979f096d1
Fix #3242 Actually deprecate 'binary' buffer encoding
13 years ago
Ben Noordhuis
7d2e68fdbd
stream_wrap: fix compilation errors
13 years ago
Bert Belder
b673d0670f
Net.js: fix UCS2 write crash due to inconsistent naming
13 years ago
Ben Noordhuis
ee437c0557
zlib: fix error reporting
This commit is a back-port of the changes on the master branch.
Fixes #3230 .
13 years ago
Bert Belder
4624cf1214
stream_wrap.cc: fix typo
13 years ago
Bert Belder
726ebad9bc
StreamWrap::WriteBuffer: remove superfluous arguments
13 years ago
Bert Belder
0e57aafbb1
Optimize writing strings with Socket.write
13 years ago
Ben Noordhuis
78e831a31c
Don't use _snprintf() on Windows, it's not safe.
_snprintf() doesn't zero-terminate the buffer on overflow. Use the hand-rolled
version that lives in src/node_internals.h.
13 years ago
Marcel Laverdet
c33d3174b8
node: un-revert 9a6012e
The crashes in debug mode after adding Locker are *not* caused by
Locker. Locker is merely exposing issues that already existed. Some of
these issues have since been fixed in 70635753
.
This reverts commit 407181538b
.
This reapplies commit 9a6012edd9
.
Conflicts:
src/node.cc
13 years ago
isaacs
992e3464b8
Now working on 0.6.18
13 years ago
isaacs
4ced23deaf
2012.05.04 Version 0.6.17 (stable)
* Upgrade npm to 1.1.21
* uv: Add support for EROFS errors (Ben Noordhuis, Maciej Małecki)
* uv: Add support for EIO and ENOSPC errors (Fedor Indutny)
* windows: Add support for EXDEV errors (Bert Belder)
* http: Fix client memory leaks (isaacs, Vincent Voyer)
* fs: fix file descriptor leak in sync functions (Ben Noordhuis)
* fs: fix ReadStream / WriteStream double close bug (Ben Noordhuis)
13 years ago
Ben Noordhuis
e4a8d2617b
addon: add AtExit() function
Lets native addons register exit hooks that run after the event loop has quit
but before the VM is killed.
Fixes #3147 .
13 years ago
Igor Zinkovsky
6f82b9f482
64bit offsets for fs calls
13 years ago
Ben Noordhuis
880219645e
tcp, udp: share sockaddr-to-object function
Share AddressToJS() function between tcp_wrap.cc and udp_wrap.cc.
13 years ago
Nathan Rajlich
b894521bd2
process: ensure that "exit" doesn't get emitted twice on a natural exit
Fixes "test/simple/test-process-exit.js".
13 years ago
isaacs
acf19500ee
Now working on 0.6.17
13 years ago
Fedor Indutny
9f9c333cbc
vm: accept only object as arg of .createContext()
Converting strings and others to objects is very slow and essentially
wrong.
13 years ago
Ben Noordhuis
b45a10818e
udp: slightly optimize address family property
13 years ago
Ben Noordhuis
e747daf604
udp: make variable names consistent
13 years ago
Shigeki Ohtsu
94f1feeb59
udp: make getsockname() return address family name
13 years ago