Ben Noordhuis
dadc30318f
isolates: implement message passing
Parent and child isolates can now pass arbitrary binary messages between each
other. The messages are sent and received through a thread-safe queue that
wakes up the event loop of the receiving thread.
13 years ago
Emerson Macedo
aa67b1f375
fs: add appendFile() and appendFileSync() functions
13 years ago
Mikael Bourges-Sevenier
5b05429bf0
typed arrays: add Buffer -> TypedArray constructor
- create a typed array from a node::Buffer object
- update TypedArray::set() to spec
- add TypedArray::get() method
13 years ago
Andreas Madsen
5f08c3cfa1
cluster improvements: Worker class and isolate internal messages
Fixes #2388
13 years ago
Ryan Dahl
f3da6c6c04
Potential fix for #2438
- Save StringPtr if the header hasn't been completely received yet after one
packet.
- Add one to num_fields and num_values. They were actually one less than the
number of fields and values.
- Remove always_inline makes debugging difficult, and has negligible
performance benefits.
13 years ago
Ryan Dahl
2cde498319
Add another test to test-http-parser-bad-ref.js demoing #2438
13 years ago
Ben Noordhuis
884f689efe
test: add #2293 regression test
Creating a file event watcher with fs.watch({persistent:false}) should not block
the event loop.
13 years ago
Ben Noordhuis
539598b11f
test: don't create temp files in fixtures dir
13 years ago
Ryan Dahl
432a2e4d39
Add test for #2438
Unfortunately valgrind must be used to see the bad read. It would be nice if
we could improve this test to cause a segfault.
13 years ago
Ben Noordhuis
c24276f008
net: defer net.Server 'close' event to next tick
13 years ago
Ryan Dahl
4428b70cba
Add isolate version of test-child-process-fork
13 years ago
Ryan Dahl
5fc0c27d5c
move isolate V8 functions out of node.cc
13 years ago
Ryan Dahl
40c98a977b
Add shared-buffer isolate addon test
13 years ago
Ryan Dahl
2c560c5405
Change isolate test to demo EIO bug
13 years ago
Ryan Dahl
a0f3eb015a
node_file.cc should use NODE_LOOP()
13 years ago
Ryan Dahl
268476549e
Join all threads at end of main thread
Require reorganizing the isolates somewhat.
Add a very simple test.
13 years ago
Andreas Madsen
d483acc5d9
test: remove internet test from test/simple/
13 years ago
koichik
b037c16f55
test: fix test-sys.js fails if the time zone is not CET
Fixes #2423 .
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
Ryan Dahl
533a455274
move isolate V8 functions out of node.cc
13 years ago
Ryan Dahl
02f24f54ba
Add shared-buffer isolate addon test
13 years ago
Ryan Dahl
8c476371f5
Change isolate test to demo EIO bug
13 years ago
Ryan Dahl
a8506c41c6
node_file.cc should use NODE_LOOP()
13 years ago
Ryan Dahl
41062e71a7
Join all threads at end of main thread
Require reorganizing the isolates somewhat.
Add a very simple test.
13 years ago
koichik
a337ac7584
http: fix XMLHttpRequest piped in a writable file stream hangs next request
Fixes #2263 .
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
Ben Noordhuis
b261e37a34
test: ensure callback is executed
13 years ago
Ju-yeong Park
5976d58796
net: raise exception when the socket is closed
13 years ago
Ryan Dahl
6ac22bfb04
Add gitignore file for addon tests
13 years ago
koichik
07c27e040e
tls: Fix node swallows openssl error on request
Fixes #2308 .
Fixes #2246 .
13 years ago
Ryan Dahl
18b92201be
Support addons with gyp
Initial pass.
13 years ago
James Hartig
348d8cd04a
timers: remove _idleTimeout from item in .unenroll()
Stops .active() from reactivating the timer.
Fixes #2114 .
13 years ago
jbergstroem
f9994114ab
build: remove unused cmakelist
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
Andreas Madsen
07b1997388
Add env argument to cluster.fork
Fixes 2378
13 years ago
Nathan Rajlich
855f46677c
test: Add test case for MODULE_NOT_FOUND.
13 years ago
Avi Flax
ee0a7b928b
util: output Dates with Date.toString not Date.toUTCString
13 years ago
Felix Geisendörfer
ec51bfc995
Use common.PORT to avoid conflicts
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
Igor Zinkovsky
500c8f45f5
Remove platform files, and use uv platform api
13 years ago
Ben Noordhuis
cc2861ee44
crypto: don't ignore DH init errors
13 years ago
Ben Noordhuis
d29be0dfa2
test: binding twice to the same port should raise an error
13 years ago
Ben Noordhuis
d70ef199f1
crypto: fix memory leaks in PBKDF2 error path
13 years ago
Ben Noordhuis
b1b3dc62ff
fs: handle fractional or NaN ReadStream buffer size
Fixes #2320 .
13 years ago
koichik
f8c335d0ca
tls: enable rejectUnauthorized option to client
Fiexes #2247 .
13 years ago