Ryan Dahl
d5a21a29f8
getaddrinfo returns ENOTFOUND for invalid domain names
change test-http-dns-error to reflect this.
13 years ago
Ryan Dahl
de09168e5a
Emit 'end' from crypto streams on close
Fixes test/simple/test-tls-peer-certificate.js on Windows
Patch from bnoordhuis.
See also 75a0cf970f
13 years ago
isaacs
2d02e6a992
Add useGlobal flag for standard node repl
13 years ago
isaacs
caf70f5e94
Revert "Don't use a separate context for the repl."
This reverts commit b70fed48a7
.
13 years ago
Ben Noordhuis
84d0b1bcc5
http: improve http parser bindings
Speeds up HTTP benchmarks by 10% on average.
13 years ago
Ryan Dahl
c83dda89a4
dns.lookup uses cares_wrap::GetAddrInfo
13 years ago
Nathan Rajlich
95d530f2b4
repl: print out `undefined`
util.inspect() has a special case for "undefined", so it's nice to be able to
distinguish visually that undefined is the result of an expression.
13 years ago
Fedor Indutny
b43eb9678b
debugger: fix backtrace err handling
13 years ago
isaacs
b70fed48a7
Don't use a separate context for the repl.
Fix #1484
Fix #1834
Fix #1482
Fix #771
It's been a while now, and we've seen how this separate context thing
works. It constantly confuses people, and no one actually uses '.clear'
anyway, so the benefit of that feature does not justify the constant
WTFery.
This makes repl.context actually be a getter that returns the global
object, and prints a deprecation warning. The '.clear' command is gone,
and will report that it's an invalid repl keyword. Tests updated to
allow the require, module, and exports globals, which are still
available in the repl just like they were before, by making them global.
13 years ago
Ryan Dahl
6cc0c9e6a9
Remove superfluous nextTick during server binding
This breaks fork().send({}, server._handle) after server.listen() because
server._handle is not set.
13 years ago
Ryan Dahl
d77ce4b998
Fixes #1860 . Remove process.writeError
Breaks a few tests in "make test-message"
13 years ago
Yoshihiro Kikuchi
f90ba61478
http: tiny fix in http.js
Fixes #1885 .
13 years ago
koichik
d6191f593d
net: fix error handling in listen()
Fixes #1894 .
13 years ago
koichik
68cc173c6d
tls: The TLS API is inconsistent with the TCP API
Add 'secureConnect' event to tls.CleartextStream.
Fixes #1467 .
13 years ago
Ben Noordhuis
0b92fa0e93
net: fix connect queue bugs
This commit fixes two bugs in the handling of write requests when the connect()
call is still in progress.
1. The deferred write request's size was counted twice towards `.bytesWritten`.
2. The callback was not called. After connecting, `Socket.write()` was called
with three arguments (data, encoding, cb) but it ignored the third argument.
Coincidentally fixes test/simple/test-net-connect-buffer.js.
13 years ago
Ben Noordhuis
6df574b744
net: properly account multi-byte chars in .bytesWritten
13 years ago
koichik
19a855382c
tls: requestCert unusable with Firefox and Chrome
Fixes #1516 .
13 years ago
koichik
a09b747f30
child_process.fork: don't modify args
Fixes #1888 .
13 years ago
isaacs
59a5262041
Fix #1882 zlib Update 'availOutBefore' value, and test
13 years ago
Simen Brekken
4b0e36810a
net: register net.Server callback only once
Only register once for listening when passing a callback to Server.listen(),
this prevents servers recycled using close() from invoking the callback when
Server.listen() is called later.
13 years ago
Ryan Dahl
3a34972672
Fix test-http-conn-reset.js on OSX
13 years ago
Ryan Dahl
7b4370e5f8
Fix test/pummel/test-watch-file.js
13 years ago
Ryan Dahl
651b8a06d6
Fix test/pummel/test-exec.js
13 years ago
Daniel Ennis
59be975322
Improve IPC performance.
Reading of JSON data off the buffer, 10-15% performance increase.
Fixes #1864 .
13 years ago
Ryan Dahl
25ff181300
Revert some changes made in 12486a6
Some of the perf improvements from many-writes-fix branch were accidentally
undone in that commit. This puts them back in.
13 years ago
Ryan Dahl
87339a22b1
introduce node cluster
13 years ago
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
13 years ago
Ryan Dahl
71cce3f45b
Remove dgram_legacy
13 years ago
Ryan Dahl
58e892dadd
Remove dns_legacy
13 years ago
Ryan Dahl
96e423a665
Remove child_process_legacy
13 years ago
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
13 years ago
Ryan Dahl
8c738fa90c
child_process.fork: don't overwrite env
thanks to Malte-Thorben Bruns for pointing this out
13 years ago
Ryan Dahl
982b19dbd7
Adjust listenFD deprecation message. Remove test.
13 years ago
Ryan Dahl
e6092f337c
tty.WritableStream should be writable
13 years ago
Ryan Dahl
7cf787a2d1
Upgrade libuv to 5656e3
This modifies the TTYWrap constructor to add another argument specifying if
it's a readable or writable TTY . That is stdin or stdout. If a TTYWrap is
not readable then writes to it are blocking.
This makes process.stdout blocking.
13 years ago
Ryan Dahl
12486a6437
Change API for sending handles
Does not support sending net.Server objects only raw TCPWrap objects.
13 years ago
Ryan Dahl
26c08a3f35
Do load balancing test in test-child-process-fork2.
13 years ago
Bert Belder
153629c99a
Some small optimizations
13 years ago
Ryan Dahl
29ec850478
Simplify arg parsing in String.write
13 years ago
Ben Noordhuis
1bb820a339
net: remove unconditional getpeername() call
Speeds up http_simple benchmark by about 1.0%
13 years ago
Bert Belder
ed65b7b375
Simplify writeReq handling in net_uv
13 years ago
talltyler
10f97f9424
Fixing #1774 about issues when running node with --harmony_block_scoping v8 option
Fixes #1837 .
13 years ago
Bert Belder
fcad5e35fd
Black hole tcp reads after destroy()
13 years ago
Ryan Dahl
899358e797
Add test-child-process-fork2 and fixes to make it work
13 years ago
Ryan Dahl
b413c77583
Support sending handles to other processes
Needs test.
13 years ago
Ryan Dahl
26c5905a99
Reimplement child_process.fork
Fixes test/simple/test-child-process-fork.js
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ben Noordhuis
bc7cfd7cd7
http: remove legacy http library
13 years ago
Maciej Małecki
8c8d518723
assert: Make `assert` module an `assert.ok` function
Code can be written:
var assert = require('assert');
assert(true);
instead of:
var assert = require('assert');
assert.ok(true);
13 years ago
Fedor Indutny
360ce526fd
debugger: watch, unwatch, watchers
Fixes #1800 .
13 years ago