Andreas Madsen
ab32e9e043
child_process: emit 'channel closed' error instead of throwing
13 years ago
Fedor Indutny
7418905aef
debugger: breakOnException
Do not break automatically on exception, fixes #2926
13 years ago
Fedor Indutny
b6cb6ce0d3
debugger: remove 'repl' command from builtinLibs
* It was displaying useless warning
13 years ago
Fedor Indutny
f61d4b7a87
debugger: exit process on repl exit
* When entering repl - clone 'SIGINT' listeners array (instead of using
existing), as it will be spliced in .removeAllListeners() call later.
13 years ago
Charlie McConnell
c7b8073afc
child_process: Separate 'close' event from 'exit'
Currently, a child process does not emit the 'exit' event until 'close' events
have been received on all three of the child's stdio streams. This change makes
the child object emit 'exit' when the child exits, and a new 'close' event when
all stdio streams are closed.
13 years ago
Nathan Rajlich
928ea564d1
events: don't delete the listeners array in removeListener()
13 years ago
Ben Noordhuis
78dc13fbf9
events: don't delete the listeners array
The documentation implies that .removeAllListeners() leaves the listeners array
untouched. Make it so.
13 years ago
Ben Noordhuis
7fc835afe3
timers: handle negative or non-numeric timeout values
Follows browser behaviour by scheduling the callback on the next tick.
Fixes #593 .
14 years ago
Micheil Smith
19fd5301bf
Expose original argv as process.execArgv for cluster and child_process.fork()
13 years ago
Nathan Rajlich
f214758dd1
repl: better SIGINT handling behavior
Before:
☮ ~ (master) ⚡ node
> asdf
(^C again to quit)
> sdcasd☮ ~ (master) ⚡
Now:
☮ ~/node (repl) ⚡ ./node
> asfs
> sda
>
(^C again to quit)
> scdsdc
> sdcsdc
>
(^C again to quit)
> sdc
>
(^C again to quit)
>
☮ ~/node (repl) ⚡
^ note that each new line above is a ctrl+c sequence
13 years ago
Nathan Rajlich
6b5a34cdf3
repl: remove redundant check of rli.rine.length
It get's set to '' 1 line above, so we know that that's always 0.
13 years ago
Nathan Rajlich
b7ddd30181
repl: make sure the REPL always flushes with a newline
13 years ago
Nathan Rajlich
659d449460
repl: make REPLServer emit an "exit" event
This can happen when "SIGINT" is processed by the readline interface,
or when the user types ".exit" into the REPL.
13 years ago
Nathan Rajlich
4f63f9f327
repl: make REPLServer inherit from EventEmitter
This is because it should emit an "exit" event when "SIGINT" is received
from the readline interface, or when ".exit" is typed by the user.
13 years ago
Nathan Rajlich
109b16d488
repl: use path.resolve() for the module.filename
Windows was seeing: "C:\\path\\to\\cwd/repl"
13 years ago
Christian Ress
c15e6905c4
Added destroy method to Zlib object in zlib.js module
13 years ago
Łukasz Walukiewicz
677c2c112c
Ignore an empty port component when parsing URLs.
13 years ago
isaacs
a10cfba766
module: remove 'exited', replace 'children' array
13 years ago
Nao Iizuka
f8ce384446
docs: correct the description of assert.ok()
13 years ago
ssuda
9b672bcaa2
tls: parsing multiple values of a key in ssl certificate
Fixes #2864 .
13 years ago
Igor Zinkovsky
5ad0140f48
Emit end event only once
fixes #2888
Previously a pair of end events would be emitted if a response was
paused/resumed, and the underlying socket was closed while the
response was paused
13 years ago
Yoshihiro Kikuchi
f82ef0f7c3
http: remove ClientRequest.prototype.pause()
ClientRequest.prototype.pause() is not needed. ClientRequest is a writable
stream and deferring to OutgoingMessage.prototype.pause() is broken, the method
does not exist.
13 years ago
Shea Levy
024451c65c
fork: don't clear environment by default
- Set options.env to process.env instead of {} by default.
- Shallow clone the passed options.env in case the user passed process.env directly.
13 years ago
Colton Baker
c84b3c4b73
readline: ignore stray escape sequence
Fixes #2876 .
13 years ago
ssuda
b72d43cbf9
dgram: fix when we call .close() inside 'listening'
13 years ago
Rlidwka
443071db57
readline: add multiline support
13 years ago
Dmitry Nizovtsev
1e9bcf26ce
net, http, https: add localAddress option
Binds to a local address before making the outgoing connection.
13 years ago
isaacs
959a19e118
lint
13 years ago
ssuda
578ba76e6c
util: fix util.format() formatting of %%
13 years ago
Jimb Esser
78db18739a
tls: proxy set(Timeout|NoDelay|KeepAlive) methods
- fix crash calling ClientRequest::setKeepAlive if the underlying request is
HTTPS.
- fix discarding of callback parameter when calling ClientRequest::setTimeout on
HTTPS requests.
- fix discarding of noDelay parameter when calling ClientRequest::setNoDelay on
HTTPS requests.
13 years ago
Blake Miner
7343f8e776
tls: add `honorCipherOrder` option to tls.createServer()
Documented how to mitigate BEAST attacks.
13 years ago
Joshua Holbrook
56cfcea4b4
child_process: remove dummy "setsid" option setting
13 years ago
Joshua Holbrook
4065b241e8
child_process: remove dummy "setsid" option setting
13 years ago
koichik
cd5d2473a4
net: fix race write() before and after connect()
Fixes #2827 .
13 years ago
koichik
63431796f4
net: fix race write() before and after connect()
Fixes #2827 .
13 years ago
isaacs
44daa9836b
Wrap NodeScript binding class in JavaScript layer
This makes it easy to prevent errors where Script methods
are called on non-script objects, resulting in Assertion failures.
13 years ago
AJ ONeal
493a6bb19a
[ISSUE #2554 #2567 ] throw if fs args for 'start' or 'end' are strings
13 years ago
AJ ONeal
7f58d207f3
[ISSUE #2554 #2567 ] throw if fs args for 'start' or 'end' are strings
13 years ago
Mathias Bynens
483edbdf1a
punycode: Update to v1.0.0
13 years ago
Mathias Bynens
cacd651ec6
punycode: Update to v1.0.0
13 years ago
Roly Fentanes
db8940dae2
`newListener` emits correct fn when using `once`
Fixes #2826 .
13 years ago
isaacs
d3b8372615
lint, missed in QS speed merge
13 years ago
Ben Noordhuis
3502e45b6c
dgram: defer send error to next tick
13 years ago
Ben Noordhuis
defa637378
dgram: fix out-of-bound memory read
13 years ago
Colton Baker
fd61bfc731
readline: ^Z (SIGSTP) handling
Bugfix and update.
- Fixed bug where Node's REPL wouldn't continue when returning from ^Z
(SIGTSTP)
- Removed old readline callback
Readline API update with docs.
- ^Z (SIGTSTP) is now bypassed on Windows systems.
- SIGCONT is now bypassed on Windows systems.
- Docs updated to reflect above.
13 years ago
Colton Baker
ac9fa2b846
Removed `rl.on('close', ...)` callback
13 years ago
Brian White
5e3ca98155
Make QueryString.parse() even faster
13 years ago
Tomasz Buchert
c6a04ce78f
crypto: add function getDiffieHellman()
Returns a well known, predefined RFC group.
13 years ago
Maciej Małecki
da908364a8
tls http https: don't pollute user's `options` object
13 years ago
Maciej Małecki
c6c6f98f1c
util: add `util._extend` for extending objects
There were 2 duplicates with such functionality in `cluster` and
`child_process` modules which were replaced by this function.
13 years ago