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
dd9593ccc4
http: fix ServerResponse does not emit 'close'
Refs #2453 .
13 years ago
Ben Noordhuis
42281124d4
child_process: add isolates support
Passing an options object with {thread:true} to .fork() or .spawn() will run the
target script in a thread instead of a separate process.
13 years ago
Emerson Macedo
aa67b1f375
fs: add appendFile() and appendFileSync() functions
13 years ago
koichik
baebd30eee
http: use `self` insted of `this`
13 years ago
Andreas Madsen
e2f1e50c60
typos
fixes #2465
13 years ago
Andreas Madsen
5f08c3cfa1
cluster improvements: Worker class and isolate internal messages
Fixes #2388
13 years ago
isaacs
8e57398b20
Fix #2034 repl message for .clear when useGlobal=true
13 years ago
Ben Noordhuis
c24276f008
net: defer net.Server 'close' event to next tick
13 years ago
Damon Oehlman
744ed46970
repl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor
13 years ago
Ryan Dahl
4428b70cba
Add isolate version of test-child-process-fork
13 years ago
koichik
a848a3efbf
net: fix Socket.pause null reference when called on a closed Stream
Fixes #1980 .
13 years ago
Ryan Dahl
b319699132
Add isolate version of test-child-process-fork
13 years ago
koichik
a337ac7584
http: fix XMLHttpRequest piped in a writable file stream hangs next request
Fixes #2263 .
13 years ago
koichik
b962ff35dd
tls: fix test-https-client-reject fails
Fixes #2417 .
13 years ago
koichik
e6b6075024
http: Avoid 'data'/'end' events after pause()
Fixes #1040 .
13 years ago
koichik
7aa5924dc6
http: fix resource leak
Fixes #2069
13 years ago
Ryan Dahl
48a9a2d355
Add deprecation message for http.Client
13 years ago
Phil Sung
cf2513e1aa
buffer: don't pollute global namespace in buffer.readInt*
13 years ago
Ju-yeong Park
5976d58796
net: raise exception when the socket is closed
13 years ago
Ben Noordhuis
d8c178bc16
timers: fix performance regression
Fix a 5-7% performance regression in the http_simple benchmark that was
introduced by the following commits:
348d8cd
timers: remove _idleTimeout from item in .unenroll()
f2f3028
timers: fix memory leak in setTimeout
098fef6
timers: remember extra setTimeout() arguments when timeout==0
Fix suggested by Bert Belder.
13 years ago
koichik
07c27e040e
tls: Fix node swallows openssl error on request
Fixes #2308 .
Fixes #2246 .
13 years ago
Ben Noordhuis
7a7f1062bf
tls: remove duplicate assignment
13 years ago
Bert Belder
f4e34f1b76
Remove unnecessary statement
13 years ago
James Hartig
348d8cd04a
timers: remove _idleTimeout from item in .unenroll()
Stops .active() from reactivating the timer.
Fixes #2114 .
13 years ago
Maciej Małecki
5c7532e5b3
assert: test `RegExp`'s properties when checking for equality
Previous code ignored the fact that `/a/ != /a/g`.
Test case included.
13 years ago
Pedro Teixeira
a805012d6f
assert: .deepEqual() support for RegExp objects
14 years ago
Fedor Indutny
d87f551f36
debugger: Request backtrace w/o refs, see #1745
Fixes #2379
13 years ago
Andreas Madsen
3966e4e7a5
Remove debug console.log and optimize object copy
Fixes #2380
13 years ago
Andreas Madsen
07b1997388
Add env argument to cluster.fork
Fixes 2378
13 years ago
Fedor Indutny
80858761a8
break on exception
Fixes #2304
13 years ago
Fedor Indutny
a239ea0d40
use inlineRefs, as it's already impl
13 years ago
Fedor Indutny
b00b2f08bf
pass noRefs as arguments
13 years ago
Fedor Indutny
b0388ccad0
pause command
13 years ago
Fedor Indutny
07ad11916f
allow setBreakpoint(line)
13 years ago
Fedor Indutny
c07edd90f5
preserve cursor pos
* configurable via .prompt()'s preserveCursor argument (false by default)
13 years ago
Fedor Indutny
d9377f5eb0
request backtrace w/o refs, see #1745
13 years ago
Nathan Rajlich
3f987cd925
module: Set the error.code to 'MODULE_NOT_FOUND' when a bad path is given to require.
Fixes #2358 .
13 years ago
Avi Flax
ee0a7b928b
util: output Dates with Date.toString not Date.toUTCString
13 years ago
Yoshihiro Kikuchi
f2f30286bf
timers: fix memory leak in setTimeout
Closing handle is leaked when setTimeout called with arguments which are
1. a callback
2. zero delay
(i.e. setTimeout(function(){}, 0); )
13 years ago
Ben Noordhuis
6df7bdd954
child_process: make .send() throw if message is undefined
JSON.stringify(undefined) returns "undefined" but JSON.parse() doesn't know how
to parse that.
13 years ago
Andreas Madsen
b084322f52
Add silent option to child_process.fork
Fixes #2354 .
13 years ago
Andreas Madsen
a599aeb2a8
jslint
Fixes #2306
13 years ago
Igor Zinkovsky
d6bae2cb95
document mode argument for fs.symlink
13 years ago
Ben Noordhuis
97900776bb
util: add internal function _deprecationWarning()
13 years ago
Ben Noordhuis
b1b3dc62ff
fs: handle fractional or NaN ReadStream buffer size
Fixes #2320 .
13 years ago
Ben Noordhuis
8295c80618
net: check status code in afterWrite
Fixes memory leak and spin on writing to dead fds. This was tested in
production.
13 years ago
koichik
f8c335d0ca
tls: enable rejectUnauthorized option to client
Fiexes #2247 .
13 years ago
isaacs
580e67015c
Apply #2257 fix for Pipe streams as well as TTYs
13 years ago