koichik
7aa5924dc6
http: fix resource leak
...
Fixes #2069
2011-12-26 08:05:35 +01:00
Ryan Dahl
48a9a2d355
Add deprecation message for http.Client
2011-12-23 17:42:27 -08:00
Ryan Dahl
c2d9e62f16
Merge remote branch 'origin/v0.6'
...
Conflicts:
deps/v8/src/version.cc
2011-12-23 15:58:11 -08:00
Phil Sung
cf2513e1aa
buffer: don't pollute global namespace in buffer.readInt*
2011-12-22 23:26:43 +01:00
Ju-yeong Park
5976d58796
net: raise exception when the socket is closed
2011-12-22 17:25:14 +01:00
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.
2011-12-22 14:42:25 +01:00
Ryan Dahl
f7f8af8420
Merge remote branch 'origin/v0.6'
...
Conflicts:
Makefile
lib/_debugger.js
2011-12-21 12:17:23 -08:00
koichik
07c27e040e
tls: Fix node swallows openssl error on request
...
Fixes #2308 .
Fixes #2246 .
2011-12-21 19:48:15 +01:00
Ben Noordhuis
7a7f1062bf
tls: remove duplicate assignment
2011-12-21 15:01:07 +01:00
Bert Belder
f4e34f1b76
Remove unnecessary statement
2011-12-20 17:15:22 +00:00
James Hartig
348d8cd04a
timers: remove _idleTimeout from item in .unenroll()
...
Stops .active() from reactivating the timer.
Fixes #2114 .
2011-12-20 00:57:15 +01:00
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.
2011-12-20 00:10:49 +01:00
Pedro Teixeira
a805012d6f
assert: .deepEqual() support for RegExp objects
2011-12-20 00:10:38 +01:00
Fedor Indutny
d87f551f36
debugger: Request backtrace w/o refs, see #1745
...
Fixes #2379
2011-12-19 13:30:43 -08:00
Andreas Madsen
3966e4e7a5
Remove debug console.log and optimize object copy
...
Fixes #2380
2011-12-19 13:25:19 -08:00
Andreas Madsen
07b1997388
Add env argument to cluster.fork
...
Fixes 2378
2011-12-19 12:34:59 -08:00
Fedor Indutny
80858761a8
break on exception
...
Fixes #2304
2011-12-19 11:09:40 -08:00
Fedor Indutny
a239ea0d40
use inlineRefs, as it's already impl
2011-12-19 11:09:16 -08:00
Fedor Indutny
b00b2f08bf
pass noRefs as arguments
2011-12-19 11:09:16 -08:00
Fedor Indutny
b0388ccad0
pause command
2011-12-19 11:09:16 -08:00
Fedor Indutny
07ad11916f
allow setBreakpoint(line)
2011-12-19 11:09:16 -08:00
Fedor Indutny
c07edd90f5
preserve cursor pos
...
* configurable via .prompt()'s preserveCursor argument (false by default)
2011-12-19 11:09:16 -08:00
Fedor Indutny
d9377f5eb0
request backtrace w/o refs, see #1745
2011-12-19 11:09:16 -08:00
Nathan Rajlich
3f987cd925
module: Set the error.code to 'MODULE_NOT_FOUND' when a bad path is given to require.
...
Fixes #2358 .
2011-12-19 23:46:41 +09:00
Avi Flax
ee0a7b928b
util: output Dates with Date.toString not Date.toUTCString
2011-12-18 23:07:47 +01:00
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); )
2011-12-18 01:50:01 +01:00
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.
2011-12-18 01:29:07 +01:00
Andreas Madsen
b084322f52
Add silent option to child_process.fork
...
Fixes #2354 .
2011-12-17 12:53:44 -08:00
Ryan Dahl
1865b11dcb
Merge remote branch 'origin/v0.6'
...
Conflicts:
wscript
2011-12-16 13:57:36 -08:00
Andreas Madsen
a599aeb2a8
jslint
...
Fixes #2306
2011-12-16 12:57:03 -08:00
Igor Zinkovsky
d6bae2cb95
document mode argument for fs.symlink
2011-12-16 11:16:33 -08:00
Ben Noordhuis
97900776bb
util: add internal function _deprecationWarning()
2011-12-14 13:36:21 +01:00
Ben Noordhuis
b1b3dc62ff
fs: handle fractional or NaN ReadStream buffer size
...
Fixes #2320 .
2011-12-13 16:31:12 +01:00
Ben Noordhuis
8295c80618
net: check status code in afterWrite
...
Fixes memory leak and spin on writing to dead fds. This was tested in
production.
2011-12-12 13:45:44 -08:00
koichik
f8c335d0ca
tls: enable rejectUnauthorized option to client
...
Fiexes #2247 .
2011-12-07 22:47:06 +09:00
Ryan Dahl
2003593143
Merge remote branch 'origin/v0.6'
...
Conflicts:
deps/v8/src/debug.cc
deps/v8/src/version.cc
src/node_version.h
2011-12-06 11:50:54 -08:00
isaacs
580e67015c
Apply #2257 fix for Pipe streams as well as TTYs
2011-12-06 10:13:31 -08:00
Fedor Indutny
e609195202
[zlib] added dictionary support
2011-12-05 17:58:31 -08:00
isaacs
cf20b6bf65
Fix #2257 pause/resume semantics for stdin
...
This makes it so that the stdin TTY-wrap stream gets ref'ed on
.resume() and unref'ed on .pause()
The semantics of the names "pause" and "resume" are a bit weird, but the
important thing is that this corrects an API change from 0.4 -> 0.6
which made it impossible to read from stdin multiple times, without
knowing when it might end up being closed. If no one has it open, this
lets the process die naturally.
LGTM'd by @ry
2011-12-05 16:47:11 -08:00
isaacs
db273818f6
s/NPM/npm/
...
http://npmjs.org/doc/faq.html#If-npm-is-an-acronym-why-is-it-never-capitalized
2011-12-05 16:20:44 -08:00
Ryan Dahl
60e26668b3
Remove superfluous 'new'
2011-12-04 00:09:10 -08:00
Ben Noordhuis
49ba55b100
Merge branch 'v0.6'
...
Conflicts:
src/node_version.h
2011-12-02 16:34:33 +01:00
Igor Zinkovsky
99c9d19184
binding for uv_pipe_pending_instances
2011-12-01 13:57:47 -08:00
Ben Noordhuis
03eb41c2ec
net: don't emit 'close' event twice
...
Don't allow `socket.destroy()` to run twice. The self-destruct sequence itself
is idempotent but it makes the 'close' and 'error' events fire more than once,
which may confuse listeners.
Fixes #2223 .
2011-12-01 14:57:06 +01:00
Mathias Bynens
cf89beec6f
punycode: Update to v0.2.1
2011-11-30 15:28:48 +01:00
Nathan Rajlich
b204006105
util: ensure that the .inspect function isn't the one being executed
...
Fixes #2225 .
2011-11-30 14:14:24 +01:00
Ben Noordhuis
5fea00581b
sys: print stack trace if NODE_DEBUG=sys
2011-11-29 19:22:13 +01:00
seebees
aab958b713
OutgoingMessage.prototype.write does not take Array
...
Changed the type checking for OutgoingMessage.prototype.write so it only accepts string and Buffer.
And test.
Fixes #2162
Fixes #2208
2011-11-29 16:52:15 +09:00
Thomas Shinnick
eba1f7b1a4
child_process: fix order of args to errnoException()
2011-11-28 20:45:01 +01:00
koichik
5451ba3aa8
tls: fix https with fs.openReadStream hangs
...
Fixes #2185 .
Fixes #2198 .
2011-11-27 16:31:45 +09:00
Bert Belder
cffd0bb68d
Merge branch 'v0.6'
...
Conflicts:
Makefile
src/node_version.h
test/simple/test-http-response-no-headers.js
2011-11-25 12:34:29 +01:00
Author: Igor Zinkovsky
1f16a7b6e5
Enable long paths on windows
2011-11-25 09:35:52 +01:00
Bert Belder
83152d174c
Dgram: correctly report recvmsg errors
2011-11-24 19:11:13 +01:00
Bert Belder
86fba381fd
Windows: correctly resolve drive-relative paths
2011-11-24 02:38:34 +01:00
isaacs
0ba78d5f36
Close #2166 Close the fd in lchmod
2011-11-22 14:00:48 -08:00
Ryan Dahl
8595981195
Merge remote branch 'origin/v0.6'
...
Conflicts:
Makefile
src/node_version.h
test/simple/test-crypto.js
2011-11-22 13:01:10 -08:00
Felix Geisendörfer
b3f91f15b2
Remove support for multi-source pipe()
...
This reverts 6c5b31bd
which had too few use cases, too much complexity,
and can be handled in user-land by using `{end: false}`.
Closes #1996
2011-11-22 08:51:19 -08:00
Ben Noordhuis
59a9a9b5b0
buffer: add .read*() and .write*() methods to SlowBuffer prototype
...
Fixes #2138 .
2011-11-18 11:13:37 +01:00
E. Azer Koçulu
1cb6fe47fc
util: remove the line requiring events
2011-11-17 23:01:39 +01:00
Ben Noordhuis
bed405cfea
Merge remote branch 'origin/v0.6'
2011-11-17 20:06:50 +00:00
E. Azer Koçulu
e258169666
util: remove the line requiring events
2011-11-17 20:21:48 +01:00
Ben Noordhuis
5e3b0095de
tls: make cipher list configurable
...
options.ciphers existed but didn't work, the cipher list was effectively
hard-coded to RC4-SHA:AES128-SHA:AES256-SHA.
Fixes #2066 .
2011-11-17 00:01:41 +01:00
Łukasz Walukiewicz
3b852d7fab
buffer: fix minimum values for writeInt*() functions
2011-11-16 21:30:26 +01:00
Łukasz Walukiewicz
5d0b5a00aa
buffer: fix minimum values for writeInt*() functions
2011-11-16 21:27:26 +01:00
Mathias Bynens
897208e06d
punycode: Update to v0.1.1.
2011-11-13 15:38:27 +01:00
seebees
3421f43351
.load, .save and local scope tab completion
...
Fixes #2063 .
REPLServer.prototype.resetContext:
Reset the line cache
REPLServer.prototype.memory (don't know if I like that name, called from finish)
pushes what cmd's have been executed against it into this.lines
pushes the "tab depth" for bufferedCommands, in this.lines.level
REPLServer.prototype.displayPrompt:
Uses "tab depth" from this.lines.level to adjust the prompt to visually
denote this depth e.g.
> asdf = function () {
… var inner = {
….. one:1
REPLServer.prototype.complete:
Now notices if there is a bufferedCommand and attempts determine locally
scoped variables by removing any functions from this.lines and evaling these
lines in a nested REPL e.g.
> asdf = function () {
… var inner = { one: 1};
… inn\t
will complete to 'inner' and inner.o\t will complete to 'inner.one'
If the nested REPL still has a bufferedCommand it will falls back to the
default.
ArrayStream is a helper class for the nested REPL to get commands pushed to it.
new REPLServer('', new ArrayStream());
Finally added two new REPL commands .save and .load, each takes 1 parameter,
a file and attempts to save or load the file to or from the REPL
respectively.
2011-11-12 11:34:55 -08:00
Ben Noordhuis
098fef6740
timers: remember extra setTimeout() arguments when timeout==0
...
Fixes #2079 .
2011-11-12 13:31:28 +01:00
Shigeki Ohtsu
e0f10ecfd9
debugger: correctly handle source with multi-byte characters
2011-11-11 20:29:50 +01:00
Ryan Dahl
4e2343c6b5
Fixes #2073 . Cluster should be silent.
2011-11-11 11:24:59 -08:00
Ben Noordhuis
326b2cb34e
punycode: replace with Mathias Bynens's implementation
...
The currently bundled library doesn't pass all the test cases from RFC 3492.
Mathias's library does.
Home: https://github.com/bestiejs/punycode.js
2011-11-11 17:02:43 +01:00
Ryan Dahl
74f39041d4
dont use blue for numbers in util.inspect
2011-11-10 23:35:35 -08:00
Igor Zinkovsky
13324bf844
throw from stdout.end and stderr.end
2011-11-10 14:51:16 -08:00
Ryan Dahl
0fa3cf94a3
Remove 'report this bug' message from cluster master
2011-11-08 17:07:49 -08:00
Ryan Dahl
da9bf0ee80
Fixes #2047 . Fill workers array immediately after fork
2011-11-08 17:03:29 -08:00
Ryan Dahl
2d13cdfd2a
Fixes #2052 . Readline get win cols correctly
2011-11-08 13:37:08 -08:00
Benjamin Pasero
b1bb17fd2b
fs: fix fs.realpath on windows to return on error
2011-11-08 13:02:04 +01:00
Ben Noordhuis
04958e88a4
fs: make mkdir() call callback if mode is omitted
...
Fixes #2043 .
2011-11-08 12:48:09 +01:00
Ben Noordhuis
105d1787dc
cluster: fix call to undefined function
2011-11-08 08:29:25 +01:00
Ryan Dahl
d42006c80a
cluster: Remove eachWorker, workerCount
...
unnecessary
2011-11-04 15:14:38 -07:00
Ryan Dahl
86528489ec
new cluster api
2011-11-04 15:12:11 -07:00
Matt Robenolt
5213c39038
Close #1930 Convenience methods for zlib
...
This is a combination of 20 commits. Their commit messages are preserved
below for the benefit of future generations.
* Adding a shortcut to easily compress/decompress a string of text.
* Making the API consistent. unzip should accept a Buffer for input as well.
* Adding docs.
* Oops, typo.
* Propagate error through the callback.
* Adding zlib from string tests.
* Typo in test.
* Remove 'end' listeners, and join buffers properly instead of joining them
as a string.
* Oops, needs to be rendered to a string.
* Updated test to include multi-byte characters.
* unzip should return a raw Buffer. Updated docs to reflect.
* And finally updating test.
* EventEmitter.destroy() is a bit more customary
* Revert "EventEmitter.destroy() is a bit more customary"
* Renaming internal methods to "buffer" instead of string.
* Remove the 'error' listeners as well.
* @isaacs: spacing/style, and compress duplicate functions into one
* @isaacs: Update docs
* @isaacs: doc style fix
2011-11-04 10:32:57 -07:00
Fedor Indutny
b5d32d4a9e
debugger: do not request continue
on connection
...
* Updated test
* Use `node debug file`, not `node debug -e "..."` in test
2011-11-04 17:50:46 +01:00
Bert Belder
829735e738
Implement process._debugProcess
2011-11-04 17:50:28 +01:00
Bert Belder
189dd8f803
Fix line endings and trailing whitespace
2011-11-04 16:24:34 +01:00
Jordan Sissel
358f0ce96b
url: add '.' '+' and '-' in url protocol
...
- Based on BNF from RFC 1738 section 5.
- Added tests to cover svn+ssh and some other examples
2011-11-04 13:36:06 +01:00
Ben Noordhuis
5fd012e67a
fs: don't use octal values, not allowed in strict mode
2011-11-04 13:10:07 +01:00
Ryan Dahl
a936768890
stdout and stderr are blocking when referring to regular files
...
Fixes message tests.
2011-11-03 13:27:33 -07:00
Ryan Dahl
4a8088a603
Socket.write should reset timeout timer.
...
Fixes #2002 .
2011-11-03 12:37:04 -07:00
Ben Noordhuis
9c11e8a1ca
net: implement Server.prototype.address() for pipes
2011-11-03 19:16:10 +01:00
Ben Noordhuis
11d68eb3fc
fs: make mkdir() default to 0777 permissions
...
Fixes #1999 .
2011-11-03 09:37:23 +01:00
Ben Noordhuis
359a65a6db
http: emit Error object after .abort()
...
It was emitting the net.Socket object due to misuse of the arguments object.
Fixes #1399 .
2011-11-03 01:30:03 +01:00
Fedor Indutny
9ad27f7853
ignore undefined messages in the debugger repl
...
fixes #1995
2011-11-02 15:55:36 -07:00
Maciej Małecki
6bd0bcd5af
child_process: in a new ChildProcess
set killed
to false
...
This behavior is consistent with what v0.4 does.
2011-11-02 18:17:51 +01:00
Ryan Dahl
60818b957c
Add missing copyright headers
2011-11-02 10:00:57 -07:00
Maciej Małecki
fc61134b1a
doc: fix links
...
Changes:
* 'http://github.com ' => 'https://github.com '
* 'https://github.com/ry/node ' => 'https://github.com/joyent/node '
* 'https://github.com/ry/http-parser ' =>
'https://github.com/joyent/http-parser '
* old issue links
* wiki link
2011-11-01 22:26:52 +01:00
Igor Zinkovsky
3060266ff1
windows: enable pending accepts knob
2011-11-01 14:14:52 -07:00
Ben Noordhuis
37bb37d151
os: rename getNetworkInterfaces() to networkInterfaces()
2011-11-01 18:10:06 +01:00
koichik
f53d092a2a
tls, https: add passphrase option
...
Fixes #1925 .
2011-10-31 17:36:43 +09:00
koichik
8a729270c1
fix for --harmony_block_scoping
...
Fixes #1969 .
2011-10-31 00:49:20 +09:00
Siddharth Mahendraker
12cf730b69
events: separate maxListeners and _events
...
Fixes #1479 .
Fixes #1923 .
2011-10-30 02:14:30 +01:00
Tj Holowaychuk
528c28587f
cluster: Add some docs, improve cluster.isWorker()
...
Fixes #1949 .
2011-10-26 16:42:00 -07:00
Ryan Dahl
c5d54010bc
node cluster is now a module instead of CLI interface
...
This is to make room for master process plugins instead of adding CLI
options as proposed in #1879 .
2011-10-26 13:50:53 -07:00
Nathan Rajlich
ebefe77bc0
More bulletproof util.inspect()
function.
...
Use the *real* versions of the Date and RegExp functions, from the
prototype. This defends against code like:
var d = new Date()
d.toUTCString = null
util.inspect(d)
// TypeError: toUTCString is not a function
Fixes #1944 .
2011-10-27 04:58:34 +09:00
Nathan Rajlich
2dbb470ea1
Don't use instanceof
in lib/util.js "is" checks.
...
While using `instanceof`, these functions could easily be faked with something
like: Object.create(Date.prototype)
So let's just not use it at all. A little slower, but these functions are only
used in the REPL / for debugging so it's OK.
Fixes #1941 .
Fixes #1942 .
2011-10-27 04:33:24 +09:00
Nathan Rajlich
b8f3e18a5d
Export the type checking functions from util.js
.
...
As per discussion at:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/b08970166e4670cf
2011-10-27 03:38:29 +09:00
koichik
cbcaeedba9
tls: add address(), remoteAddress/remotePort
...
Fixes #758 .
Fixes #1055 .
2011-10-27 00:28:16 +09:00
koichik
0e8a55d2a2
tls: does not emit 'end' from EncryptedStream
...
de09168
and 4cdf9d4
breaks `test/pummel/test-https-large-response.js`.
It is never finished.
Fixes #1936 .
2011-10-27 00:18:29 +09:00
Nathan Rajlich
58cb0fa639
Directly export the Stream constructor.
...
Also setting up a circular reference back to the
stream as `Stream.Stream`, for backwards-compatibility.
Fixes #1933
2011-10-24 15:45:35 -07:00
Ryan Dahl
239b3d62de
Remove resume and pause events
...
Too complex; unnecessary.
2011-10-24 13:23:59 -07:00
isaacs
4c5751ba97
Close #1929 zlib Respond to 'resume' events properly
2011-10-24 12:55:45 -07:00
Maciej Małecki
7ee29d1d5b
net: Server.listen
, Server.close
and Socket.connect
return this
...
Just a syntactic sugar for doing, for example:
var server = net.createServer(function (c) {
c.end('goodbye, cruel world!\r\n');
server.close().on('close', function () {
console.log('really, goodbye!');
});
}).listen(1337);
Fixes #1922 .
2011-10-24 22:19:42 +09:00
seebees
216570b5e1
Lint
2011-10-22 14:14:40 +09:00
seebees
1ead20f274
remove auth from host
...
Fixes #1626
2011-10-22 14:14:40 +09:00
seebees
005d607aed
http.request(url.parse(x))
...
http2.js
protocols object to store defaults for http and https, and use as a switch for supported protocols.
options.hostname > options.host > 'localhost'
if I have an options.auth element and I do not have an Authorization header, I do basic auth.
http.request collapses to new ClientRequest since the defaults are handled by the protocol object
test-http-url.parse*
Fixes #1390
Conflicts:
lib/http2.js
2011-10-22 14:14:40 +09:00
seebees
be4576de7a
url.resolveObject(url.parse(x), y) == url.parse(url.resolve(x, y));
...
added a .path property = .pathname + .search for use with http.request
And tests to verify everything.
With the tests, I changed over to deepEqual, and I would note the comment on the test
['.//g', 'f:/a', 'f://g'], which I think is a fundamental problem
This supersedes pull 1596
2011-10-22 14:14:39 +09:00
Nathan Rajlich
bdb9d09aef
Print out undefined
on the REPL when returned.
...
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.
2011-10-22 14:02:35 +09:00
Ben Noordhuis
ac379b3be1
net: bring back .setNoDelay() and .setKeepAlive()
2011-10-21 18:09:23 -07:00
Ryan Dahl
493d3b9f7c
Merge remote branch 'origin/v0.4'
...
Conflicts:
ChangeLog
Makefile
deps/libev/wscript
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
src/platform_cygwin.cc
test/pummel/test-net-write-callbacks.js
test/simple/test-buffer.js
2011-10-21 18:02:30 -07:00
Ryan Dahl
d5a21a29f8
getaddrinfo returns ENOTFOUND for invalid domain names
...
change test-http-dns-error to reflect this.
2011-10-21 15:19:53 -07:00
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
2011-10-21 13:16:41 -07:00
isaacs
2d02e6a992
Add useGlobal flag for standard node repl
2011-10-21 13:02:49 -07:00
isaacs
caf70f5e94
Revert "Don't use a separate context for the repl."
...
This reverts commit b70fed48a7
.
2011-10-21 13:00:37 -07:00
Ben Noordhuis
84d0b1bcc5
http: improve http parser bindings
...
Speeds up HTTP benchmarks by 10% on average.
2011-10-20 19:19:02 -07:00
Ryan Dahl
c83dda89a4
dns.lookup uses cares_wrap::GetAddrInfo
2011-10-20 18:03:02 -07:00
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.
2011-10-20 08:41:33 -07:00
Fedor Indutny
b43eb9678b
debugger: fix backtrace err handling
2011-10-20 08:37:51 -07:00
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.
2011-10-18 18:18:32 -07:00
Ryan Dahl
6cc0c9e6a9
Remove superfluous nextTick during server binding
...
This breaks fork().send({}, server._handle) after server.listen() because
server._handle is not set.
2011-10-18 15:12:18 -07:00
Ryan Dahl
d77ce4b998
Fixes #1860 . Remove process.writeError
...
Breaks a few tests in "make test-message"
2011-10-18 13:12:50 -07:00
Yoshihiro Kikuchi
f90ba61478
http: tiny fix in http.js
...
Fixes #1885 .
2011-10-17 01:14:45 +09:00
koichik
d6191f593d
net: fix error handling in listen()
...
Fixes #1894 .
2011-10-16 01:30:19 +09:00
koichik
68cc173c6d
tls: The TLS API is inconsistent with the TCP API
...
Add 'secureConnect' event to tls.CleartextStream.
Fixes #1467 .
2011-10-15 19:27:21 +09:00
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.
2011-10-15 03:34:09 +02:00
Ben Noordhuis
6df574b744
net: properly account multi-byte chars in .bytesWritten
2011-10-15 03:24:34 +02:00
koichik
19a855382c
tls: requestCert unusable with Firefox and Chrome
...
Fixes #1516 .
2011-10-15 00:54:46 +09:00
koichik
a09b747f30
child_process.fork: don't modify args
...
Fixes #1888 .
2011-10-15 00:15:38 +09:00
isaacs
59a5262041
Fix #1882 zlib Update 'availOutBefore' value, and test
2011-10-13 16:47:51 -07:00
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.
2011-10-13 16:09:14 +02:00
Ryan Dahl
3a34972672
Fix test-http-conn-reset.js on OSX
2011-10-12 17:31:49 -07:00
Ryan Dahl
7b4370e5f8
Fix test/pummel/test-watch-file.js
2011-10-12 16:19:46 -07:00
Ryan Dahl
651b8a06d6
Fix test/pummel/test-exec.js
2011-10-12 16:12:24 -07:00
Daniel Ennis
59be975322
Improve IPC performance.
...
Reading of JSON data off the buffer, 10-15% performance increase.
Fixes #1864 .
2011-10-12 15:06:51 -07:00
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.
2011-10-12 12:49:58 -07:00
Ryan Dahl
87339a22b1
introduce node cluster
2011-10-12 02:58:35 -07:00
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
2011-10-11 13:41:33 -07:00
Ryan Dahl
71cce3f45b
Remove dgram_legacy
2011-10-11 13:26:41 -07:00
Ryan Dahl
58e892dadd
Remove dns_legacy
2011-10-11 13:21:30 -07:00
Ryan Dahl
96e423a665
Remove child_process_legacy
2011-10-11 13:16:33 -07:00
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
2011-10-11 13:11:54 -07:00
Ryan Dahl
8c738fa90c
child_process.fork: don't overwrite env
...
thanks to Malte-Thorben Bruns for pointing this out
2011-10-10 14:49:02 -07:00