Nathan Rajlich
a6a04fb1ec
Add test case for the util.js type checking functions.
2011-10-27 03:38:29 +09:00
Nathan Rajlich
b8f3e18a5d
Export the type checking functions from util.js
.
...
As per discussion at:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/b08970166e4670cf
2011-10-27 03:38:29 +09:00
Ryan Dahl
b3ddb895d2
Don't compile in node_dtrace.cc when not supported
2011-10-26 11:36:21 -07:00
Zachary Scott
3961b5a131
docs: update email address
2011-10-26 20:00:54 +02:00
Zachary Scott
7fb8c7c37f
docs: update socket.io url
2011-10-26 20:00:10 +02:00
koichik
cbcaeedba9
tls: add address(), remoteAddress/remotePort
...
Fixes #758 .
Fixes #1055 .
2011-10-27 00:28:16 +09:00
koichik
0e8a55d2a2
tls: does not emit 'end' from EncryptedStream
...
de09168
and 4cdf9d4
breaks `test/pummel/test-https-large-response.js`.
It is never finished.
Fixes #1936 .
2011-10-27 00:18:29 +09:00
Ben Noordhuis
13871fa2f8
build: fix sunos gyp build, include platform file
2011-10-26 05:11:38 +00:00
Ben Noordhuis
15628f6735
sunos: don't use exceptions
...
Don't use exceptions in platform functions. Fix a resource leak
(leaked kstat handle) while we're at it.
2011-10-26 05:09:21 +00:00
Ben Noordhuis
d7dff34bad
gyp: support older bash versions
...
Older bash versions in `sh -c` mode don't parse `export FOO=42` constructs,
they bail out with a "FOO is not an identifier" error message.
This was fixed somewhere between bash 4.1.0 and 4.1.5 but let's support the
older versions anyway.
2011-10-26 04:59:31 +00:00
Ben Noordhuis
b8847e9ac6
uv: upgrade to 0cb2213
2011-10-26 00:05:24 +02:00
Igor Zinkovsky
0a5708c3e9
fix test-http-curl-chunk-problem.js and test-pipe-file-to-http.js on windows
2011-10-25 14:10:12 -07:00
Ben Noordhuis
680765abec
http: fix gcc 3.x build, don't use always_inline
2011-10-25 19:18:58 +00:00
Ben Noordhuis
dddfd0f8b8
test: spawn process.argv[0], not 'node'
...
'node' may or may not be on the path and may or may not be the version we are
running the test suite for.
2011-10-25 02:24:51 +02:00
Nathan Rajlich
58cb0fa639
Directly export the Stream constructor.
...
Also setting up a circular reference back to the
stream as `Stream.Stream`, for backwards-compatibility.
Fixes #1933
2011-10-24 15:45:35 -07:00
Ryan Dahl
239b3d62de
Remove resume and pause events
...
Too complex; unnecessary.
2011-10-24 13:23:59 -07:00
isaacs
4c5751ba97
Close #1929 zlib Respond to 'resume' events properly
2011-10-24 12:55:45 -07:00
Maciej Małecki
7ee29d1d5b
net: Server.listen
, Server.close
and Socket.connect
return this
...
Just a syntactic sugar for doing, for example:
var server = net.createServer(function (c) {
c.end('goodbye, cruel world!\r\n');
server.close().on('close', function () {
console.log('really, goodbye!');
});
}).listen(1337);
Fixes #1922 .
2011-10-24 22:19:42 +09:00
koichik
00aa8935d7
docs: improvement fs, http and https
2011-10-22 23:40:15 +09:00
seebees
216570b5e1
Lint
2011-10-22 14:14:40 +09:00
seebees
a2eaddaa51
Documentation update
...
http.markdown
note options now align with url.parse
added note that hostname is preferred over host.
added auth
added not that setting an explicit Authorization header will override basic authentication with 'auth'
https.markdown
Made a link to http.request and noted that all http.request options are valid.
url.markdown
added path option
2011-10-22 14:14:40 +09:00
seebees
1ead20f274
remove auth from host
...
Fixes #1626
2011-10-22 14:14:40 +09:00
seebees
005d607aed
http.request(url.parse(x))
...
http2.js
protocols object to store defaults for http and https, and use as a switch for supported protocols.
options.hostname > options.host > 'localhost'
if I have an options.auth element and I do not have an Authorization header, I do basic auth.
http.request collapses to new ClientRequest since the defaults are handled by the protocol object
test-http-url.parse*
Fixes #1390
Conflicts:
lib/http2.js
2011-10-22 14:14:40 +09:00
seebees
be4576de7a
url.resolveObject(url.parse(x), y) == url.parse(url.resolve(x, y));
...
added a .path property = .pathname + .search for use with http.request
And tests to verify everything.
With the tests, I changed over to deepEqual, and I would note the comment on the test
['.//g', 'f:/a', 'f://g'], which I think is a fundamental problem
This supersedes pull 1596
2011-10-22 14:14:39 +09:00
koichik
ed744ecbfd
docs: remove #1914 from Changelog.
2011-10-22 14:02:36 +09:00
Nathan Rajlich
bdb9d09aef
Print out undefined
on the REPL when returned.
...
util.inspect() has a special case for "undefined", so it's nice to be able to
distinguish visually that undefined is the result of an expression.
2011-10-22 14:02:35 +09:00
koichik
7e2d799328
docs: fix typo
2011-10-22 14:02:35 +09:00
Ryan Dahl
9b808c2d1b
Now working on v0.5.11
2011-10-21 19:16:06 -07:00
Ryan Dahl
220e61c1f6
Bump version to v0.5.10
2011-10-21 18:46:42 -07:00
Ben Noordhuis
dd6faa5adf
uv: upgrade to 179f475
2011-10-21 18:44:19 -07:00
Ben Noordhuis
ac379b3be1
net: bring back .setNoDelay() and .setKeepAlive()
2011-10-21 18:09:23 -07:00
Ben Noordhuis
401c073dd2
uv: upgrade to ec825ff
2011-10-21 18:09:17 -07:00
Ryan Dahl
493d3b9f7c
Merge remote branch 'origin/v0.4'
...
Conflicts:
ChangeLog
Makefile
deps/libev/wscript
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
src/platform_cygwin.cc
test/pummel/test-net-write-callbacks.js
test/simple/test-buffer.js
2011-10-21 18:02:30 -07:00
Igor Zinkovsky
8498ee03bc
make simple\test-fs-symlink.js work on windows
2011-10-21 17:31:32 -07:00
Maciej Małecki
8f1ba251dd
test: #1899 - output in child process raises an exception
2011-10-21 15:53:09 -07:00
Ryan Dahl
d5a21a29f8
getaddrinfo returns ENOTFOUND for invalid domain names
...
change test-http-dns-error to reflect this.
2011-10-21 15:19:53 -07:00
Ryan Dahl
efa95c2718
Fix test-eio-race on Windows
2011-10-21 14:55:28 -07:00
Ben Noordhuis
3c3ec7b2d7
gyp: upgrade to r1081
2011-10-21 13:49:29 -07:00
Ryan Dahl
9b2335a356
Upgrade libuv to 7738306
2011-10-21 13:44:30 -07:00
Ryan Dahl
de09168e5a
Emit 'end' from crypto streams on close
...
Fixes test/simple/test-tls-peer-certificate.js on Windows
Patch from bnoordhuis.
See also 75a0cf970f
2011-10-21 13:16:41 -07:00
isaacs
2d02e6a992
Add useGlobal flag for standard node repl
2011-10-21 13:02:49 -07:00
isaacs
caf70f5e94
Revert "Don't use a separate context for the repl."
...
This reverts commit b70fed48a7
.
2011-10-21 13:00:37 -07:00
Ben Noordhuis
0ae98dfc66
build: fix wscript on solaris
...
os.path.exists() in python 2.5.2 returns false for symlinks.
2011-10-21 12:46:55 -07:00
Igor Zinkovsky
69b73f9cf0
make process.kill a no-op on windows
2011-10-21 10:27:22 -07:00
Ryan Dahl
fafb584881
Fix race condition in test-dgram-pingpong
2011-10-21 10:21:23 -07:00
Ben Noordhuis
84d0b1bcc5
http: improve http parser bindings
...
Speeds up HTTP benchmarks by 10% on average.
2011-10-20 19:19:02 -07:00
Ryan Dahl
c83dda89a4
dns.lookup uses cares_wrap::GetAddrInfo
2011-10-20 18:03:02 -07:00
Ryan Dahl
fb3cccc257
Upgrade libuv to 2c7e8bb
2011-10-20 17:58:35 -07:00
Bert Belder
00bbe958c4
Fix windows build
2011-10-20 15:40:08 -07:00
Ben Noordhuis
145aa636b9
uv: upgrade to 28234d7
2011-10-20 15:30:09 -07:00