Roman Shtylman
a38fd6056c
dgram: reintroduce addMembership() and dropMembership()
Removed during the early stages of node 0.5 refactoring to libuv.
14 years ago
koichik
35fe3eb5c7
http: reduce creating http-parser instances
Fixes #2577 .
13 years ago
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
13 years ago
Brandon Benvie
f7b612550a
Add missing TTY key translations for F1-F5 on Windows
13 years ago
Bert Belder
d489a01f81
Make path.extname do the right thing when the last path component is . or ..
Closes GH-2526
13 years ago
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 .
13 years ago
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.
13 years ago
koichik
534df2f8d2
tls: fix double 'error' events on HTTPS Requests
Fixes #2549 .
13 years ago
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 .
13 years ago
Ryunosuke SATO
22d7fe1206
events: fix checking max listeners with `1`
Fixes #2490 .
13 years ago
koichik
dd9593ccc4
http: fix ServerResponse does not emit 'close'
Refs #2453 .
13 years ago
koichik
baebd30eee
http: use `self` insted of `this`
13 years ago
isaacs
8e57398b20
Fix #2034 repl message for .clear when useGlobal=true
14 years ago
Damon Oehlman
744ed46970
repl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor
13 years ago
koichik
a848a3efbf
net: fix Socket.pause null reference when called on a closed Stream
Fixes #1980 .
13 years ago
koichik
a337ac7584
http: fix XMLHttpRequest piped in a writable file stream hangs next request
Fixes #2263 .
13 years ago
koichik
7aa5924dc6
http: fix resource leak
Fixes #2069
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
Fedor Indutny
d87f551f36
debugger: Request backtrace w/o refs, see #1745
Fixes #2379
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
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
isaacs
580e67015c
Apply #2257 fix for Pipe streams as well as TTYs
13 years ago
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
13 years ago
isaacs
db273818f6
s/NPM/npm/
http://npmjs.org/doc/faq.html#If-npm-is-an-acronym-why-is-it-never-capitalized
13 years ago
Ryan Dahl
60e26668b3
Remove superfluous 'new'
13 years ago
Igor Zinkovsky
99c9d19184
binding for uv_pipe_pending_instances
13 years ago
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 .
13 years ago
Mathias Bynens
cf89beec6f
punycode: Update to v0.2.1
13 years ago
Nathan Rajlich
b204006105
util: ensure that the .inspect function isn't the one being executed
Fixes #2225 .
13 years ago
Ben Noordhuis
5fea00581b
sys: print stack trace if NODE_DEBUG=sys
13 years ago
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
13 years ago
Thomas Shinnick
eba1f7b1a4
child_process: fix order of args to errnoException()
13 years ago
koichik
5451ba3aa8
tls: fix https with fs.openReadStream hangs
Fixes #2185 .
Fixes #2198 .
13 years ago
Author: Igor Zinkovsky
1f16a7b6e5
Enable long paths on windows
13 years ago
Bert Belder
83152d174c
Dgram: correctly report recvmsg errors
13 years ago
Bert Belder
86fba381fd
Windows: correctly resolve drive-relative paths
13 years ago
isaacs
0ba78d5f36
Close #2166 Close the fd in lchmod
13 years ago
Ben Noordhuis
59a9a9b5b0
buffer: add .read*() and .write*() methods to SlowBuffer prototype
Fixes #2138 .
13 years ago
E. Azer Koçulu
1cb6fe47fc
util: remove the line requiring events
13 years ago