Dan VerWeire
f749338e1e
dgram: reintroduce setBroadcast()
Removed during the early stages of node 0.5 refactoring to libuv.
13 years ago
Roman Shtylman
a38fd6056c
dgram: reintroduce addMembership() and dropMembership()
Removed during the early stages of node 0.5 refactoring to libuv.
13 years ago
Igor Zinkovsky
de78922b12
ref isolate loop
13 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
Andreas Madsen
f9a47debfc
Add cluster.setupMaster
Fixes #2470
13 years ago
Ingmar Runge
0ca30187cf
Crypto: adding ability to turn off automatic PKCS padding
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
4a38795b6f
Add failing test case: parent on('exit')
Fixes #2564
13 years ago
Bert Belder
892056bf97
tests: fix more lint issues
13 years ago
Andreas Madsen
4865063924
Tests: fix jslint issues
13 years ago
koichik
534df2f8d2
tls: fix double 'error' events on HTTPS Requests
Fixes #2549 .
13 years ago
Ben Noordhuis
549443a7cc
typed arrays: set class name
Make obj.toString and Object.prototype.toString work correctly for typed arrays.
13 years ago
Fedor Indutny
23de33968f
querystring: fix maxKeys = 0 is ignored
13 years ago
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 )
13 years ago
Fedor Indutny
8a98c2f1d8
http, querystring: added limits to prevent DoS
13 years ago
Fedor Indutny
220288725f
test-eio-limit: add missing copyright headers
13 years ago
Fedor Indutny
e03b42d1bb
Add failing test-eio-limit.js
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
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 .
13 years ago
Fedor Indutny
71ae175319
zlib: reset() method for deflate/inflate streams
* ammended test-zlib-dictionary to cover reusing streams
13 years ago
Andreas Madsen
c8108aad83
child_process: fix typo in internal message event name
13 years ago
Ryan Dahl
e1b829d2a5
Add broken test-isolates3.js
13 years ago
Ryan Dahl
d4ee61ffc7
Add failing test-isolates2.js
13 years ago
Fedor Indutny
4cbcdb4b2c
test: make debugger-repl tests work with isolates
13 years ago
Fedor Indutny
99679c6430
IsolateDebugger C++
13 years ago
Ben Noordhuis
97e4b3a7bf
isolates: drain message queue completely
13 years ago
Andreas Madsen
787f62de8c
Improve test-child-process-silent
13 years ago
Ryunosuke SATO
22d7fe1206
events: fix checking max listeners with `1`
Fixes #2490 .
13 years ago
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 .
13 years ago
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 .
13 years ago
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 .
13 years ago
Maciej Małecki
39484f49ef
test tls: make tests use new `tls.connect` API
Refs #1983 .
13 years ago
Ryan Dahl
8bd80f4911
fix test-sys for hash randomization
broken in 4a899c9274
13 years ago
koichik
dd9593ccc4
http: fix ServerResponse does not emit 'close'
Refs #2453 .
13 years ago
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
2c560c5405
Change isolate test to demo EIO bug
13 years ago
Ryan Dahl
a0f3eb015a
node_file.cc should use NODE_LOOP()
13 years ago