Dan VerWeire
f2b1f57f74
dgram: reintroduce setMulticastTTL()
...
Removed during the early stages of node 0.5 refactoring to libuv.
2012-01-21 03:26:09 +01:00
Dan VerWeire
f749338e1e
dgram: reintroduce setBroadcast()
...
Removed during the early stages of node 0.5 refactoring to libuv.
2012-01-21 03:26:04 +01:00
Roman Shtylman
a38fd6056c
dgram: reintroduce addMembership() and dropMembership()
...
Removed during the early stages of node 0.5 refactoring to libuv.
2012-01-21 03:21:51 +01:00
koichik
35fe3eb5c7
http: reduce creating http-parser instances
...
Fixes #2577 .
2012-01-20 16:24:01 -08:00
Nicolas LaCasse
40c93486e8
Fix #2365 zlib crashing on invalid input
...
Fix zlib crashes on error due to improper use of removeListener
in the error handler
2012-01-20 13:12:32 -08:00
Andreas Madsen
f9a47debfc
Add cluster.setupMaster
...
Fixes #2470
2012-01-20 13:09:56 -08:00
Brandon Benvie
f7b612550a
Add missing TTY key translations for F1-F5 on Windows
2012-01-18 16:00:55 +01:00
Bert Belder
d489a01f81
Make path.extname do the right thing when the last path component is . or ..
...
Closes GH-2526
2012-01-18 15:21:58 +01:00
Ben Noordhuis
d44ce97909
cluster: don't always kill the master on uncaughtException
...
uncaughtException handlers installed by the user override the default one that
the cluster module installs, the one that kills off the master process.
Fixes #2556 .
2012-01-18 00:45:02 +01:00
Andreas Madsen
70884875c9
Allow calling fork() without args or options
...
Closes GH-2424
2012-01-17 19:07:57 +01:00
Andreas Madsen
ca6ededbd1
child_process: add errno property to exceptions
...
In case of a write failure when using fork() an error would be thrown. The
thrown exception was missing the `errno` property.
2012-01-17 18:37:02 +01:00
koichik
534df2f8d2
tls: fix double 'error' events on HTTPS Requests
...
Fixes #2549 .
2012-01-17 17:09:27 +01:00
Ryan Dahl
ca2a047b8e
Merge remote branch 'origin/v0.6'
...
Conflicts:
deps/uv/src/win/util.c
src/udp_wrap.cc
2012-01-16 15:20:26 -08:00
Maciej Małecki
d5047f5fe6
http: use util._deprecationWarning
for deprecation warning
2012-01-16 19:45:14 +01:00
Fedor Indutny
03e689fae4
Revert "util: always display a warning for module in debug mode"
...
This reverts commit df62005ece
.
2012-01-16 19:33:16 +06:00
Maciej Małecki
df62005ece
util: always display a warning for module in debug mode
2012-01-16 19:19:56 +06:00
Fedor Indutny
23de33968f
querystring: fix maxKeys = 0 is ignored
2012-01-16 16:36:24 +06:00
Fedor Indutny
f1678bfc65
http: do not accept headers if limit is exceeded
...
* fix limiting when parser was reused
* fix maxHeadersCount = 0 is ignored ( credit to @koichik )
* add test-http-max-headers-count.js ( credit to @koichik )
2012-01-16 16:36:23 +06:00
Fedor Indutny
8a98c2f1d8
http, querystring: added limits to prevent DoS
2012-01-16 02:45:05 +06:00
Ben Noordhuis
f0c1376e07
net: make .write() throw on bad input
...
Passing a non-buffer or non-string argument to Socket.prototype.write triggered
an assert:
Assertion failed: (Buffer::HasInstance(args[0])), function Write,
file ../src/stream_wrap.cc, line 289.
Fixes #2532 .
2012-01-14 02:13:24 +01:00
koichik
7dffbaf2ce
http: Upgrade/CONNECT request should detach its socket earlier
...
With Upgrade or CONNECT request, http.ClientRequest emits 'close' event
after its socket is closed. However, after receiving a response, the socket
is not under management by the request.
http.ClientRequest should detach the socket before 'upgrade'/'connect'
event is emitted to pass the socket to a user. After that, it should
emit 'close' event immediately without waiting for closing of the socket.
Fixes #2510 .
2012-01-12 14:17:19 +09:00
Fedor Indutny
71ae175319
zlib: reset() method for deflate/inflate streams
...
* ammended test-zlib-dictionary to cover reusing streams
2012-01-12 03:19:19 +06:00
Mathias Bynens
8abb73ef58
punycode: Update to v0.3.0
2012-01-11 10:42:39 +01:00
Andreas Madsen
c8108aad83
child_process: fix typo in internal message event name
2012-01-11 09:59:50 +01:00
Maciej Małecki
4d49469d0d
child_process: fix typo in internal message event name
2012-01-10 23:16:07 +01:00
Fedor Indutny
6b2091b58a
debug threads
2012-01-10 02:28:49 +01:00
Ryan Dahl
b28e700ebd
require('sys') now throws
...
To be removed in v0.9
2012-01-09 12:59:28 -08:00
Ryan Dahl
8b28d599a7
Merge remote branch 'origin/v0.6'
...
Conflicts:
Makefile
configure
src/node_version.h
2012-01-09 11:20:22 -08:00
Ryunosuke SATO
22d7fe1206
events: fix checking max listeners with 1
...
Fixes #2490 .
2012-01-09 04:02:01 +01:00
koichik
08a91acd76
http: better support for CONNECT method.
...
Introduces 'connect' event on both client (http.ClientRequest) and
server (http.Server).
Refs: #2259 , #2474 .
Fixes #1576 .
2012-01-09 03:51:06 +01:00
koichik
c1a63a9e90
tls: Allow establishing secure connection on the existing socket
...
This is necessary to use SSL over HTTP tunnels.
Refs #2259 , #2474 .
Fixes #2489 .
2012-01-09 02:31:46 +01:00
koichik
70033bd960
net: make connect() accept options
...
This makes API even with tls.connect().
Refs #1983 .
See also:
http://groups.google.com/group/nodejs-dev/msg/3b6dbcc4a9a82d99
Fixes #2487 .
2012-01-09 02:18:39 +01:00
Maciej Małecki
df0edf5fe6
https: make https
use new tls.connect
API
...
Refs #1983 .
2012-01-08 11:13:18 +01:00
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 .
2012-01-08 11:12:56 +01:00
koichik
dd9593ccc4
http: fix ServerResponse does not emit 'close'
...
Refs #2453 .
2012-01-06 15:45:21 +09:00
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.
2012-01-06 00:47:14 +01:00
Emerson Macedo
aa67b1f375
fs: add appendFile() and appendFileSync() functions
2012-01-05 21:39:57 +01:00
koichik
baebd30eee
http: use self
insted of this
2012-01-05 17:43:00 +09:00
Andreas Madsen
e2f1e50c60
typos
...
fixes #2465
2012-01-05 00:31:49 -08:00
Andreas Madsen
5f08c3cfa1
cluster improvements: Worker class and isolate internal messages
...
Fixes #2388
2012-01-04 18:30:19 -08:00
Ben Noordhuis
c123ac05dc
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/udp_wrap.cc
2012-01-02 12:29:39 +01:00
isaacs
8e57398b20
Fix #2034 repl message for .clear when useGlobal=true
2011-12-31 03:20:41 +01:00
Ben Noordhuis
c24276f008
net: defer net.Server 'close' event to next tick
2011-12-29 19:30:07 +01:00
Damon Oehlman
744ed46970
repl: fix repl.start not passing the ignoreUndefined
arg to the REPLServer constructor
2011-12-29 14:46:04 +01:00
Ryan Dahl
4428b70cba
Add isolate version of test-child-process-fork
2011-12-29 01:56:11 +01:00
Ben Noordhuis
bc7bae1d6b
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/platform_win32.cc
2011-12-29 01:49:10 +01:00
koichik
a848a3efbf
net: fix Socket.pause null reference when called on a closed Stream
...
Fixes #1980 .
2011-12-28 15:13:57 +09:00
koichik
a337ac7584
http: fix XMLHttpRequest piped in a writable file stream hangs next request
...
Fixes #2263 .
2011-12-27 17:42:37 +09:00
koichik
b962ff35dd
tls: fix test-https-client-reject fails
...
Fixes #2417 .
2011-12-27 17:33:23 +09:00
koichik
e6b6075024
http: Avoid 'data'/'end' events after pause()
...
Fixes #1040 .
2011-12-26 16:14:47 +01:00
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