Andreas Madsen
42ea068a1a
Test for ChildProcess.disconnect()
2012-01-31 14:47:12 +01:00
Ben Noordhuis
279e7e7341
fs: add O_EXCL support, exclusive open file
2012-01-31 14:29:32 +01:00
Ben Noordhuis
88b919ea56
fs, test: add file open mode tests
2012-01-31 14:29:27 +01:00
Łukasz Walukiewicz
a94ffdaec5
url: Support for IPv6 addresses in URLs.
...
Fixes #1138 , #2610 .
2012-01-31 16:58:41 +09:00
Fedor Indutny
667aae596c
Merge branch 'v0.6'
...
Conflicts:
ChangeLog
doc/template.html
lib/cluster.js
lib/http.js
lib/tls.js
src/node.h
src/node_version.h
test/simple/test-cluster-kill-workers.js
2012-01-24 00:30:28 +06:00
koichik
827180097c
test: fix test/simple/test-net-server-max-connections.js is racey
...
Fixes #1333 .
2012-01-22 23:23:04 +09:00
koichik
93298afc4e
test: for #2109
2012-01-22 17:35:28 +09:00
koichik
3df7c90c30
http: keep-alive should default with HTTP/1.1 server
...
As RFC 2616 says we should, assume that servers will provide a persistent
connection by default.
> A significant difference between HTTP/1.1 and earlier versions of
> HTTP is that persistent connections are the default behavior of any
> HTTP connection. That is, unless otherwise indicated, the client
> SHOULD assume that the server will maintain a persistent connection,
> even after error responses from the server.
> HTTP/1.1 applications that do not support persistent connections MUST
> include the "close" connection option in every message.
Fixes #2436 .
2012-01-22 14:55:41 +09:00
Maciej Małecki
e10ed097cb
path fs: move `path.exists*` to `fs.exists*`
...
`path.exists*` functions show a deprecation warning and call functions
from `fs`. They should be removed later.
test: fix references to `path.exists*` in tests
test fs: add test for `fs.exists` and `fs.existsSync`
doc: reflect moving `path.exists*` to `fs`
2012-01-21 14:37:14 +01:00
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
Igor Zinkovsky
de78922b12
ref isolate loop
2012-01-20 18:03:05 -08: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
Ingmar Runge
0ca30187cf
Crypto: adding ability to turn off automatic PKCS padding
2012-01-18 21:20:25 +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
4a38795b6f
Add failing test case: parent on('exit')
...
Fixes #2564
2012-01-17 11:43:21 -08:00
Bert Belder
892056bf97
tests: fix more lint issues
2012-01-17 20:16:49 +01:00
Andreas Madsen
4865063924
Tests: fix jslint issues
2012-01-17 19:45:09 +01:00
koichik
534df2f8d2
tls: fix double 'error' events on HTTPS Requests
...
Fixes #2549 .
2012-01-17 17:09:27 +01:00
Ben Noordhuis
549443a7cc
typed arrays: set class name
...
Make obj.toString and Object.prototype.toString work correctly for typed arrays.
2012-01-17 16:20:39 +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
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
Fedor Indutny
220288725f
test-eio-limit: add missing copyright headers
2012-01-14 23:51:53 +06:00
Fedor Indutny
e03b42d1bb
Add failing test-eio-limit.js
2012-01-14 23:48:56 +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
Andreas Madsen
c8108aad83
child_process: fix typo in internal message event name
2012-01-11 09:59:50 +01:00
Ryan Dahl
e1b829d2a5
Add broken test-isolates3.js
2012-01-10 12:04:19 -08:00
Ryan Dahl
d4ee61ffc7
Add failing test-isolates2.js
2012-01-10 11:48:02 -08:00
Fedor Indutny
4cbcdb4b2c
test: make debugger-repl tests work with isolates
2012-01-10 16:48:45 +01:00
Fedor Indutny
99679c6430
IsolateDebugger C++
2012-01-10 02:28:42 +01:00
Ben Noordhuis
97e4b3a7bf
isolates: drain message queue completely
2012-01-10 02:09:08 +01:00
Andreas Madsen
787f62de8c
Improve test-child-process-silent
2012-01-09 13:04:13 -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
39484f49ef
test tls: make tests use new `tls.connect` API
...
Refs #1983 .
2012-01-08 11:13:28 +01:00
Ryan Dahl
8bd80f4911
fix test-sys for hash randomization
...
broken in 4a899c9274
2012-01-06 10:22:24 -08:00
koichik
dd9593ccc4
http: fix ServerResponse does not emit 'close'
...
Refs #2453 .
2012-01-06 15:45:21 +09:00
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.
2012-01-06 00:42:55 +01:00
Emerson Macedo
aa67b1f375
fs: add appendFile() and appendFileSync() functions
2012-01-05 21:39:57 +01:00