isaacs
debf552ed2
2012.06.06 Version 0.6.19 (stable)
...
* npm: upgrade to 1.1.24
* fs: no end emit after createReadStream.pause() (Andreas Madsen)
* vm: cleanup module memory leakage (Marcel Laverdet)
* unix: fix loop starvation under high network load (Ben Noordhuis)
* unix: remove abort() in ev_unref() (Ben Noordhuis)
* windows/tty: never report error after forcibly aborting line-buffered read (Bert Belder)
* windows: skip GetFileAttributes call when opening a file (Bert Belder)
2012-06-05 17:46:27 -07:00
isaacs
e5d3ea7771
Upgrade npm to 1.1.24
2012-06-05 17:46:27 -07:00
Ben Noordhuis
cb76999bad
deps: upgrade libuv to 06e0319
2012-06-05 17:07:43 +02:00
koichik
0742f5629c
Revert "punycode: Update to v1.0.0"
...
This reverts commit 483edbdf1a .
Fixes #3359 .
2012-06-05 22:10:37 +09:00
isaacs
434404e3bb
website: Add nodejs.es to localized sites
2012-06-01 10:21:02 -07:00
Erwin van der Koogh
ccc854d14e
doc: remove all references to setsid
...
Fixes #2299 .
2012-05-31 15:38:05 +02:00
Andreas Madsen
2ae9b69871
fs: no end emit after createReadStream.pause()
...
In case a fd option is given to fs.createReadStream a read will instantly
happen. But in the edge case where fd point to an empty file and .pause()
was executed instantly, the end event would emit since no async wait was
between fs.createReadStream and the file read there emits end.
This is a cherry-pick of commit 1f3e4a7 into the v0.6 branch.
2012-05-29 15:34:01 +02:00
Ben Noordhuis
5ff2ae8389
bench: start a worker for each CPU
2012-05-25 00:35:10 +02:00
Ben Noordhuis
7535e3930a
bench: add http_simple_auto benchmark
...
Starts a server and benchmarks it with ab.
2012-05-25 00:35:07 +02:00
Marcel Laverdet
7865c5c51d
vm: cleanup module memory leakage
...
There are some paths here that led to dangling contexts. By being smarter with
handle management we can get rid of all the cleanup code and fix those issues.
This is a backport of commit 7063575 .
2012-05-21 01:30:58 +02:00
isaacs
f19f980724
Now working on 0.6.19
2012-05-15 10:21:57 -07:00
isaacs
2498d15dde
Merge branch 'v0.6.18-release' into v0.6
2012-05-15 10:21:40 -07:00
isaacs
4bc1d395de
2012.05.15 Version 0.6.18 (stable)
...
* windows: skip GetFileAttributes call when opening a file (Bert Belder)
* crypto: add PKCS12/PFX support (Sambasiva Suda)
* #3240 : child_process: delete NODE_CHANNEL_FD from env in spawn (Ben Noordhuis)
* windows: add test for path.normalize with UNC paths (Bert Belder)
* windows: make path.normalize convert all slashes to backslashes (Bert Belder)
* fs: Automatically close FSWatcher on error (Bert Belder)
* #3258 : fs.ReadStream.pause() emits duplicate data event (koichik)
* pipe_wrap: don't assert() on pipe accept errors (Ben Noordhuis)
* Better exception output for module load and process.nextTick (Felix Geisendörfer)
* zlib: fix error reporting (Ben Noordhuis)
* http: Don't destroy on timeout (isaacs)
* #3231 : http: Don't try to emit error on a null'ed req object (isaacs)
* #3236 : http: Refactor ClientRequest.onSocket (isaacs)
2012-05-14 17:30:00 -07:00
isaacs
8068f9bf38
Escape leading # signs in 'make email.md'
2012-05-14 17:29:47 -07:00
isaacs
14a5b45c06
Guard against emitting 'end' twice on http responses
2012-05-14 17:22:45 -07:00
isaacs
ea4b1c1c0c
Upgrade libuv to bc4126b
2012-05-14 12:01:38 -07:00
Ben Noordhuis
9b42d7daaf
test: add https + .pfx client/server test
2012-05-14 17:34:33 +02:00
ssuda
fb7348ae06
crypto: add PKCS12/PFX support
...
Fixes #2845 .
2012-05-14 17:12:59 +02:00
Ben Noordhuis
bd907174e8
node: delete NODE_CHANNEL_FD from env
...
Prevents accidental inheritance by child processes. If the child process is a
node process, it would try to set up a channel with the parent and consequently
never quit because the channel kept the event loop alive.
Fixes #3240 .
2012-05-14 07:19:11 +02:00
Bert Belder
a475e62a3e
Windows: add test for path.normalize with UNC paths
2012-05-13 03:29:44 +02:00
Bert Belder
d91004a73d
Windows: make path.normalize convert all slashes to backslashes
...
Closes #3066
2012-05-13 03:18:09 +02:00
Bert Belder
d8351a2ef4
Automatically close FSWatcher on error
...
Closes #3250
2012-05-13 03:16:19 +02:00
koichik
5f9ffa17b1
fs: fix ReadStream.pause() emits duplicate data event
...
Fixes #3258 .
2012-05-12 10:24:46 +09:00
isaacs
9239088e87
500 is a magic number for the GC for some reason
2012-05-11 15:01:38 -07:00
isaacs
07d8a4650e
Break up huge function in ClientRequest.onSocket
2012-05-11 15:01:38 -07:00
Ben Noordhuis
884499d37e
build: fix cross-compiling
...
Take arch cflags in account when building libuv.
2012-05-11 19:01:30 +02:00
Shigeki Ohtsu
cc8cfb145a
doc: fix typo in buffer documentation
...
Fixes #3253 .
2012-05-11 20:00:53 +09:00
vegorov@chromium.org
52f0c37d09
Runtime_NotifyDeoptimized should search for function activation in all thread stacks.
...
R=fschneider@chromium.org
BUG=v8:1763
Review URL: http://codereview.chromium.org/8240004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@9588 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2012-05-10 01:05:10 +02:00
Philip Tellis
493beb23f2
doc: fs.ReadableStream does not have a destroySoon method
2012-05-09 23:32:50 +02:00
Ben Noordhuis
3883f22ad1
pipe_wrap: don't assert() on pipe accept errors
...
Pass errors to the onconnection callback.
2012-05-09 23:30:48 +02:00
Felix Geisendörfer
bf9d8e9214
Fix exception output for module load exceptions
...
So instead of:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
You will now see:
path/to/foo.js:1
throw new Error('bar');
^
This is a sub-set of isaacs patch here:
https://github.com/joyent/node/issues/3235
The difference is that this patch purely adresses the exception output,
but does not try to make any behavior changes / improvements.
2012-05-09 11:54:43 -07:00
Felix Geisendörfer
814033365b
Fix process.nextTick throw call sites
...
This patch now reports the proper throw call site for exceptions
triggered within process.nextTick. So instead of this:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
You will now see:
mydir/myscript.js:15
throw new Error('My Error');
^
From my testing this patch causes no performance regressions, but does
greatly simplify processing the nextTickQueue.
2012-05-09 11:54:43 -07:00
Ben Noordhuis
ee437c0557
zlib: fix error reporting
...
This commit is a back-port of the changes on the master branch.
Fixes #3230 .
2012-05-09 04:44:04 +02:00
isaacs
8c758e127c
Don't destroy on timeout
2012-05-07 14:19:16 -07:00
isaacs
b4fbf6d275
Fix #3231 . Don't try to emit error on a null'ed req object
2012-05-07 14:17:17 -07:00
Ben Noordhuis
e02af94947
test: add failing HTTP client timeout test
...
See #3231 .
2012-05-07 22:53:32 +02:00
isaacs
8cd2b0e778
test: No need for weak in 'make test'
2012-05-04 18:29:56 -07:00
isaacs
992e3464b8
Now working on 0.6.18
2012-05-04 13:34:33 -07:00
isaacs
fbe143d9cb
Merge branch 'v0.6.17-release' into v0.6
2012-05-04 13:34:08 -07:00
isaacs
4ced23deaf
2012.05.04 Version 0.6.17 (stable)
...
* Upgrade npm to 1.1.21
* uv: Add support for EROFS errors (Ben Noordhuis, Maciej Małecki)
* uv: Add support for EIO and ENOSPC errors (Fedor Indutny)
* windows: Add support for EXDEV errors (Bert Belder)
* http: Fix client memory leaks (isaacs, Vincent Voyer)
* fs: fix file descriptor leak in sync functions (Ben Noordhuis)
* fs: fix ReadStream / WriteStream double close bug (Ben Noordhuis)
2012-05-04 13:12:52 -07:00
isaacs
711ecdd54f
test: Run weak install with --unsafe-perm
...
This way it doesn't die when running as root.
2012-05-04 12:52:59 -07:00
isaacs
aaf0453b7c
Upgrade npm to 1.1.21
2012-05-04 12:52:55 -07:00
isaacs
719cd461d3
Upgrade uv to 936795a2c
2012-05-04 11:00:39 -07:00
isaacs
ab60efb535
Update Authors
2012-05-04 10:57:33 -07:00
isaacs
d1effbb338
Merge branch 'http-memleak' into v0.6
2012-05-04 10:54:24 -07:00
isaacs
2fc528ce00
http: Clean up parser usage
...
Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.
Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.
2012-05-04 10:40:50 -07:00
isaacs
62c12d2161
Clean up gc tests
...
This fixes the additional issues brought up in #3179 .
2012-05-04 10:40:38 -07:00
ANDO Takahiro
ebd0f98e2b
doc: fix callback argument of child_process.exec, execFile
...
Fixes #3196 .
2012-05-04 19:15:30 +09:00
isaacs
e3ceee2dce
http: .once() usage in setTimeout
2012-05-03 10:39:16 -07:00
isaacs
91120e0429
Tests for memory leaks
2012-05-03 10:36:17 -07:00
isaacs
b7e8e35c0e
http leak: Null links from parser to req/res
2012-05-03 10:20:45 -07:00
vvo
75f2365558
Fix #3179 HTTP memory leak using ClientRequest.
2012-05-03 07:45:46 -07:00
Ben Noordhuis
df2c5fa81d
fs: fix file descriptor leak in sync functions
...
Fixes #3202 . This is a back-port of commit 4e290e4 .
2012-05-03 02:49:36 +02:00
Ben Noordhuis
47d6a94656
fs: fix ReadStream / WriteStream double close bug
...
* Calling fs.ReadStream.destroy() or fs.WriteStream.destroy() twice would close
the file descriptor twice. That's bad because the file descriptor may have
been repurposed in the mean time.
* A bad value check in fs.ReadStream.prototype.destroy() would prevent a stream
created with fs.createReadStream({fd:0}) from getting closed.
2012-05-03 01:01:46 +02:00
isaacs
c9be1d5ffd
http client: Destroy on timeout
2012-05-02 12:13:54 -07:00
isaacs
bce68134b6
http: Remove socket ondata/onend in parser cleanup
2012-05-01 15:25:59 -07:00
isaacs
bfe9cdb7f2
Null references to request object on socket errors.
...
Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.
2012-05-01 14:26:18 -07:00
isaacs
acf19500ee
Now working on 0.6.17
2012-05-01 13:31:26 -07:00
isaacs
518d28c23a
Merge branch 'v0.6.16-release' into v0.6
2012-04-30 13:15:40 -07:00
isaacs
a1d193963d
2012.04.30 Version 0.6.16 (stable)
...
* Upgrade V8 to 3.6.6.25
* Upgrade npm to 1.1.19
* Windows: add mappings for UV_ENOENT (Bert Belder)
* linux: add IN_MOVE_SELF to inotify event mask (Ben Noordhuis)
* unix: call pipe handle connection cb on accept() error (Ben Noordhuis)
* unix: handle EWOULDBLOCK (Ben Noordhuis)
* map EWOULDBLOCK to UV_EAGAIN (Ben Noordhuis)
* Map ENOMEM to UV_ENOMEM (isaacs)
* Child process: support the `gid` and `uid` options (Bert Belder)
* test: cluster: add worker death event test (Ben Noordhuis)
* typo in node_http_parser (isaacs)
* http_parser: Eat CRLF between requests, even on connection:close. (Ben Noordhuis)
* don't check return value of unsetenv (Ben Noordhuis)
2012-04-30 13:09:50 -07:00
isaacs
e5ef103b05
Fix #3194 correct url documentation
2012-04-30 13:09:31 -07:00
isaacs
35bcb1d6a9
Indentation fix
2012-04-30 13:09:31 -07:00
isaacs
1ac05cc5ad
Upgrade npm to 1.1.18
2012-04-30 13:09:31 -07:00
ssuda
db844b152a
process: don't use strdup()
...
file and cwd can be directly used from Utf8Value.
Conflicts:
src/process_wrap.cc
2012-04-28 23:51:41 +02:00
Bert Belder
3546383cf0
process_wrap: avoid leaking memory when throwing due to invalid arguments
2012-04-28 23:36:47 +02:00
Bert Belder
55e4d54927
Child process: support the gid and uid options
2012-04-27 22:13:00 +02:00
Bert Belder
51e66ec410
Windows: turn off /Gm
...
Otherwise multicode compile doesn't work.
2012-04-27 22:06:12 +02:00
Bert Belder
0b75eee364
uv: upgrade to d41cc9118d
2012-04-27 22:00:44 +02:00
Bert Belder
e221cd4a53
uv: upgrade to aea5db5da1
2012-04-27 21:28:56 +02:00
isaacs
76de7c0c26
Add customary 'fork me on github' banner to website
2012-04-27 07:58:38 -07:00
Ben Noordhuis
a64acd8baa
test: cluster: add worker death event test
2012-04-23 15:58:48 +02:00
isaacs
27dfb1d4c0
doc: typo in child_process documentation
2012-04-20 07:46:42 -07:00
Brian White
642945cc00
docs: Remove duplicate socket.write() description
2012-04-20 16:16:17 +02:00
isaacs
c9a231db0e
typo in node_http_parser
2012-04-18 13:01:33 -07:00
Dane Springmeyer
e5b787e84d
deps: fix v8 build error
...
Pull in build error fix from http://code.google.com/p/v8/source/detail?r=9505
Missed in 5d69bbfbd .
2012-04-18 21:15:09 +02:00
lrn@chromium.org
5d69bbfbdb
Fix bug in x64 RegExp detecting start of string.
...
Also add missing MIPS case in regexp tracer.
Fixes issues v8:1748 and v8:1746
BUG=v8:1748, v8:1746
TEST=mjsunit/regress/regress-1748.js
Review URL: http://codereview.chromium.org/8116001
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@9504 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2012-04-16 17:40:17 +02:00
Dave Pacheco
0f74729758
disable omit-frame-pointer on solaris systems
2012-04-16 17:28:45 +02:00
isaacs
0c0f13eda4
Patches floating on v8
2012-04-16 17:28:33 +02:00
Bert Belder
69ca83f755
Upgrade V8 to 3.6.6.25
2012-04-16 17:27:16 +02:00
Ben Noordhuis
3f4261276e
node: don't check return value of unsetenv()
...
It returns void on some platforms, notably FreeBSD.
2012-04-16 14:16:48 +02:00
Ben Noordhuis
d03b80bc12
deps: upgrade http_parser to joyent/http-parser@da91852
2012-04-14 23:12:36 +02:00
isaacs
8b82abb953
Fix #3089 Build changelog.html for website
2012-04-10 18:31:12 -07:00
isaacs
d0365fd21f
Makefile: minor nit
2012-04-10 18:22:42 -07:00
isaacs
e8067cb685
Now working on v0.6.16
2012-04-09 10:34:54 -07:00
isaacs
163d3cdf14
Merge branch 'v0.6.15-release' into v0.6
2012-04-09 10:34:32 -07:00
isaacs
f160a45b25
2012.04.09 Version 0.6.15 (stable)
...
* Update npm to 1.1.16
* Show licenses in binary installers.
* unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64 (Ben Noordhuis)
* add 64bit offset fs functions (Igor Zinkovsky)
* windows: don't report ENOTSOCK when attempting to bind an udp handle twice (Bert Belder)
* windows: backport pipe-connect-to-file fixes from master (Bert Belder)
* windows: never call fs event callbacks after closing the watcher (Bert Belder)
* fs.readFile: don't make the callback before the fd is closed (Bert Belder)
* windows: use 64bit offsets for uv_fs apis (Igor Zinkovsky)
* Fix #2061 : segmentation fault on OS X due to stat size mismatch (Ben Noordhuis)
2012-04-09 09:03:00 -07:00
isaacs
c75f71dd72
fs.WriteStream: Handle modifications to fs.open
...
If the fs.open method is modified via AOP-style extension, in between
the creation of an fs.WriteStream and the processing of its action
queue, then the test of whether or not the method === fs.open will fail,
because fs.open has been replaced.
The solution is to save a reference to fs.open on the stream itself when
the action is placed in the queue.
This fixes isaacs/node-graceful-fs#6 .
2012-04-09 09:03:00 -07:00
isaacs
45b772d8cb
fs.readFile: Emit 'close' if we don't expect a close later
...
This fixes a regression introduced by 40b7302
2012-04-07 16:53:18 -07:00
isaacs
08e2e570a7
Make rules for release blog post and email message
2012-04-07 16:37:44 -07:00
isaacs
57d722011a
website: Add October Sky JS and Node.js Hispano
2012-04-07 16:29:37 -07:00
isaacs
e81a5e9c9c
Remove stray comment from LICENSE file
2012-04-07 16:20:42 -07:00
Bert Belder
ba055115e0
Windows: installer shows license agreement dialog
2012-04-06 16:15:55 -07:00
Bert Belder
1330419446
Windows: add build step that generates license.rtf from LICENSE
2012-04-06 16:15:51 -07:00
Ryan Dahl
c9f17305e6
Mac installer shows license
...
ref #3056
2012-04-06 16:15:43 -07:00
Ryan Dahl
cf75619bc3
Include text of licenses in LICENSE file
...
For easy inclusion in binary distributions. ref #3056
2012-04-06 16:15:33 -07:00
Ryan Dahl
331cd7c251
Fix links to libev and libeio licenses
2012-04-06 16:15:24 -07:00
isaacs
37ac5e52bf
Update npm to 1.1.16
2012-04-06 14:42:19 -07:00
Igor Zinkovsky
0b57fee3f8
enable test-fs-largefile.js test
2012-04-05 18:18:48 -07:00
Bert Belder
1042a8d887
Please the compiler
2012-04-06 03:14:07 +02:00
Bert Belder
40b7302af8
fs.readFile: don't make the callback before the fd is closed
...
On Windows it is not possible to unlink() the read file in the callback.
This fixes #3051 . A test is included.
2012-04-06 03:13:56 +02:00
Igor Zinkovsky
f178f2ae3f
upgrade libuv to d68b3d960b6d95bfc16027cecca2f3fa48bcc36f
2012-04-05 17:10:39 -07:00
Igor Zinkovsky
052aaa4c4d
windows: use 64bit offsets for uv_fs apis
2012-04-05 16:03:11 -07:00
Ben Noordhuis
ffee873941
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
...
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat)
mismatches.
Fixes #2061 .
2012-04-02 23:44:38 +02:00
Nathan Rajlich
0965d2d9f6
js2c: fix to support files other than ones ending with 2 char extensions
...
Previously this was basically hard-coded for *.js files, but now we
need to include the 'config.gypi' file in there as well.
2012-04-01 01:44:54 +02:00
isaacs
1e577f347b
website: Consistency in the industry logos
2012-03-30 18:21:50 -07:00
isaacs
066789a6e3
Fix #3001 website update 'latest' links on publish
2012-03-24 01:39:39 -07:00
isaacs
a7dce47854
Now working on v0.6.15
2012-03-23 11:17:08 -07:00
isaacs
dbd0e2b386
Merge branch 'v0.6.14-release' into v0.6
2012-03-23 11:16:31 -07:00
isaacs
e513ffef75
2012.03.22 Version 0.6.14 (stable)
...
* net: don't crash when queued write fails (Igor Zinkovsky)
* sunos: fix EMFILE on process.memoryUsage() (Bryan Cantrill)
* crypto: fix compile-time error with openssl 0.9.7e (Ben Noordhuis)
* unix: ignore ECONNABORTED errors from accept() (Ben Noordhuis)
* Add UV_ENOSPC and mappings to it (Bert Belder)
* http-parser: Fix response body is not read (koichik)
* Upgrade npm to 1.1.12
- upgrade node-gyp to 0.3.7
- work around AV-locked directories on Windows
- Fix isaacs/npm#2293 Don't try to 'uninstall' /
- Exclude symbolic links from packages.
- Fix isaacs/npm#2275 Spurious 'unresolvable cycle' error.
- Exclude/include dot files as if they were normal files
2012-03-23 08:01:22 -07:00
isaacs
d497bf845b
doc: Remove extraneous index.html's from hyperlinks
2012-03-22 17:31:23 -07:00
isaacs
76f31faa3b
Remove hard-coded version number from docs
2012-03-22 17:31:15 -07:00
Igor Zinkovsky
0dcc43316f
don't crash when queued write fails
2012-03-22 17:09:22 -07:00
isaacs
d227084339
Upgrade libuv to 8409a67
2012-03-22 16:44:04 -07:00
isaacs
a7cd76bb3b
Remove unused fast-list module from npm
2012-03-22 16:43:28 -07:00
isaacs
67f1778065
Upgrade npm to 1.1.12
2012-03-22 16:38:58 -07:00
Bryan Cantrill
d1255914df
sunos: fix EMFILE on process.memoryUsage()
2012-03-22 16:18:11 -07:00
Ben Noordhuis
ea44d3031d
crypto: fix compile-time error with openssl <= 0.9.7e
2012-03-22 15:52:12 +01:00
isaacs
851b3970e7
Fix include logic was replacing https include with http
2012-03-17 11:07:35 -07:00
isaacs
d980620010
Ignore 'making a build' artifacts
2012-03-17 11:07:35 -07:00
koichik
03077db45d
test: HTTP responses with no content-length
...
Refs: #2952 .
2012-03-18 00:50:47 +09:00
Ben Noordhuis
44527e6023
deps: upgrade http_parser to joyent/http-parser@b47c44d
2012-03-17 16:22:39 +01:00
Rod Vagg
90b785c09a
doc: fix # links from (and within) api/fs
2012-03-16 15:51:33 +01:00
isaacs
b9bd2d3eb9
Now working on v0.6.14
2012-03-15 10:33:33 -07:00
isaacs
9726a259bf
Merge branch 'v0.6.13-release' into v0.6
2012-03-15 10:32:58 -07:00
isaacs
9f7f86b534
2012.03.15 Version 0.6.13 (stable)
...
* Windows: Many libuv test fixes (Bert Belder)
* Windows: avoid uv_guess_handle crash in when fd < 0 (Bert Belder)
* Map EBUSY and ENOTEMPTY errors (Bert Belder)
* Windows: include syscall in fs errors (Bert Belder)
* Fix fs.watch ENOSYS on Linux kernel version mismatch (Ben Noordhuis)
* Update npm to 1.1.9
- upgrade node-gyp to 0.3.5 (Nathan Rajlich)
- Fix isaacs/npm#2249 Add cache-max and cache-min configs
- Properly redirect across https/http registry requests
- log config usage if undefined key in set function (Kris Windham)
- Add support for os/cpu fields in package.json (Adam Blackburn)
- Automatically node-gyp packages containing a binding.gyp
- Fix failures unpacking in UNC shares
- Never create un-listable directories
- Handle cases where an optionalDependency fails to build
2012-03-15 08:45:35 -07:00
isaacs
06bf0707f7
makefile: Fix 'make doc'
2012-03-15 08:22:36 -07:00
isaacs
571a51989e
Upgrade libuv to 66a959c4052
2012-03-15 08:18:37 -07:00
isaacs
f631c1d73b
Update npm to 1.1.9
2012-03-14 16:44:36 -07:00
isaacs
ad5a108dfd
Update uv to 5d21056
2012-03-14 16:44:36 -07:00
Artur Adib
c834ef409e
Doc highlight fix
2012-03-14 16:44:36 -07:00
Rod Vagg
c12a1dc5d8
path.exists*() as 2nd level head not 3rd
2012-03-14 16:20:40 -07:00
Bert Belder
3733a85d8d
Windows: include syscall in fs errors
2012-03-08 02:57:44 +01:00
Bert Belder
daaccc7cb7
uv: upgrade to 1ac71a31
2012-03-08 02:57:37 +01:00
isaacs
33f9074a62
Mention marked, and add license to doc generator
2012-03-05 10:59:14 -08:00
isaacs
8258bd467a
doc: 'filename' arg not guaranteed ever.
2012-03-05 10:28:47 -08:00
isaacs
5ca5ec33cc
doc: css consistency on anchor links
2012-03-03 22:58:47 -08:00
isaacs
f1742c93d7
doc: Don't prune Stability indicators
2012-03-03 22:58:29 -08:00
isaacs
a42b4ad44e
doc: Typo'd some stability indicators.
2012-03-03 22:12:43 -08:00
isaacs
1d59a73fef
doc: Change 'file_system' module to 'fs' as it should be
2012-03-03 17:14:06 -08:00
isaacs
cf6e4d82e7
Use shorter url for /docs/latest/api
2012-03-03 17:08:46 -08:00
isaacs
2e487379ad
doc: Stability and Caveats for fs.watch/watchFile
2012-03-03 17:04:02 -08:00
isaacs
f70be203e4
doc: indentation and structure in fs.markdown
2012-03-03 17:04:02 -08:00
isaacs
c368e46e7f
doc: Document JSON docs
2012-03-03 17:03:59 -08:00
isaacs
3dfa98c991
doc: Add link to JSON version of doc
2012-03-03 17:03:56 -08:00
isaacs
2d44dcc8be
doc: Add stability indicators to documentation
2012-03-03 17:03:52 -08:00
isaacs
2f256af412
Now working on v0.6.13
2012-03-02 13:09:09 -08:00
isaacs
353bfbaf93
Merge branch 'v0.6.12-release' into v0.6
2012-03-02 13:09:00 -08:00
isaacs
48a2d34cfe
2012.03.02 Version 0.6.12 (stable)
...
* Upgrade V8 to 3.6.6.24
* dtrace ustack helper improvements (Dave Pacheco)
* API Documentation refactor (isaacs)
* #2827 net: fix race write() before and after connect() (koichik)
* #2554 #2567 throw if fs args for 'start' or 'end' are strings (AJ ONeal)
* punycode: Update to v1.0.0 (Mathias Bynens)
* Make a fat binary for the OS X pkg (isaacs)
* Fix hang on accessing process.stdin (isaacs)
* repl: make tab completion work on non-objects (Nathan Rajlich)
* Fix fs.watch on OS X (Ben Noordhuis)
* Fix #2515 nested setTimeouts cause premature process exit (Ben Noordhuis)
* windows: fix time conversion in stat (Igor Zinkovsky)
* windows: fs: handle EOF in read (Brandon Philips)
* windows: avoid IOCP short-circuit on non-ifs lsps (Igor Zinkovsky)
* Upgrade npm to 1.1.4 (isaacs)
- windows fixes
- Bundle nested bundleDependencies properly
- install: support --save with url install targets
- shrinkwrap: behave properly with url-installed modules
- support installing uncompressed tars or single file modules from urls etc.
- don't run make clean on rebuild
- support HTTPS-over-HTTP proxy tunneling
2012-03-02 12:36:45 -08:00
isaacs
ef5b0f4c8e
css: Fix fonts on api index page navigation
2012-03-02 12:36:45 -08:00
Dave Pacheco
b47ba2c431
disable omit-frame-pointer on solaris systems
2012-03-02 11:26:06 -08:00
isaacs
2d6a076ab3
Patches floating on v8
2012-03-02 11:26:05 -08:00
isaacs
c0c4e008aa
Upgrade V8 to 3.6.6.24
2012-03-02 11:26:05 -08:00
isaacs
1bf3a14353
Upgrade npm to 1.1.4 (minor bugfix)
2012-03-02 09:48:25 -08:00
isaacs
054127112c
Upgrade npm to 1.1.3
...
* Update request to support HTTPS-over-HTTP proxy tunneling
* Throw on undefined envs in config settings
* Update which to 1.0.5
* Fix windows UNC busyloop in findPrefix
* Bundle nested bundleDependencies properly
* Alias adduser to add-user
* Doc updates (Christian Howe, Henrik Hodne, Andrew Lunny)
* ignore logfd/outfd streams in makeEnv() (Rod Vagg)
* shrinkwrap: Behave properly with url-installed deps
* install: Support --save with url install targets
* Support installing naked tars or single-file modules from urls etc.
* init: Don't add engines section
* Don't run make clean on rebuild
* Added missing unicode replacement (atomizer)
2012-03-02 09:31:46 -08:00
Dave Pacheco
edea94c332
dtrace ustack helper improvements
...
Fixes #2852
2012-03-02 09:29:18 -08:00
isaacs
d8c5ba2185
Change test fixture from symlink to regular file
...
The only test using this is test/simple/test-fs-chmod.js, and it was
treating a.js and a1.js as two separate files, resulting in a race
condition. (Interestingly enough, it was *not* using the symlink file to
test lchmod, which uses a different temp file.)
2012-03-02 09:17:09 -08:00
Ben Noordhuis
3aa2fd3b2c
uv: upgrade to b3fe183
2012-03-01 17:02:20 +01:00
isaacs
a63ce6ea94
Merge branch 'json-api-v0.6' into v0.6
2012-02-29 16:05:18 -08:00
isaacs
4ca3fd0a01
Handle miscs better
2012-02-29 16:04:56 -08:00
isaacs
86d077da00
Debugger should be a misc, not 'concept'
2012-02-29 16:04:55 -08:00
isaacs
17db291b5c
'Events' is a module, not an event named 's'
2012-02-29 16:04:55 -08:00
isaacs
7bfa5cf284
s/streams/stream/
2012-02-29 16:04:55 -08:00
isaacs
674416fbc9
s/buffers/buffer/
2012-02-29 16:04:55 -08:00
isaacs
b34feeeb86
doc refactor: zlib
2012-02-29 16:04:55 -08:00
isaacs
169b0820f0
doc refactor: vm
2012-02-29 16:04:55 -08:00
isaacs
3c195d04f3
doc refactor: util
2012-02-29 16:04:54 -08:00
isaacs
c417de409d
doc refactor: url
2012-02-29 16:04:54 -08:00
isaacs
c2f6405a0f
doc refactor: tty
2012-02-29 16:04:54 -08:00
isaacs
c0446edcc2
doc refactor: tls
2012-02-29 16:04:54 -08:00
isaacs
4ed05da2be
doc refactor: timers
2012-02-29 16:04:54 -08:00
isaacs
8d1e5d3ae1
doc refactor: synopsis
2012-02-29 16:04:54 -08:00
isaacs
774c289ba8
doc refactor: streams
2012-02-29 16:04:53 -08:00
isaacs
8e22004cb5
doc refactor: stdio
2012-02-29 16:04:53 -08:00
isaacs
d39297251f
doc refactor: repl
2012-02-29 16:04:53 -08:00
isaacs
3b6c1d74c7
doc refactor: readline
2012-02-29 16:04:53 -08:00
isaacs
798f8a0dc1
doc refactor: querystring
2012-02-29 16:04:53 -08:00
isaacs
e083720d54
doc refactor: process
2012-02-29 16:04:53 -08:00
isaacs
3ce782b7f2
doc refactor: path
2012-02-29 16:04:52 -08:00
isaacs
8a121fa0e7
doc refactor: os
2012-02-29 16:04:52 -08:00
isaacs
e8ad5b9c1c
doc refactor: net
2012-02-29 16:04:52 -08:00
isaacs
e88a1ba74a
doc refactor: modules
2012-02-29 16:04:52 -08:00
isaacs
c205d3b53a
doc refactor: https
2012-02-29 16:04:52 -08:00
isaacs
4f24b20fcb
doc refactor: http
2012-02-29 16:04:52 -08:00
isaacs
a62ec4437b
doc refactor: globals
2012-02-29 16:04:51 -08:00
isaacs
2a6ff3f56b
doc refactor: fs
2012-02-29 16:04:51 -08:00
isaacs
14d4fbb002
doc refactor: events
2012-02-29 16:04:51 -08:00
isaacs
cacb28c92c
doc refactor: dns
2012-02-29 16:04:51 -08:00
isaacs
db8c55e77c
doc refactor: dgram
2012-02-29 16:04:51 -08:00
isaacs
f775c5cea4
doc refactor: debugger
2012-02-29 16:04:50 -08:00
isaacs
032b877f31
doc refactor: crypto
2012-02-29 16:04:50 -08:00
isaacs
6738d82e38
doc refactor: cluster
2012-02-29 15:24:27 -08:00
isaacs
03d6aa07ea
doc refactor: buffers
2012-02-29 15:23:04 -08:00
isaacs
d383954ffe
doc refactor: assert
2012-02-29 15:23:00 -08:00
isaacs
5d4e3d2d0c
doc refactor: appendix_1
2012-02-29 15:22:56 -08:00
isaacs
df5be65415
doc refactor: addons
2012-02-29 15:22:53 -08:00
isaacs
d71f9944cc
Add 'about these docs' section
2012-02-29 15:22:48 -08:00
isaacs
f28d482cd4
s/child_processes/child_process/
...
Conflicts:
doc/api/child_process.markdown
2012-02-29 15:20:53 -08:00
isaacs
5824881e4a
Remove empty sections
2012-02-29 15:20:13 -08:00
isaacs
1a181315eb
Increase contrast of links, decrease contrast of bullets
2012-02-29 15:20:06 -08:00
isaacs
63629614cb
Update styles to reflect changed api doc html structure
2012-02-29 15:19:59 -08:00
isaacs
8cd13eb74e
Update template to use new token style
...
Conflicts:
doc/template.html
2012-02-29 15:19:47 -08:00
isaacs
ffcdcc7ff0
Use new doc generation tool
...
Conflicts:
Makefile
2012-02-29 15:18:51 -08:00
isaacs
4051c2843b
docs: Move images out of the dist tarball
...
This puts all images in doc/images/ and references them via
http://nodejs.org/images/ .
Any complaints about copyright usage etc. can thus be node/joyent's
problem, rather than the problem of a downstream distribution channel.
Conflicts:
Makefile
2012-02-29 15:17:55 -08:00
isaacs
217bb47b02
New documentation generation tool
2012-02-29 15:15:25 -08:00
Joshua Holbrook
4065b241e8
child_process: remove dummy "setsid" option setting
2012-02-29 02:06:20 +01:00
koichik
63431796f4
net: fix race write() before and after connect()
...
Fixes #2827 .
2012-02-28 19:27:27 +09:00
isaacs
692bcbe559
Revert "docs: split TOC into two parts: overview and API"
...
This reverts commit cd4cb8e795 .
2012-02-27 15:53:20 -08:00
AJ ONeal
7f58d207f3
[ISSUE #2554 #2567 ] throw if fs args for 'start' or 'end' are strings
2012-02-27 14:17:09 -08:00
Mathias Bynens
483edbdf1a
punycode: Update to v1.0.0
2012-02-27 14:03:18 -08:00
Igor Zinkovsky
70a393ea9a
update libuv to 9a5c1bad90
2012-02-27 13:16:06 -08:00
isaacs
4f8d7328a4
Fix #2822 Only remove logo images, not logo html
2012-02-27 13:08:54 -08:00
tedsuo
cd4cb8e795
docs: split TOC into two parts: overview and API
...
Fixes #2090 .
Fixes #2336 .
2012-02-27 17:36:20 +09:00
isaacs
ca0986fbd1
Update npm to 1.1.2
2012-02-24 18:52:17 -08:00
isaacs
e004721b48
Make a fat binary for the OS X pkg
2012-02-22 15:58:02 -08:00
Igor Zinkovsky
35c1f682c1
update libuv to c0e7044862
2012-02-22 12:04:39 -08:00
isaacs
634b4de2c8
Pause process.stdin in stdin getter
...
Otherwise, it'll be ref'ed, and keep the process hanging.
2012-02-21 15:31:50 -08:00
isaacs
186960fefb
Add Håvard Stranden to AUTHORS file
2012-02-21 12:04:09 -08:00
Fedor Indutny
c6019b8b4e
docs: remove server.pause
...
This functionality was removed when libuv landed in node. It is useless
and can be easily implemented in user-land.
2012-02-21 20:52:40 +06:00
Ben Noordhuis
96a137a18a
docs: update man page
2012-02-18 22:36:34 +01:00
Paul Vorbach
c1f474010e
docs: fix quotation style in the webserver example
...
Replace " by '
2012-02-18 02:05:12 +01:00
Ben Noordhuis
23c4278e06
docs: fix tls markdown
2012-02-17 23:58:42 +01:00
isaacs
dfed2cef75
Merge branch 'v0.6.11-release' into v0.6
2012-02-17 13:35:52 -08:00
isaacs
f73f07e126
Now working on 0.6.12
2012-02-17 13:33:58 -08:00
isaacs
1eb1fe3225
2012.02.17 Version 0.6.11 (stable)
...
* http: allow multiple WebSocket RFC6455 headers (Einar Otto Stangvik)
* http: allow multiple WWW-Authenticate headers (Ben Noordhuis)
* windows: support unicode argv and environment variables (Bert Belder)
* tls: mitigate session renegotiation attacks (Ben Noordhuis)
* tcp, pipe: don't assert on uv_accept() errors (Ben Noordhuis)
* tls: Allow establishing secure connection on the existing socket (koichik)
* dgram: handle close of dgram socket before DNS lookup completes (Seth Fitzsimmons)
* windows: Support half-duplex pipes (Igor Zinkovsky)
* build: disable omit-frame-pointer on solaris systems (Dave Pacheco)
* debugger: fix --debug-brk (Ben Noordhuis)
* net: fix large file downloads failing (koichik)
* fs: fix ReadStream failure to read from existing fd (Christopher Jeffrey)
* net: destroy socket on DNS error (Stefan Rusu)
* dtrace: add missing translator (Dave Pacheco)
* unix: don't flush tty on switch to raw mode (Ben Noordhuis)
* windows: reset brightness when reverting to default text color (Bert Belder)
* npm: update to 1.1.1
- Update which, fstream, mkdirp, request, and rimraf
- Fix #2123 Set path properly for lifecycle scripts on windows
- Mark the root as seen, so we don't recurse into it. Fixes #1838 . (Martin Cooper)
2012-02-17 12:39:45 -08:00
isaacs
a2851b6234
Revert "cluster: propagate bind errors"
...
This reverts commit 30e462e919 .
2012-02-17 12:39:45 -08:00
isaacs
4672872ddd
Fix #2770 Compile the OS X pkg as ia32
2012-02-17 12:39:45 -08:00
Shannen Saez
9764bea97d
docs: remove unused javascript includes
2012-02-17 16:13:48 +01:00
Shannen Saez
4ed7b035bd
docs: add lang="en" and remove redundant types
2012-02-17 16:13:42 +01:00
Nathan Rajlich
a118f21728
repl: make tab completion work on non-objects
2012-02-17 15:51:33 +01:00
isaacs
7a1a62ec6e
Upgrade uv to 86ebe48660e
2012-02-16 15:32:15 -08:00
Ben Noordhuis
30e462e919
cluster: propagate bind errors
...
This commit fixes a bug where the cluster module failed to propagate EADDRINUSE
errors.
When a worker starts a (net, http) server, it requests the listen socket from
its master who then creates and binds the socket.
Now, OS X and Windows don't always signal EADDRINUSE from bind() but instead
defer the error until a later syscall. libuv mimics this behaviour to provide
consistent behaviour across platforms but that means the worker could end up
with a socket that is not actually bound to the requested addresss.
That's why the worker now checks if the socket is bound, raising EADDRINUSE if
that's not the case.
Fixes #2721 .
2012-02-16 23:47:17 +01:00
einaros
83fd1c1de5
Add WebSocket RFC6455 multiheader fields to the http parser.
2012-02-16 14:12:38 -08:00
Ben Noordhuis
2c07712860
http: allow multiple WWW-Authenticate headers
2012-02-16 14:11:49 -08:00
Bert Belder
8f2694bb53
Make win32 ansi api usage explicit
...
Use widechar versions in a couple of places.
Don't use C-style cast in C++ code.
2012-02-16 22:19:48 +01:00
Bert Belder
d52f5020ce
Windows: another attempt to support unicode argv
2012-02-16 20:58:45 +01:00
Bert Belder
9364699be1
Revert "Windows: support non-ansi command line arguments"
...
CommandLineToArgvW doesn't behave exactly the same as the crt, which makes it useless.
This reverts commit ef032cbe85 .
2012-02-16 20:19:33 +01:00
Ben Noordhuis
3415427dbf
tls: mitigate session renegotiation attacks
...
The TLS protocol allows (and sometimes requires) clients to renegotiate the
session. However, renegotiation requires a disproportional amount of server-side
resources, particularly CPU time, which makes it a potential vector for
denial-of-service attacks.
To mitigate this issue, we keep track of and limit the number of renegotiation
requests over time, emitting an error if the threshold is exceeded.
2012-02-16 18:15:21 +01:00
koichik
ef50bd2e54
docs: removed unnecessary STARTTLS section
2012-02-17 02:10:59 +09:00
Bert Belder
d91bc7cb09
Windows: get rid of process._cwdForDrive()
2012-02-16 00:10:51 +01:00
Bert Belder
077f9d7293
Windows: use unicode environment
2012-02-16 00:10:33 +01:00
Ben Noordhuis
0685707bc6
tcp, pipe: don't assert on uv_accept() errors
...
It's possible for a new connection to be closed in the window between the
accept() syscall and the call to uv_accept(). Deal with it and move on, don't
assert.
2012-02-15 16:45:14 +01:00
Igor Zinkovsky
14b20ffc30
add tls-over-http-tunnel test
2012-02-14 11:53:23 -08:00
koichik
b19b8836c3
tls: Allow establishing secure connection on the existing socket
2012-02-14 11:53:05 -08:00
Seth Fitzsimmons
1ce14eca44
dgram: handle close of dgram socket before DNS lookup completes
2012-02-14 14:10:21 +01:00
Bert Belder
ef032cbe85
Windows: support non-ansi command line arguments
2012-02-13 20:55:29 +01:00
Bert Belder
2e6ad62047
Add libuv test that was omitted in last libuv upgrade
2012-02-12 21:07:31 +01:00
Bert Belder
c3f176222a
Fix vcbuild.bat, print error when an unrecognized option is encountered
2012-02-12 21:04:03 +01:00
koichik
2f759a7090
test: fix timing sensitivity in test-net-write-slow
2012-02-12 02:05:30 +09:00
Ben Noordhuis
d3f6b094c7
docs: update net.Server.address() documentation
2012-02-11 14:24:15 +01:00
Igor Zinkovsky
c7771bc2ec
set readable/writable for pipes
2012-02-10 11:28:43 -08:00
Igor Zinkovsky
c9f58cc595
upgrade uv to f9be43a564
2012-02-10 11:27:12 -08:00
Ben Noordhuis
a8f357629d
docs: clarify http 'data' callback
...
Fixes #2733 .
2012-02-10 18:51:33 +01:00
Ben Noordhuis
38eec57aef
docs: document tls/crypto ciphers option
...
Hitherto undocumented option that lets the user select the list of ciphers to
use or exclude in a SSL/TLS session.
2012-02-09 17:16:46 +01:00
Ben Noordhuis
cacd3ae004
test: add cluster 'bind twice' test
...
This test starts two clustered HTTP servers on the same port. It expects the
first cluster to succeed and the second cluster to fail with EADDRINUSE.
2012-02-09 06:32:33 +01:00
isaacs
163900dc68
npm: update to 1.1.1
2012-02-08 12:36:20 -08:00
Dave Pacheco
e5ed6b91f4
disable omit-frame-pointer on solaris systems
2012-02-08 10:16:19 -08:00
Ben Noordhuis
81d18398a8
test: add --debug-brk regression test
2012-02-07 23:42:38 +01:00
Ben Noordhuis
09c296b44d
debugger: fix --debug-brk
...
Commit 840229a forgot to update the debugger special case in lib/module.js
Fixes #2710 .
2012-02-07 23:16:40 +01:00
Igor Zinkovsky
0a347559bf
enable x64 windows build
...
use "vcbuild x64" to do x64 build of node.exe
2012-02-07 13:32:53 -08:00
Ben Noordhuis
7543c38dca
Revert "Add explicit v8 locker"
...
This reverts commit 11d1eca9f3 .
It sporadically (but reproducibly) triggers an assert inside V8:
Fatal error in /path/to/node/deps/v8/src/isolate.cc, line 1857
CHECK(CurrentPerIsolateThreadData()->isolate_ == this) failed
Needs further investigation.
2012-02-05 23:36:38 +01:00
koichik
a2cd31cbf1
doc: add the note about 'data' event
...
Refs #2691 .
2012-02-05 19:11:54 +09:00
koichik
0f0af55a0a
net: fix large file downloads failing
...
Fixes #2678 .
2012-02-05 17:41:49 +09:00
Marcel Laverdet
11d1eca9f3
Add explicit v8 locker
...
v8 requires a lock of each thread using the vm, but if none is
explicitly is created it will implicitly create one for you. This
creates issues when trying to build modules which use v8's
multi-threading features because there's no lock to unlock.
2012-02-04 22:19:56 +01:00
Christopher Jeffrey
f64989e63b
fs: fix ReadStream fails to read from existing fd
...
A ReadStream constructed from an existing file descriptor failed to start
reading automatically. Avoids a userspace call to ReadStream.prototype._read().
2012-02-04 22:14:58 +01:00
Stefan Rusu
07a983a602
test: add tcp and https DNS error tests
...
net-dns-error: specifc test for the net DNS issue.
http-dns-error: now it works for HTTPS as well.
2012-02-04 00:41:24 +01:00
Stefan Rusu
4671e54495
net: destroy socket on DNS error
...
The socket was never destroyed on DNS errors. This broke some clients, including
lib/https.js.
2012-02-04 00:40:53 +01:00
Bert Belder
68db20656e
Rename some occurrences of process_1 back to process
2012-02-03 15:38:08 +01:00
Dave Pacheco
9fb088e3ab
dtrace: add missing translator
...
Add missing translator for node_dtrace_http_*_request_t types.
Fixes #2667 .
2012-02-03 14:07:32 +00:00
isaacs
74a2528bd7
Now working on v0.6.11
2012-02-02 17:19:28 -08:00
isaacs
051908e023
2012.02.02, Version 0.6.10 (stable)
...
* Update V8 to 3.6.6.20
* Add npm msysgit bash shim to msi installer (isaacs)
* buffers: fix intermittent out of bounds error (Ben Noordhuis)
* buffers: honor length argument in base64 decoder (Ben Noordhuis)
* windows: Fix path.exists regression (Bert Belder)
* Make QueryString.parse run faster (Philip Tellis)
* http: avoid freeing http-parser objects too early (koichik)
* timers: add v0.4 compatibility hack (Ben Noordhuis)
* Proper EPERM error code support (Igor Zinkovsky, Brandon Philips)
* dgram: Implement udp multicast methods on windows (Bert Belder)
2012-02-02 16:56:42 -08:00
isaacs
5937d02aed
msi: npm bash shim fixes
2012-02-02 16:56:42 -08:00
isaacs
71527e3a55
Patches floating on v8
2012-02-02 15:38:28 -08:00
isaacs
465f57c56f
Upgrade v8 to 3.6.6.20
2012-02-02 15:38:28 -08:00
isaacs
30fd2f7bb2
Add npm msysgit bash shim to msi installer
2012-02-02 14:57:12 -08:00
Ben Noordhuis
7e40c7ddc9
buffers: fix intermittent out of bounds error
...
The base64 decoder would intermittently throw an out-of-bounds exception when
the buffer in `buf.write('', 'base64')` was a zero-sized buffer located at the
end of the slab.
Fixes #2657 .
2012-02-02 19:14:06 +01:00
Ben Noordhuis
f101f7c9ba
buffers: honor length argument in base64 decoder
...
Honor the length argument in `buf.write(s, 0, buf.length, 'base64')`. Before
this commit, the length argument was ignored. The decoder would keep writing
until it hit the end of the buffer. Since most buffers in Node are slices of
a parent buffer (the slab), this bug would overwrite the content of adjacent
buffers.
The bug is trivially demonstrated with the following test case:
var assert = require('assert');
var a = Buffer(3);
var b = Buffer('xxx');
a.write('aaaaaaaa', 'base64');
assert.equal(b.toString(), 'xxx');
This commit coincidentally also fixes a bug where Buffer._charsWritten was not
updated for zero length buffers.
2012-02-02 19:13:56 +01:00
Bert Belder
67cd05472e
uv: upgrade to 267e75d
2012-02-02 17:42:08 +01:00
Bert Belder
e5ea6ad0f0
_makeLong shouldn't turn the empty string into \\?\C:\
2012-02-02 17:14:03 +01:00
Bert Belder
a661830569
Run path.exists paths through _makeLong
2012-02-02 17:14:01 +01:00
Philip Tellis
5166758927
Make QueryString.parse run faster
...
Use decodeURIComponent when appropriate, and only fall back to
querystring.decode if it throws, or if the character is a '+'.
Fix #2248
2012-02-01 16:04:01 -08:00
Ben Noordhuis
3deceaf6e7
Revert "Process symlinked shared library as .node"
...
This reverts commit 7e0bf7d57d .
It's possible to make GYP generate an XCode project that produces a .node file,
hence this commit is no longer needed.
2012-02-01 22:49:56 +01:00
Paddy Byers
7e0bf7d57d
Process symlinked shared library as .node
2012-01-31 17:50:16 -08:00
Paddy Byers
840229a825
Tidy _resolveFilename
2012-01-31 17:50:11 -08:00
Dan VerWeire
35b3d15194
test: dgram-{broadcast,multicast}-multi-process : prevent false failures
...
* check exit code of child processes
* wait 1000 ms to exit the child process
* prefix log messages with [PARENT] or [CHILD] to help debugging
* kill all child processes before exiting
Conflicts:
test/simple/test-dgram-multicast-multi-process.js
2012-01-31 17:37:38 -08:00
Bert Belder
fa490f6497
uv: upgrade to 3eb94e9
2012-01-31 17:41:46 +01:00
Bert Belder
0ad2a9a2e0
Small test-dgram-multicast-multi-process fixes
...
Somehow windows doesn't want to bind to 224.0.0.1. Let's test with a multicast
address that has no special meaning.
2012-01-31 16:46:14 +01:00
koichik
3fd13c6426
http: fix free http-parser too early
...
when the status code is 100 (Continue).
Fixes #2636 .
2012-01-31 00:16:01 +09:00
Ben Noordhuis
b221fe9b29
timers: add v0.4 compatibility hack
...
If a timer callback throws and the user's uncaughtException handler ignores the
exception, other timers that expire on the current tick should still run.
If #2582 goes through, this hack should be removed.
Fixes #2631 .
2012-01-30 14:12:23 +01:00
isaacs
ca4b91a1d0
Correct spelling of Ben Noordhuis
2012-01-27 17:08:02 -08:00
isaacs
5756d7916a
Now working on 0.6.10
2012-01-27 16:54:40 -08:00
isaacs
f19e20d33f
2012.01.27, Version 0.6.9 (stable)
...
* dgram: Bring back missing functionality for Unix (Dan VerWeire, Roman Shtylman, Ben Noordnuis)
- Note: Windows UDP support not yet complete.
* http: Fix parser memory leak (koichik)
* zlib: Fix #2365 crashes on invalid input (Nicolas LaCasse)
* module: fix --debug-brk on symlinked scripts (Fedor Indutny)
* Documentation Restyling (Matthew Fitzsimmons)
* Update npm to 1.1.0-3 (isaacs)
* Windows: fix regression in stat() calls to C:\ (Bert Belder)
2012-01-27 16:32:19 -08:00
Ben Noordhuis
4b6164ab49
uv: upgrade to 332b72e
2012-01-28 01:30:46 +01:00
Ben Noordhuis
22e23473ea
uv: upgrade to 16124bb
2012-01-28 00:17:01 +01:00
isaacs
38651521a8
stdout ending test message correction
2012-01-27 13:42:49 -08:00
Ben Noordhuis
8a413b076e
uv: upgrade to 3f1bad2
2012-01-27 22:18:17 +01:00
isaacs
f98999cc16
Properly update npm to 1.1.0-3
...
Thanks @mscdex for spotting this.
2012-01-27 13:12:07 -08:00
isaacs
ff0f0aeb40
Fix #2507 Raise errors less agressively when destroying stdio streams
...
Also, if an error is already provided, then raise the provided
error, rather than throwing it with a less helpful 'stdout cannot
be closed' message.
This is important for properly handling EPIPEs.
2012-01-26 17:55:44 -08:00
Dan VerWeire
a0119af0e4
test: handle unhandled dgram scenarios
...
- watch for the death of child processes and fail the test if they all die
- use setTimeout to fail the test if responses are not received and processed in 5000ms
2012-01-26 16:33:56 -08:00
isaacs
5c0f039c9c
Update npm to 1.1.0-3
2012-01-26 15:59:26 -08:00
Ben Noordhuis
352febe251
uv: upgrade to 9c76d0d
2012-01-27 00:56:32 +01:00
Fedor Indutny
ccf7b41a69
module: fix --debug-brk on symlinked scripts
...
* fixes #1519
2012-01-24 19:07:38 +01:00
Ben Noordhuis
2775c0e97e
dgram: bring back setTTL()
2012-01-24 00:11:45 +01:00
Ben Noordhuis
46e86aa803
dgram: bring back setMulticastLoopback()
2012-01-24 00:11:45 +01:00
Ben Noordhuis
986e612557
uv: upgrade to b88bc43
2012-01-24 00:11:44 +01:00
Ben Noordhuis
57ddf5f50a
test: fix typos in error messages
2012-01-24 00:11:44 +01:00
Ben Noordhuis
aef62a03ee
test: join multicast group *after* binding
2012-01-24 00:11:44 +01:00
Ben Noordhuis
9037decb28
test: remove erroneous dropMembership() call
...
The socket is not part of any multicast group. Bug wasn't visible until 6999fb3 .
2012-01-24 00:11:21 +01:00
Ben Noordhuis
6999fb3d1e
dgram: make addMembership() and dropMembership() conform to v0.4 API
...
- throw on error, don't return an error code
2012-01-24 00:05:34 +01:00
Ben Noordhuis
fc6a9673c8
dgram: make setBroadcast() conform to v0.4 API
...
- don't return a value
2012-01-24 00:05:34 +01:00
Ben Noordhuis
ed111975a0
dgram: make setMulticastTTL() conform to v0.4 API
...
- throw if the ttl argument is not a number
- return the ttl argument (not particulary useful but it's what v0.4 did)
Note that the 0 < ttl < 256 check has *not* been reinstated. On Linux, -1 is a
valid argument to setsockopt(IPPROTO_IP, IP_TTL).
2012-01-24 00:05:34 +01:00
isaacs
f33a35e293
doc: trademark link must be absolute
2012-01-23 13:53:11 -08:00
isaacs
7b93eb0000
doc: Remove default border around logo for MSIE
2012-01-23 13:50:31 -08:00
isaacs
6768d2fc93
doc: Pixel-nudging
2012-01-23 13:11:33 -08:00
isaacs
5c0d11b12a
doc: Add images to makefile
2012-01-23 13:11:33 -08:00
isaacs
5d7577c71a
doctool: correct improperly nested ul/li handling
2012-01-23 13:11:33 -08:00
isaacs
4fd315192a
Add images to doc_assets
2012-01-23 13:11:32 -08:00
Matthew Fitzsimmons
831c8199f6
Nodejs.org design refresh.
2012-01-23 13:11:32 -08:00
Igor Zinkovsky
6c0c00a205
fix windows build
2012-01-23 01:35:11 -08:00
Igor Zinkovsky
f5e742b264
upgrade libuv to edbabe6f83
2012-01-23 01:34:05 -08:00
Ben Noordhuis
9edb984274
crypto: silence unused variable warning
...
`retry` is not used if SSL_PRINT_DEBUG is not defined.
2012-01-22 18:20:03 +01: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
Brandon Benvie
f9014438c7
util: use getOwnPropertyDescripter
...
Change formatProperty in util.js to use Object.getOwnPropertyDescriptor
instead of __lookup[GS]etter__.
Use the cached value from the descriptor to reduce number of property
lookups from 3 to 1.
Fallback to standard lookup if the descriptor is empty. This doesn't
ever happen with normal JS objects (this function is called only when
the key exists) but apparently does with Node's custom ENV interface.
Fixes : #2109 .
2012-01-22 17:29:40 +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
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
Ben Noordhuis
08ab306afd
uv: upgrade to 497b1ec
2012-01-21 03:14:15 +01: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
isaacs
f25ec0782e
Add missing ChangeLog item re: fs.stat improvement
...
This was a very significant improvement that should have been called out
explicitly.
I added 'review all libuv changes' to my build checklist. It won't
happen again. Sorry, @igorzi.
2012-01-20 10:17:48 -08:00
isaacs
ec1d1ee61f
Now working on 0.6.9
2012-01-19 21:15:12 -08:00
isaacs
d18cebaf8a
2012.01.19, Version 0.6.8 (stable)
...
* Update V8 to 3.6.6.19
* Numeric key hash collision fix for V8 (Erik Corry, Fedor Indutny)
* Add missing TTY key translations for F1-F5 on Windows (Brandon Benvie)
* path.extname bugfix with . and .. paths (Bert Belder)
* cluster: don't always kill the master on uncaughtException (Ben
* Noordhuis)
* Update npm to 1.1.0-2 (isaacs)
* typed arrays: set class name (Ben Noordhuis)
* zlib binding cleanup (isaacs, Bert Belder)
* dgram: use slab memory allocator (Michael Bernstein)
* fix segfault #2473
2012-01-19 18:29:43 -08:00
isaacs
4afc46d7bc
Upgrade V8 to 3.6.6.19
2012-01-19 18:29:11 -08:00
Fedor Indutny
4fdec07bd8
Land number collision fix for v8 3.6 by Erik Corry
...
Update with fixes from: http://codereview.chromium.org/9190001/
2012-01-19 21:55:48 +06:00
Artur Adib
e282c0a081
docs: document common add-on design patterns
2012-01-19 16:31:36 +01:00
Brandon Benvie
f7b612550a
Add missing TTY key translations for F1-F5 on Windows
2012-01-18 16:00:55 +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
Dan Williams
091ab850aa
docs: replace expresso with mocha in appendix 1
2012-01-17 23:30:58 +01:00
Ryan Dahl
54ad2f6cbb
Link to Marak's module rap in community page
2012-01-17 11:34:16 -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
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.
2012-01-17 18:37:02 +01:00
Fedor Indutny
1695332941
Land number collision fix for v8 3.6 by Erik Corry
...
- If V8 snapshots are enabled then the hash is only randomized at build time.
---
backport @10366, @10367 and @10402 to 3.6
Add seed to hash of numeric keyed properties.
Minor cleanups of numeric seeded hashing patch.
Split NumberDictionary into a randomly seeded and an unseeded version.
We don't want to randomize the stub cache.
Review URL: http://codereview.chromium.org/9190001/
2012-01-17 22:22:52 +06: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
isaacs
25410096b4
Update npm to 1.1.0-2
2012-01-16 15:06:16 -08: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
Guillermo Rauch
766f609838
website: Add "Api Docs" button next to "Download"
...
* Added Docs button and `button` class.
* Refactored download button style into `.button`
* Applied color overrides for download/docs buttons.
* Pointed docs link to latest available docs.
2012-01-12 14:24:40 -08:00
mrb
bd9fa2e841
dgram: use slab memory allocator
...
Change udp memory allocation scheme from uv_buf_init to slab allocation. Takes
slab allocation scheme from stream_wrap.
2012-01-12 17:34:15 +01:00
Ben Noordhuis
465e22e62f
docs: clarify filename argument of vm.* functions
2012-01-12 14:44:41 +01:00
Igor Zinkovsky
247d0da188
update libuv to 855764406e
...
fixes #2521
2012-01-11 19:35:03 -08:00
Fedor Indutny
07701e7cc8
zlib: C++ style fixes
2012-01-12 01:43:49 +06:00
Maciej Małecki
b073989e17
makefile: ignore lib/punycode.js while linting
...
`punycode` is a third party code which generates a lot of lint errors.
Upstream was contacted in order to fix it in bestiejs/punycode.js#6, but
request was denied.
Therefore, it's reasonable to exclude this file from linting process.
Ref #2456 .
2012-01-11 10:42:33 +01:00
isaacs
8cca30f31b
zlib binding cleanup
...
* Add assert to prevent parallel writes
* Embed request object instead of using new/delete
* Remove unnecessary WorkReqWrap in favor of uv_work_t
* Use container_of instead of req->data
Along with 2d8af39acc and
0ad2717fd8 , this should Fix #2504 .
2012-01-10 16:42:52 -08:00
Ryan Dahl
290bc0c067
Use .jpg instead of .bmp for .msi
...
smaller.
2012-01-10 14:26:22 -08:00
Ben Noordhuis
0ad2717fd8
Make sure that zlib contexts are not garbage collected when busy
2012-01-10 21:01:19 +01:00
Bert Belder
2d8af39acc
Fix memory leak in node_zlib
2012-01-10 21:01:18 +01:00
Ryan Dahl
e6a30bd107
Fix #2473
...
Tested in production.
See also http://code.google.com/p/v8/issues/detail?id=1889
2012-01-10 10:49:38 -08:00
Ben Noordhuis
b07acb3808
child_process: fix segfault after failed spawn
...
The process handle is uninitialized when uv_spawn() fails so don't export the
handle to JS land when that happens. Attempts to close the uninitialized handle
resulted in segmentation faults and memory corruption.
Fixes #2481 .
2012-01-09 20:54:37 +01:00
Ben Noordhuis
d5d043f2d7
handle_wrap: guard against uninitialized handle or double close
2012-01-09 20:54:37 +01:00
Ben Noordhuis
cc5cea35b0
uv: upgrade to 803f5a0
2012-01-09 15:46:30 +01:00
Ryunosuke SATO
22d7fe1206
events: fix checking max listeners with 1
...
Fixes #2490 .
2012-01-09 04:02:01 +01:00
Ben Noordhuis
9a79bb694e
Avoid unnecessary buffer to string conversion.
...
Speeds up the benchmark below by about 680% (0.5s versus 3.4s on my Core 2 Duo).
var crypto = require('crypto');
var hash = crypto.createHash('sha1');
var data = new Buffer(1024);
for (var i = 0; i < 128 * 1024; ++i) hash.update(data);
Fixes #2494 .
2012-01-09 00:50:26 +01:00
Ben Noordhuis
472a72d27f
build: honour the PYTHON environment variable
...
Overrides the path to the python binary. Defaults to `python`.
2012-01-08 21:25:04 +01:00
koichik
9ef3c6238b
docs: fix ChangeLog
2012-01-07 07:51:51 +01:00
koichik
57653added
docs: small changes.
2012-01-07 06:44:35 +01:00
isaacs
ff4096f958
Now working on v0.6.8
2012-01-06 17:36:39 -08:00
isaacs
d5a189acef
2012.01.06, Version 0.6.7 (stable)
...
* V8 hash collision fix (Breaks MIPS) (Bert Belder, Erik Corry)
* Upgrade V8 to 3.6.6.15
* Upgrade npm to 1.1.0-beta-10 (isaacs)
* many doc updates (Ben Noordhuis, Jeremy Martin, koichik, Dave Irvine,
Seong-Rak Choi, Shannen, Adam Malcontenti-Wilson, koichik)
* Fix segfault in node_http_parser.cc
* dgram, timers: fix memory leaks (Ben Noordhuis, Yoshihiro Kukuchi)
* repl: fix repl.start not passing the `ignoreUndefined` arg (Damon Oehlman)
* #1980 : Socket.pause null reference when called on a closed Stream (koichik)
* #2263 : XMLHttpRequest piped in a writable file stream hang (koichik)
* #2069 : http resource leak (koichik)
* buffer.readInt global pollution fix (Phil Sung)
* timers: fix performance regression (Ben Noordhuis)
* #2308 , #2246 : node swallows openssl error on request (koichik)
* #2114 : timers: remove _idleTimeout from item in .unenroll() (James Hartig)
* #2379 : debugger: Request backtrace w/o refs (Fedor Indutny)
* simple DTrace ustack helper (Dave Pacheco)
* crypto: rewrite HexDecode without snprintf (Roman Shtylman)
* crypto: don't ignore DH init errors (Ben Noordhuis)
2012-01-06 16:31:03 -08:00
isaacs
d84a6ba3d1
Remove snapshot from Mac binary build
2012-01-06 16:31:03 -08:00
Ryan Dahl
bca88b2dc1
support nosnapshot in vcbuild.bat
2012-01-06 16:26:16 -08:00
Ryan Dahl
be67fa7e09
Revert "crypto: add SecureContext.clearOptions() method"
...
API addition needs to go in master. Also openssl-0.9.8k doesn't have
SSL_CTX_clear_options().
This reverts commit 6f8839d2ac .
2012-01-06 12:01:58 -08:00
Ryan Dahl
8bd80f4911
fix test-sys for hash randomization
...
broken in 4a899c9274
2012-01-06 10:22:24 -08:00
Bert Belder
4a899c9274
Land hash collision fix for V8 3.6 by Erik Corry.
...
- If V8 snapshots are enabled then the hash is only randomized at build time.
- Breaks MIPS
---
Backport hash collision workaround to 3.6.
This is made up of 9956, 10351, 10338 and 10330.
This change bakes the string hash key into the snapshot, so
it is determined at build time for shapshot configs.
Review URL: http://codereview.chromium.org/9124004
2012-01-06 17:02:01 +01:00
koichik
dd9593ccc4
http: fix ServerResponse does not emit 'close'
...
Refs #2453 .
2012-01-06 15:45:21 +09:00
isaacs
78dbb4b5b1
npm@1.1.0-beta-10
2012-01-05 11:22:49 -08:00
Ben Noordhuis
760928bfad
docs: mention that python 2.6 or 2.7 is required
2012-01-05 16:44:22 +01:00
koichik
baebd30eee
http: use self insted of this
2012-01-05 17:43:00 +09:00
Ryan Dahl
3452477dcb
Update address in CLA
2012-01-04 11:20:50 -08:00
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.
2012-01-03 17:43:39 -08:00
Ryan Dahl
2cde498319
Add another test to test-http-parser-bad-ref.js demoing #2438
2012-01-03 17:15:25 -08:00
Ben Noordhuis
6f8839d2ac
crypto: add SecureContext.clearOptions() method
...
SecureContext.setOptions() is backed by SSL_CTX_set_options() which, contrary to
what the name suggests, is additive: it doesn't set options, it adds them to the
already active options.
Hence the need for SecureContext.clearOptions(), which lets you unset active
options.
2012-01-02 12:02:07 +01:00
Ben Noordhuis
884f689efe
test: add #2293 regression test
...
Creating a file event watcher with fs.watch({persistent:false}) should not block
the event loop.
2012-01-02 10:48:35 +01:00
Ben Noordhuis
41f2725639
uv: upgrade to 38fc6ad
2012-01-02 10:43:10 +01:00
Ben Noordhuis
c2fb062f60
docs: fix typo on community page
2012-01-01 23:39:29 +01:00
isaacs
8e57398b20
Fix #2034 repl message for .clear when useGlobal=true
2011-12-31 03:20:41 +01:00
Ben Noordhuis
539598b11f
test: don't create temp files in fixtures dir
2011-12-31 03:17:19 +01:00
Ben Noordhuis
8b2abed03d
bench: add /echo endpoint to http_simple
...
Copies the POST request data verbatim into the response body.
2011-12-30 02:03:10 +01:00
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.
2011-12-29 13:37:03 -08:00
Ben Noordhuis
3f5bb15f35
dgram: fix memory leak in error path
2011-12-29 14:57:53 +01:00
Damon Oehlman
744ed46970
repl: fix repl.start not passing the ignoreUndefined arg to the REPLServer constructor
2011-12-29 14:46:04 +01:00
Jeremy Martin
8c3a757ffc
docs: tiny typo in http.markdown
2011-12-29 14:35:52 +01:00
Ryan Dahl
448c5e07ca
Revert "Add HandleScope to http-parser binding"
...
This commit did not actually fix the production crashes.
This reverts commit 73cf8e82e7 .
2011-12-28 14:08:19 -08:00
Andreas Madsen
d483acc5d9
test: remove internet test from test/simple/
2011-12-28 17:22:29 +01:00
koichik
a848a3efbf
net: fix Socket.pause null reference when called on a closed Stream
...
Fixes #1980 .
2011-12-28 15:13:57 +09:00
koichik
e1c043f43a
docs: fix docs to not suggest variable leaks
...
Fixes #2106 .
2011-12-27 17:43:58 +09:00
koichik
a337ac7584
http: fix XMLHttpRequest piped in a writable file stream hangs next request
...
Fixes #2263 .
2011-12-27 17:42:37 +09:00
Ben Noordhuis
70e6f3f115
docs: document http.Server.close() semantics
2011-12-26 23:30:25 +01:00
koichik
7aa5924dc6
http: fix resource leak
...
Fixes #2069
2011-12-26 08:05:35 +01:00
Ben Noordhuis
0de6ec5f08
win: fix mismatched new[]/delete
2011-12-26 03:27:28 +01:00
Ben Noordhuis
ed5bad754c
bench: fix use of fd after close
2011-12-26 03:23:34 +01:00
Ryan Dahl
d85c85aac1
Change 'real example' in addon doc
2011-12-23 15:10:22 -08:00
Bert Belder
c6347dcfb4
Add another nextTick benchmark
...
It tests how many iterations the event loop can make per second.
2011-12-23 03:09:36 +01:00
Phil Sung
cf2513e1aa
buffer: don't pollute global namespace in buffer.readInt*
2011-12-22 23:26:43 +01:00
Ben Noordhuis
b261e37a34
test: ensure callback is executed
2011-12-22 17:28:23 +01:00
Ju-yeong Park
5976d58796
net: raise exception when the socket is closed
2011-12-22 17:25:14 +01:00
Dave Irvine
045bfe0da5
docs: document 'encoding' arg of hash.update()
2011-12-22 16:57:07 +01:00
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.
2011-12-22 14:42:25 +01:00
Seong-Rak Choi
892ba87866
docs: fix javascript error on document page
...
`highlight()` is called twice. It causes following javascript error.
> Uncaught Found <pre> element with class="sh_sourcecode",
> but no such language exists
Fixes #2393 .
2011-12-22 17:32:21 +09:00
Shannen
ef659192a1
docs: use "Level 1" HTML5 features
...
Since we're using an HTML doctype we might as well use "Level 1" HTML5 features.
See more: http://mathiasbynens.be/notes/html5-levels#level-1
Fixes #2386 .
2011-12-22 17:30:41 +09:00
Ryan Dahl
6029127cea
Upgrade V8 to 3.6.6.15
2011-12-21 12:38:07 -08:00
Ryan Dahl
73cf8e82e7
Add HandleScope to http-parser binding
...
Fixes production crashes. We were not able to reproduce in the test suite.
2011-12-21 12:01:41 -08:00
koichik
07c27e040e
tls: Fix node swallows openssl error on request
...
Fixes #2308 .
Fixes #2246 .
2011-12-21 19:48:15 +01:00
Ben Noordhuis
7a7f1062bf
tls: remove duplicate assignment
2011-12-21 15:01:07 +01:00
Bert Belder
f4e34f1b76
Remove unnecessary statement
2011-12-20 17:15:22 +00:00
James Hartig
348d8cd04a
timers: remove _idleTimeout from item in .unenroll()
...
Stops .active() from reactivating the timer.
Fixes #2114 .
2011-12-20 00:57:15 +01:00
Fedor Indutny
d87f551f36
debugger: Request backtrace w/o refs, see #1745
...
Fixes #2379
2011-12-19 13:30:43 -08:00
Ryan Dahl
926365c9f8
add links to package manager on download page
2011-12-18 22:54:15 -08:00
Ben Noordhuis
4b455bafd0
module: improve process.dlopen() error messages
...
On Windows, that is. On Unices, we don't have a good way to translate dlopen()
and dlsym() errors (yet).
2011-12-18 22:35:09 +01:00
Ben Noordhuis
f322bbe729
uv: upgrade to feb267e
2011-12-18 22:35:08 +01:00
Felix Geisendörfer
ec51bfc995
Use common.PORT to avoid conflicts
2011-12-18 16:00:55 +01:00
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); )
2011-12-18 01:50:01 +01:00
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.
2011-12-18 01:29:07 +01:00
Adam Malcontenti-Wilson
c4d2244a09
docs: Make logo a link back to homepage
...
Fixes #2332 .
2011-12-17 19:10:08 +09:00
isaacs
d75de86e6d
add 'make test-npm'
2011-12-16 18:05:17 -08:00
isaacs
90fb81ad54
npm 1.1.0-beta-7
2011-12-16 18:05:17 -08:00
Andreas Madsen
a599aeb2a8
jslint
...
Fixes #2306
2011-12-16 12:57:03 -08:00
Dave Pacheco
b9049d2f90
simple DTrace ustack helper
2011-12-16 11:38:20 -08:00
Igor Zinkovsky
d6bae2cb95
document mode argument for fs.symlink
2011-12-16 11:16:33 -08:00
Ben Noordhuis
666aa0a343
uv: upgrade to d808cf9
2011-12-16 17:57:56 +01:00
koichik
c744e925df
doc: correct http.Server.listen()
...
Fixes #2325 .
2011-12-17 00:32:29 +09:00
Roman Shtylman
4b123f9ca2
crypto: rewrite HexDecode without snprintf
...
No need to use snprintf to create a hex string. It creates
more overhead than is needed. This new version is much faster.
2011-12-16 14:35:15 +01:00
Ben Noordhuis
cc2861ee44
crypto: don't ignore DH init errors
2011-12-16 02:26:01 +01:00
Ryan Dahl
ee7313266a
use rsync instead of scp to upload website
2011-12-15 12:51:11 -08:00
isaacs
dd8018de95
now working on 0.6.7
2011-12-15 11:08:28 -08:00
isaacs
9a059ea69e
2011.12.14, Version 0.6.6 (stable)
...
* npm update to 1.1.0-beta-4 (Isaac Z. Schlueter)
* cli: fix output of --help (Ben Noordhuis)
* new website
* pause/resume semantics for stdin (Isaac Z. Schlueter)
* Travis CI integration (Maciej Małecki)
* child_process: Fix bug regarding closed stdin (Ben Noordhuis)
* Enable upgrades in MSI. (Igor Zinkovsky)
* net: Fixes memory leak (Ben Noordhuis)
* fs: handle fractional or NaN ReadStream buffer size (Ben Noordhuis)
* crypto: fix memory leaks in PBKDF2 error path (Ben Noordhuis)
2011-12-15 10:55:52 -08:00
isaacs
56f65e3c3e
npm 1.1.0-beta-4
2011-12-15 08:32:07 -08:00
Ryan Dahl
ae17e2d90a
Fix doc generation for new website
2011-12-14 18:20:11 -08:00
Ryan Dahl
de3c16afae
Upgrade V8 to 3.6.6.14
2011-12-14 16:33:11 -08:00
isaacs
2255efa171
npm 1.1.0-beta-3
2011-12-14 16:27:01 -08:00
Ryan Dahl
b04d4fff35
Add docs.nodejitsu.com to community page
2011-12-14 15:19:22 -08:00
isaacs
bb9316da28
npm 1.1.0-beta-2
2011-12-14 14:17:16 -08:00
isaacs
f490934c33
Properly support old IE DOM methods.
2011-12-14 14:17:16 -08:00
Ryan Dahl
1c3883bef2
Add changelog link to website
2011-12-14 11:11:55 -08:00
Ben Noordhuis
97900776bb
util: add internal function _deprecationWarning()
2011-12-14 13:36:21 +01:00
Ben Noordhuis
d29be0dfa2
test: binding twice to the same port should raise an error
2011-12-14 03:43:04 +01:00
Ben Noordhuis
43e91da074
.gitignore core and vgcore files
2011-12-14 03:38:41 +01:00
Ben Noordhuis
ef12fa1bf7
crypto: deduplicate encoding parsing logic
2011-12-14 03:18:17 +01:00
Ben Noordhuis
321ec97d95
crypto: deduplicate decipher logic
2011-12-14 02:32:07 +01:00
Ben Noordhuis
77f21787d4
crypto: fix memory leak when decrypting empty strings
...
Also fixes a dangling pointer delete[] in the error path.
2011-12-13 21:22:44 +01:00
Ben Noordhuis
d70ef199f1
crypto: fix memory leaks in PBKDF2 error path
2011-12-13 18:08:18 +01:00
Ben Noordhuis
b1b3dc62ff
fs: handle fractional or NaN ReadStream buffer size
...
Fixes #2320 .
2011-12-13 16:31:12 +01:00
Ben Noordhuis
e90db17392
fs: fix typo in error message
2011-12-13 16:02:14 +01:00
Ryan Dahl
6e76fc2866
make jobs the last nav
...
fixes display bug
2011-12-12 14:40:03 -08:00
Ryan Dahl
19a18add4e
better <br>s
2011-12-12 14:34:37 -08:00
Ryan Dahl
95b034e484
Reorder nav
2011-12-12 14:30:54 -08:00
isaacs
93188918ea
Website js/css tweaks
...
Remove jquery
Use HTML5 doctype
Simpler clearfix implementation
Close download dialog with <Esc> key
2011-12-12 14:28:49 -08:00
Ben Noordhuis
8295c80618
net: check status code in afterWrite
...
Fixes memory leak and spin on writing to dead fds. This was tested in
production.
2011-12-12 13:45:44 -08:00
Ryan Dahl
e698dd38c3
website fixes
2011-12-12 09:58:23 -08:00
Ryan Dahl
5bbb4cadc3
new website
2011-12-12 09:12:42 -08:00
Igor Zinkovsky
8e2c014e43
Fix MSI generation on VC Express
2011-12-09 17:20:22 -08:00
Ryan Dahl
429efdd974
Change artwork in msi
2011-12-09 17:14:39 -08:00
Igor Zinkovsky
b24cdb3d36
Enable upgrades in MSI.
...
Fixes #2228 .
2011-12-08 15:02:59 -08:00
Tim Oxley
871194d5fd
docs: document util.inspect's colors param
2011-12-08 15:47:18 +01:00
Ben Noordhuis
22c2c34952
fs: fix fs.watch() segmentation fault
...
The binding layer failed to initialize the event string if both UV_RENAME and
UV_CHANGE were set.
Fixes #2287 .
2011-12-07 23:19:57 +01:00
Ben Noordhuis
eef5d3257d
build: check for libkvm and libexecinfo on all the BSDs
2011-12-07 14:36:21 +01:00
Ryan Dahl
7547c7df1a
Deshadow, denamespace variables in node.cc
...
Prep for isolates.
2011-12-06 17:01:56 -08:00
Ben Noordhuis
fd29448be0
test: add missing copyright headers
2011-12-06 22:02:26 +01:00
Ben Noordhuis
70bc2e32af
test: new test, verify that we don't close and reuse fd 0
2011-12-06 22:02:26 +01:00
Ben Noordhuis
23bb5986d4
Remove unused variable.
...
The file descriptor arg to child_process._forkChild() is not used any more.
Remove it, avoids future confusion.
2011-12-06 22:02:26 +01:00
Ben Noordhuis
57d2857938
uv: upgrade to 0db3274
2011-12-06 22:02:26 +01:00
isaacs
580e67015c
Apply #2257 fix for Pipe streams as well as TTYs
2011-12-06 10:13:31 -08:00
Maciej Małecki
89e894b17a
doc: add Travis CI build status image
2011-12-05 16:51:03 -08:00
Maciej Małecki
9023b0b3a2
test: add .travis.yml for testing on Travis CI
...
As discussed with @isaacs, build reports will be sent to #libuv IRC
channel. E-mail notifications are turned off so that Travis doesn't
bother committers about failures in forks.
2011-12-05 16:50:55 -08:00
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
2011-12-05 16:47:11 -08:00
Ryan Dahl
6f86b9cb70
Disable test-setproctitle on darwin
2011-12-05 16:25:32 -08:00
isaacs
db273818f6
s/NPM/npm/
...
http://npmjs.org/doc/faq.html#If-npm-is-an-acronym-why-is-it-never-capitalized
2011-12-05 16:20:44 -08:00
Ben Noordhuis
36815e4179
process: fix stack overflow when recursively calling process.exit()
2011-12-05 22:43:27 +01:00
Ryan Dahl
1a89c8d061
Add analytics tracking to docs
2011-12-05 11:17:57 -08:00
Ben Noordhuis
fdf180f9ce
cli: fix output of --help
2011-12-05 08:42:11 +01:00
Ben Noordhuis
aeb124f7f3
test: create test file in temp dir
2011-12-05 06:37:18 +01:00
Ben Noordhuis
a0fdd5f3f6
uv: upgrade to 34e95d1
2011-12-04 13:22:21 +01:00
Ryan Dahl
c50b0c9237
Now working on Node v0.6.6
2011-12-04 00:59:16 -08:00
Ryan Dahl
6cc94db653
Bump version to v0.6.5
2011-12-04 00:10:23 -08:00
Ryan Dahl
60e26668b3
Remove superfluous 'new'
2011-12-04 00:09:10 -08:00
Ryan Dahl
1cf26e2bf1
Upgrade V8 to 3.6.6.11
2011-12-03 23:31:02 -08:00
Ryan Dahl
46b6954acd
Add link to license file on website
2011-12-02 17:06:05 -08:00
isaacs
ffc8110659
Workaround: A/V software prevents folder rename
2011-12-02 13:45:08 -08:00
koichik
3ebbdc6320
Update ChangeLog
2011-12-03 00:21:55 +09:00
Ben Noordhuis
a29a7c72fa
Now working on v0.6.5
2011-12-02 03:15:10 +01:00
Ben Noordhuis
9170077f13
Bump version to v0.6.4
2011-12-02 02:31:41 +01:00
Bert Belder
641f2bedf3
Fix UVException errno bug
2011-12-02 02:21:50 +01:00
Bert Belder
ded97eb892
Exclude getbuf from the windows build
...
It's not used.
2011-12-02 02:21:50 +01:00
Bert Belder
e84edd2593
Win: make process.cwd and chdir support non-ansi characters
...
Closes GH-2215
2011-12-02 02:21:50 +01:00
Bert Belder
823a443321
Rename FSError to UVException and move to node.cc
2011-12-02 02:21:50 +01:00
isaacs
1ad30a2af4
npm 1.1.0-alpha-6
2011-12-01 17:12:21 -08:00
Igor Zinkovsky
99c9d19184
binding for uv_pipe_pending_instances
2011-12-01 13:57:47 -08:00
Igor Zinkovsky
dd4b280d8c
upgrade libuv to 60630dab0f
2011-12-01 13:56:04 -08:00
Bert Belder
ae648a44c4
Upgrade libuv to 9c064fb
2011-12-01 22:50:09 +01:00
Ben Noordhuis
9b4e8e0a0d
fs: fix typo in function names
...
The build was not affected: the typos were in macros that only come into effect
when _LARGEFILE_SOURCE is not defined - which is never.
2011-12-01 22:29:39 +01:00
isaacs
0f6d3e22d9
Remove duplicate npmrc file
2011-12-01 12:23:43 -08:00
Igor Zinkovsky
3e7f4b0f82
npm msi changes
2011-12-01 21:12:17 +01:00
isaacs
d5f401147a
Re #2207 Add default npmrc for MSI install
2011-12-01 21:12:17 +01:00
isaacs
61764613d1
npm 1.1.0-alpha-5
...
Fix #2186
First part of #2207
2011-12-01 21:12:17 +01:00
Ben Noordhuis
d5feb1c280
Revert "build: compile with -D__DARWIN_64_BIT_INO_T on OS X"
...
This reverts commit f004d5aeac .
__DARWIN_64_BIT_INO_T is a no-op in most cases and might be actively harmful in
some others.
2011-12-01 21:00:46 +01:00
Ben Noordhuis
3d22dbf27b
cli: add -p switch, print result of --eval
2011-12-01 18:02:15 +01:00
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 .
2011-12-01 14:57:06 +01:00
Ben Noordhuis
3ca0517749
build: add --without-npm flag to configure script
...
Fixes #2200 .
2011-11-30 15:50:08 +01:00
Mathias Bynens
456dafc3c6
Docs template: HTML cleanup
...
Remove references to `/favicon.ico` as it’s the default in all browsers. More
info: http://mathiasbynens.be/notes/rel-shortcut-icon
`type=text/css` and `media=all` are the implied defaults for `<link
rel=stylesheet>` (and `<style>`), so omit these attributes.
Similarly, `type=text/javascript` is the default for `<script>` elements, so
omit these attributes.
2011-11-30 15:28:48 +01:00
Mathias Bynens
cf89beec6f
punycode: Update to v0.2.1
2011-11-30 15:28:48 +01:00
Nathan Rajlich
b204006105
util: ensure that the .inspect function isn't the one being executed
...
Fixes #2225 .
2011-11-30 14:14:24 +01:00
Russ Bradberry
754e23db27
fixed problem with rss memory reporting incorrect number over 4 gigs
2011-11-30 02:11:40 +01:00
Ingmar Runge
260383215b
node_crypto: use EVP_Cipher*_ex methods, not 'obsolete' versions
...
This also fixes an issue that made blowfish's ECB mode unusable.
2011-11-30 01:29:35 +01:00
Ben Noordhuis
5fea00581b
sys: print stack trace if NODE_DEBUG=sys
2011-11-29 19:22:13 +01:00
Bert Belder
6ed721afd2
Upgrade libuv to fce90652ed38ab0925131ed141972354a494933b
2011-11-29 12:45:39 +01:00
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
2011-11-29 16:52:15 +09:00
Roman Shtylman
1c62e807e1
doc: add note about NODE_MODULE module_name requirement
...
module_name needs to match the final binary name
2011-11-28 20:52:40 +01:00
Thomas Shinnick
eba1f7b1a4
child_process: fix order of args to errnoException()
2011-11-28 20:45:01 +01:00
Ben Noordhuis
a5c51b4858
docs: add rel="canonical" link to latest API docs
2011-11-28 16:47:53 +01:00
Ben Noordhuis
216019b72d
modules: fix error message for native add-ons without entry points
...
Trying to load an add-on without "init" or "modname_module" symbols would raise
an "Out of memory" exception. Let's improve that error message.
2011-11-27 22:47:05 +01:00
isaacs
e85a95dfa3
Remove npm's .gitignore, add generated docs
2011-11-27 13:09:04 -08:00
Tim Oxley
fc0a4c2781
docs: fix favicon
2011-11-27 21:52:27 +01:00
koichik
5451ba3aa8
tls: fix https with fs.openReadStream hangs
...
Fixes #2185 .
Fixes #2198 .
2011-11-27 16:31:45 +09:00
koichik
6392eba3f9
test: update an expired certificate
2011-11-27 02:05:24 +09:00
kyle@dontkry.com
34f34e4411
docs: fix typo
...
Fixes #2193 .
2011-11-27 01:45:27 +09:00
Bert Belder
3a160646df
Now working on v0.6.4
2011-11-25 12:43:44 +01:00
Bert Belder
b159c6d62e
Bump version to v0.6.3
2011-11-25 11:23:28 +01:00
Bert Belder
2335c4bb41
Strip trailing whitespace in changelog
2011-11-25 11:07:57 +01:00
Bert Belder
b480cfaf34
Make the pummel test runner not crash on windows when a directory is locked
2011-11-25 10:27:30 +01:00
Bert Belder
a056ef1f39
Upgrade libuv to 01f64f6
2011-11-25 10:16:43 +01:00
Bert Belder
5b014e0725
Fs: use strncmp instead of memcmp for comparing strings
2011-11-25 09:35:52 +01:00
Author: Igor Zinkovsky
1f16a7b6e5
Enable long paths on windows
2011-11-25 09:35:52 +01:00
Igor Zinkovsky
319580953d
update libuv to cfa4112950b1f897fda7
2011-11-24 19:45:35 -08:00
Bert Belder
232e8e19a1
Fix test-stdin-from-file
2011-11-25 03:08:27 +01:00
Bert Belder
95eb729e6f
Upgrade libuv to 3a50f8f
2011-11-25 02:13:37 +01:00
Bert Belder
236b217cd7
Fix issues with test-fs-chmod
...
- The test simultaneously chmods and fchmods the same file.
- On windows, it leaves behind a fixture in read-only mode,
which causes test-fs-fsync to fail.
2011-11-25 01:25:38 +01:00
Bert Belder
d51a0c353b
Upgrade libuv to 45b976a
2011-11-25 01:01:57 +01:00
Ben Noordhuis
55a8a3aad4
test: better fs.lchmod() availability check
...
fs.lchmod() is a BSD-ism, not a "not Windows"-ism.
2011-11-25 00:56:05 +01:00
Bert Belder
7244b9cee8
Upgrade libuv to ea63f06
2011-11-24 19:57:17 +01:00
Bert Belder
a639cf7d84
Add test for GH-2177
2011-11-24 19:56:41 +01:00
Bert Belder
83152d174c
Dgram: correctly report recvmsg errors
2011-11-24 19:11:13 +01:00
Bert Belder
86fba381fd
Windows: correctly resolve drive-relative paths
2011-11-24 02:38:34 +01:00
Bert Belder
cbcf4fe768
Don't die when arguments are passed to process.cwd()
2011-11-24 02:19:54 +01:00
Ben Noordhuis
16889e22cc
docs: fix dgram markdown
2011-11-23 12:56:05 +01:00
Ben Noordhuis
ce3ccc8d5a
build: fix circular dependency in doc target
2011-11-23 12:56:05 +01:00
Ryan Dahl
b906e85996
Fixes #2076 . Add logos to MSI
2011-11-22 19:23:41 -08:00
Ryan Dahl
055a933fa9
Add exe and msi signing to vcbuild.bat
2011-11-22 18:17:12 -08:00
Ryan Dahl
e5cf3f9751
Fixes #2083 . Support installing npm in the .msi
2011-11-22 17:59:18 -08:00
isaacs
3ab15cde25
Update npm to 1.1.0-alpha-2
2011-11-22 17:03:58 -08:00
isaacs
0ba78d5f36
Close #2166 Close the fd in lchmod
2011-11-22 14:00:48 -08:00
Felix Geisendörfer
6e1e9e2fcb
Get test-http-response-no-headers.js to pass
...
Main fix was in 3abebf which added HTTP/0.9 support to http parser.
Changed test because HTTP 1.1 mandates keep-alive when no headers are
given.
Fixes #1711
2011-11-22 22:48:50 +01:00
Ben Noordhuis
246805d386
test: add 'response body with no headers' http test
...
HTTP/0.9 - fails with a parse error
HTTP/1.0 - works
HTTP/1.1 - fails with an empty response body
See #1711 .
2011-11-22 22:47:20 +01:00
Ryan Dahl
3abebfea98
Upgrade http-parser to joyent/http-parser@2498961
2011-11-22 12:56:01 -08:00
Ryan Dahl
38c49fbc4a
Fix broken commit 2cd5adc
2011-11-22 12:44:01 -08:00
Ryan Dahl
2cd5adc28b
Install npm with 'make install'
2011-11-22 12:38:48 -08:00
Ryan Dahl
6035651fad
Fixes #2160 . Fix tty.getWindowSize docs
2011-11-22 10:24:41 -08:00
Ben Noordhuis
7defbd27ef
test: add DSA sign/verify crypto tests
2011-11-22 16:01:07 +01:00
Ryan Dahl
b488be127a
Include NPM, update .pkg to install it.
...
.msi update coming soon.
2011-11-21 10:50:52 -08:00
Ben Noordhuis
05de01d707
tls: expose more openssl SSL context options
2011-11-21 13:59:43 +01:00
Roman Shtylman
4d05f56dcd
tls: expose ssl bug workaround constants
...
The internet is filled with servers which have various bugs and other
ssl handshake issues. These constants can be used with the Agent
secureOptions option to get around such server limitations when performing
https requests
2011-11-21 13:59:43 +01:00
Ryan Dahl
9d1bdbcf05
Fixes #2084 . Makeify tools/osx-dist.sh
2011-11-20 19:22:30 -08:00
Ben Noordhuis
61e796decc
Now working on v0.6.3
2011-11-19 00:22:13 +01:00
Ben Noordhuis
a4402f0b2e
Bump version to v0.6.2
2011-11-18 23:43:03 +01:00
isaacs
975f1930b1
zlib: Fix invalidly failing test
2011-11-18 14:38:44 -08:00
Ben Noordhuis
f004d5aeac
build: compile with -D__DARWIN_64_BIT_INO_T on OS X
...
Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.
Fixes #2061 . Solution proposed by Paddy Byers.
2011-11-18 21:17:13 +01:00
Ben Noordhuis
3f92031aeb
uv: upgrade to 01fbe7b
2011-11-18 21:17:09 +01:00
Ben Noordhuis
8bdf6bae30
docs: document dgram error event
2011-11-18 14:18:42 +01:00
Ben Noordhuis
59a9a9b5b0
buffer: add .read*() and .write*() methods to SlowBuffer prototype
...
Fixes #2138 .
2011-11-18 11:13:37 +01:00
Trevor Burnham
06d71ad457
docs: document the persistent option for fs.watch and fs.watchFile
2011-11-18 00:00:01 +01:00
Ben Noordhuis
9d3faf4f9a
crypto: add support for RSA public key signing/verification
2011-11-17 23:01:39 +01:00
Ben Noordhuis
3ac5f1106d
crypto: make verify() return true or false, not 1 or 0
...
It's what the documentation says it should return.
2011-11-17 23:01:39 +01:00
E. Azer Koçulu
1cb6fe47fc
util: remove the line requiring events
2011-11-17 23:01:39 +01:00
Ryan Dahl
b0030af135
Fixes #2140 . Fix illumos build.
2011-11-17 11:39:34 -08:00
Ben Noordhuis
4f8a0cd2f9
v8: add platform-solaris.cc to gyp build
...
Re-applies 77e4abbc3e , lost in a V8 upgrade.
2011-11-17 19:39:39 +01:00
Ben Noordhuis
2c52ccea80
v8: compile with __C99FEATURES__=1 on sunos
...
Exposes INFINITY, isinf(), isfinite(), etc.
Re-applies d104e5b91c , lost in a V8 upgrade.
2011-11-17 19:39:39 +01:00
Artur Adib
960ccdc72c
docs: clarify addon docs
2011-11-17 13:15:49 +01:00
Bert Belder
3e696d189c
Windows: make Buffer and ObjectWrap available to compiled extensions
...
Closes GH-2036
2011-11-17 00:54:42 +01:00
Bert Belder
9c70b09e0a
Fix strange vcbuild "label not found" error
2011-11-17 00:10:14 +01:00
Ben Noordhuis
5e3b0095de
tls: make cipher list configurable
...
options.ciphers existed but didn't work, the cipher list was effectively
hard-coded to RC4-SHA:AES128-SHA:AES256-SHA.
Fixes #2066 .
2011-11-17 00:01:41 +01:00
Ryan Dahl
44314ccf48
Upgrade libuv to 2007eb8
2011-11-16 13:06:10 -08:00
Łukasz Walukiewicz
3b852d7fab
buffer: fix minimum values for writeInt*() functions
2011-11-16 21:30:26 +01:00
Ryan Dahl
17a82e72f4
Upgrade V8 to 3.6.6.8
2011-11-14 17:17:23 -08:00
Ryan Dahl
4b0241d589
Remove str.format to support python2.5.
...
Fixes #2077
Fixes #2108
Thanks to David Keegan for debugging and the patch.
2011-11-14 17:09:44 -08:00
Trent Mick
2cd51ef5d4
"Trailer" header should mention "Content-MD5" trailer name in this example.
...
Fixes #2107
2011-11-14 16:54:24 -08:00
seebees
3222a04d5e
test for REPL .save and .load and documentation updates
2011-11-13 19:54:35 +01:00
Mathias Bynens
897208e06d
punycode: Update to v0.1.1.
2011-11-13 15:38:27 +01:00
seebees
3421f43351
.load, .save and local scope tab completion
...
Fixes #2063 .
REPLServer.prototype.resetContext:
Reset the line cache
REPLServer.prototype.memory (don't know if I like that name, called from finish)
pushes what cmd's have been executed against it into this.lines
pushes the "tab depth" for bufferedCommands, in this.lines.level
REPLServer.prototype.displayPrompt:
Uses "tab depth" from this.lines.level to adjust the prompt to visually
denote this depth e.g.
> asdf = function () {
… var inner = {
….. one:1
REPLServer.prototype.complete:
Now notices if there is a bufferedCommand and attempts determine locally
scoped variables by removing any functions from this.lines and evaling these
lines in a nested REPL e.g.
> asdf = function () {
… var inner = { one: 1};
… inn\t
will complete to 'inner' and inner.o\t will complete to 'inner.one'
If the nested REPL still has a bufferedCommand it will falls back to the
default.
ArrayStream is a helper class for the nested REPL to get commands pushed to it.
new REPLServer('', new ArrayStream());
Finally added two new REPL commands .save and .load, each takes 1 parameter,
a file and attempts to save or load the file to or from the REPL
respectively.
2011-11-12 11:34:55 -08:00
seebees
b00f5e2e14
Tab Compete test for node REPL
...
Currently the REPL only tab completes for globally scoped variables
2011-11-12 11:34:55 -08:00
Ben Noordhuis
098fef6740
timers: remember extra setTimeout() arguments when timeout==0
...
Fixes #2079 .
2011-11-12 13:31:28 +01:00
Ryan Dahl
8082858ee7
Now working on v0.6.2
2011-11-11 15:35:10 -08:00
Ryan Dahl
170f2addb2
Bump version to v0.6.1
2011-11-11 14:56:27 -08:00
Ryan Dahl
5bc1809b43
Add 'make dist-upload'
2011-11-11 14:31:15 -08:00
Ryan Dahl
d214576d2b
Be consistent with v before version in packages
2011-11-11 14:02:42 -08:00
Igor Zinkovsky
2095eea3da
msi changes
...
- remove license from MSI
- adjust path on install
- add message to the end
2011-11-11 12:50:04 -08:00
Ryan Dahl
2af6431619
Add upload command to vcbuild.bat
2011-11-11 12:38:55 -08:00
Ryan Dahl
895fa3a56b
Simplify and move getnodeversion.py
2011-11-11 12:09:48 -08:00
Shigeki Ohtsu
e0f10ecfd9
debugger: correctly handle source with multi-byte characters
2011-11-11 20:29:50 +01:00
Ryan Dahl
4e2343c6b5
Fixes #2073 . Cluster should be silent.
2011-11-11 11:24:59 -08:00
Ben Noordhuis
10d4bd8266
test: add more punycode tests
2011-11-11 17:02:43 +01:00
Ben Noordhuis
326b2cb34e
punycode: replace with Mathias Bynens's implementation
...
The currently bundled library doesn't pass all the test cases from RFC 3492.
Mathias's library does.
Home: https://github.com/bestiejs/punycode.js
2011-11-11 17:02:43 +01:00
Yoji SHIDARA
426298c8c1
docs: dgram client should be closed in the callback
2011-11-11 10:39:32 +01:00
Ryan Dahl
74f39041d4
dont use blue for numbers in util.inspect
2011-11-10 23:35:35 -08:00
Ryan Dahl
dc39ab3bbf
Improve OSX installer
2011-11-10 18:41:44 -08:00
Igor Zinkovsky
ec90ede1cf
fix msi builder
2011-11-10 18:40:49 -08:00
Igor Zinkovsky
13324bf844
throw from stdout.end and stderr.end
2011-11-10 14:51:16 -08:00
Igor Zinkovsky
09329e7833
Add node.rc with a version resource
...
Fixes #2059
2011-11-10 13:22:13 -08:00
Ben Noordhuis
78ca555845
bench: optimize io.c benchmark
...
Use static buffers. Most clock ticks were spent in malloc() and free() instead
of read() and write().
Fix measurements. Really fast runs would result in bogus results like:
Wrote 1048576000 bytes in -0.731630s using 8192 byte buffers: -1366.811093mB/s
2011-11-10 21:13:37 +01:00
Ben Noordhuis
0757c73a20
uv: upgrade to 224584c
2011-11-10 20:10:54 +01:00
Ben Noordhuis
e34a2c170c
uv: upgrade to 26806e2
2011-11-10 16:40:56 +00:00
Ben Noordhuis
8dd4fcbe8f
fs: don't close uninitialized fs.watch handle
...
Makes uv_close() assert because the uv_fs_event_t struct contains garbage.
2011-11-10 13:17:51 +01:00
Igor Zinkovsky
f84d86b660
make stdout stream non-destroyable
2011-11-09 15:04:44 -08:00
Igor Zinkovsky
5d89540b77
make stderr stream non-destroyable
2011-11-09 13:53:19 -08:00
Ben Noordhuis
4fc0fdc6ee
bench: start (NUM_CPUS-1) workers
...
The master is a worker too so fork off one less worker.
2011-11-09 17:34:53 +01:00
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
2011-11-09 16:34:09 +01:00
Ryan Dahl
0fa3cf94a3
Remove 'report this bug' message from cluster master
2011-11-08 17:07:49 -08:00
Ryan Dahl
da9bf0ee80
Fixes #2047 . Fill workers array immediately after fork
2011-11-08 17:03:29 -08:00
Ryan Dahl
3ae644d48c
Upgrade libuv to 196e145
2011-11-08 16:59:40 -08:00
Ryan Dahl
2a462abf5f
process.kill doesn't create error obj correctly
2011-11-08 16:58:32 -08:00
Ryan Dahl
05727f6e3e
Upgrade libuv to 2b7774a
2011-11-08 16:52:45 -08:00
Ryan Dahl
2d13cdfd2a
Fixes #2052 . Readline get win cols correctly
2011-11-08 13:37:08 -08:00
Ben Noordhuis
efb833f342
crypto: use the right mutex
2011-11-08 20:56:45 +01:00
Ryan Dahl
409915e955
Upgrade libuv to f1859eb
...
Fixes #2040
Fixes 0e8a55d2a2 (commitcomment-69710)
2011-11-08 11:52:18 -08:00
Ben Noordhuis
97cada0e6a
crypto: make module thread-safe
2011-11-08 20:04:23 +01:00
Ryan Dahl
0ba8f05a42
Upgrade V8 to 3.6.6.7
2011-11-08 10:00:12 -08:00
Scott Anderson
0d19d82498
Cluster documentation added.
2011-11-09 00:02:18 +09:00
Ben Noordhuis
6f96e78dea
test: fs.realpath() should not call its callback twice
...
Test case for #2045 .
2011-11-08 13:03:29 +01:00
Benjamin Pasero
b1bb17fd2b
fs: fix fs.realpath on windows to return on error
2011-11-08 13:02:04 +01:00
Ben Noordhuis
04958e88a4
fs: make mkdir() call callback if mode is omitted
...
Fixes #2043 .
2011-11-08 12:48:09 +01:00
Ben Noordhuis
105d1787dc
cluster: fix call to undefined function
2011-11-08 08:29:25 +01:00
Eric Lovett
69d3bf1068
docs: minor grammar fix in cluster page
2011-11-08 00:43:59 +01:00
Ben Noordhuis
d7bcf21340
build: fix race in parallel build
...
Run `make clean` first, *then* `make all`
2011-11-08 00:25:54 +01:00
Ryan Dahl
6a83df04b6
Update multi-core text on index.html
2011-11-07 10:43:48 -08:00
Ryan Dahl
a9366818a1
Remove v0.4 links from index.html
2011-11-07 10:41:01 -08:00
Ben Noordhuis
edcfea5d02
build: fix man page install path on the BSDs
...
Fixes #2026 .
2011-11-07 06:46:09 +01:00
koichik
1001cf412c
bench: update static_http_server benchmark to new API
...
Fixes #2016 .
2011-11-06 01:25:07 +09:00
Fedor Indutny
da82daf54c
test: debugger-repl should wait for 'drain' event
2011-11-05 15:24:28 +01:00
Eric Lovett
febe5c44c0
docs: use markdown for link, not html
2011-11-05 13:00:20 +01:00
Ben Noordhuis
099c717baf
docs: fix copy/paste error, 0.6.0 is a stable release
2011-11-05 10:44:27 +01:00
Eric Lovett
8f2b03242d
docs: minor typo fix in child process docs
2011-11-05 10:41:39 +01:00
Ryan Dahl
9e00b7d3d0
Now working on v0.6.1
2011-11-05 01:55:34 -07:00
Ryan Dahl
865b077819
Bump version to v0.6.0
2011-11-04 23:48:57 -07:00
koichik
96fe50400d
docs: fix typo
2011-11-05 12:35:38 +09:00
Ben Noordhuis
10edbbb927
uv: upgrade to c468e2a
2011-11-05 03:13:55 +01:00
Igor Zinkovsky
7335a4234a
fix test-module-loading on windows
2011-11-04 18:05:53 -07:00
Igor Zinkovsky
1a9286c6e9
update fs_event_wrap.cc to work with new uv_fs_event_init api
2011-11-04 18:04:52 -07:00
Igor Zinkovsky
6545a6dc5d
make updates to work with latest libuv api changes
2011-11-04 18:01:03 -07:00
Bert Belder
b54da8a10f
Upgrade libuv to 1997e10b50
2011-11-05 01:50:05 +01:00
Ryan Dahl
5c3954aa6f
docs: make std*Stream spawn opts explicitly internal
...
Fixes #1884 .
2011-11-04 15:56:28 -07:00
Jacob H.C. Kragh
c1472ac105
docs: fix some minor typos in the fs documentation
...
* fchmodSync: replace 'path' with 'fd'
* lchmod: replace 'fd' with 'path'
* utimes, futimes, fsync: mark 'callback' as optional
2011-11-04 23:53:01 +01:00
Ben Noordhuis
89014c9d40
bench: add http_simple cluster edition benchmark
2011-11-04 23:53:01 +01:00
Ryan Dahl
1e3e6b7c15
cluster: add example for message passing
2011-11-04 15:34:18 -07:00
Igor Zinkovsky
5496e67f83
upgrade libuv to 82cf0b38c0
...
fixes #2004
2011-11-04 15:19:46 -07:00
Ryan Dahl
d42006c80a
cluster: Remove eachWorker, workerCount
...
unnecessary
2011-11-04 15:14:38 -07:00
Ryan Dahl
86528489ec
new cluster api
2011-11-04 15:12:11 -07:00
Jacob H.C. Kragh
44a5452a4f
docs: fix typo in the documented fchown signature
2011-11-04 20:10:21 +01:00
Matt Robenolt
5213c39038
Close #1930 Convenience methods for zlib
...
This is a combination of 20 commits. Their commit messages are preserved
below for the benefit of future generations.
* Adding a shortcut to easily compress/decompress a string of text.
* Making the API consistent. unzip should accept a Buffer for input as well.
* Adding docs.
* Oops, typo.
* Propagate error through the callback.
* Adding zlib from string tests.
* Typo in test.
* Remove 'end' listeners, and join buffers properly instead of joining them
as a string.
* Oops, needs to be rendered to a string.
* Updated test to include multi-byte characters.
* unzip should return a raw Buffer. Updated docs to reflect.
* And finally updating test.
* EventEmitter.destroy() is a bit more customary
* Revert "EventEmitter.destroy() is a bit more customary"
* Renaming internal methods to "buffer" instead of string.
* Remove the 'error' listeners as well.
* @isaacs: spacing/style, and compress duplicate functions into one
* @isaacs: Update docs
* @isaacs: doc style fix
2011-11-04 10:32:57 -07:00
Fedor Indutny
8ef2c13d6c
fix debugger-repl test
2011-11-04 18:00:18 +01:00
Fedor Indutny
b5d32d4a9e
debugger: do not request continue on connection
...
* Updated test
* Use `node debug file`, not `node debug -e "..."` in test
2011-11-04 17:50:46 +01:00
Bert Belder
829735e738
Implement process._debugProcess
2011-11-04 17:50:28 +01:00
Bert Belder
35f4182cee
Make error reporting from node::DLOpen more consistent
2011-11-04 16:24:35 +01:00
Bert Belder
6ee73a2fee
Windows: ErrnoException shouldn't mix up crt and win32 errors
2011-11-04 16:24:35 +01:00
Bert Belder
189dd8f803
Fix line endings and trailing whitespace
2011-11-04 16:24:34 +01:00
Jordan Sissel
358f0ce96b
url: add '.' '+' and '-' in url protocol
...
- Based on BNF from RFC 1738 section 5.
- Added tests to cover svn+ssh and some other examples
2011-11-04 13:36:06 +01:00
Ben Noordhuis
5fd012e67a
fs: don't use octal values, not allowed in strict mode
2011-11-04 13:10:07 +01:00
Ben Noordhuis
8974ba31a3
test: fix simple/net-pipe-connect-errors
...
When trying to connect to something that is not a UNIX socket, Linux returns
ECONNREFUSED, not ENOTSOCK.
We cannot atomically determine if the other end is a) a stale socket, or b) not
a socket at all, so let's accept both error codes.
2011-11-04 05:30:00 +01:00
Ryan Dahl
cf78d04ae2
Upgrade libuv to 9c7ed0d
...
Fixes test-net-pipe-connect-errors.js on UNIX.
See #2001 .
2011-11-03 16:33:54 -07:00
Fedor Indutny
b904a078d8
report debugger's test errors
2011-11-03 14:11:14 -07:00
Ryan Dahl
a936768890
stdout and stderr are blocking when referring to regular files
...
Fixes message tests.
2011-11-03 13:27:33 -07:00
Ryan Dahl
4a8088a603
Socket.write should reset timeout timer.
...
Fixes #2002 .
2011-11-03 12:37:04 -07:00
Ben Noordhuis
9c11e8a1ca
net: implement Server.prototype.address() for pipes
2011-11-03 19:16:10 +01:00
Maciej Małecki
481c17504d
test error codes related to pipes
...
This tests passes on node v0.4, but fails on node v0.5. v0.5 seems to
generally lack error codes for various error events related to UNIX
pipes.
Fixes #2001
2011-11-03 10:54:00 -07:00
Ryan Dahl
2dd68af334
Remove -Werror from V8 build
2011-11-03 10:46:16 -07:00
Ryan Dahl
0e9c1ca673
Downgrade V8 to 3.6.4
2011-11-03 10:34:22 -07:00
koichik
a6dbe0ff23
docs: make fs.mkdir()'s mode argument an option.
2011-11-03 20:04:22 +09:00
Ben Noordhuis
11d68eb3fc
fs: make mkdir() default to 0777 permissions
...
Fixes #1999 .
2011-11-03 09:37:23 +01:00
Ben Noordhuis
52eaac4382
uv: upgrade to 0fb3769
2011-11-03 03:25:11 +01:00
Ben Noordhuis
818f0cba55
v8: fix freebsd build, implement VirtualMemory class
2011-11-03 03:23:59 +01:00
Igor Zinkovsky
434ccd2e20
fix process.uptime() on windows
2011-11-02 18:27:43 -07:00
Igor Zinkovsky
24a69d22a0
process.kill to use uv_kill
2011-11-02 17:34:17 -07:00
Ben Noordhuis
359a65a6db
http: emit Error object after .abort()
...
It was emitting the net.Socket object due to misuse of the arguments object.
Fixes #1399 .
2011-11-03 01:30:03 +01:00
Igor Zinkovsky
143aeb9ea7
upgrade libuv to e1bee05ecdbffbe9de37830530ad2ae2f1fb41c8
2011-11-02 16:51:26 -07:00
Ryan Dahl
850609ea2d
Remove separation of libuv tests
2011-11-02 16:38:59 -07:00
Ben Noordhuis
1ba834bd3f
docs: http: link to relevant net.Socket methods
2011-11-03 00:22:02 +01:00
Fedor Indutny
9ad27f7853
ignore undefined messages in the debugger repl
...
fixes #1995
2011-11-02 15:55:36 -07:00
Ben Noordhuis
c8646e0c41
test: add ChildProcess.prototype.killed test case
2011-11-02 18:37:34 +01:00
Maciej Małecki
6bd0bcd5af
child_process: in a new ChildProcess set killed to false
...
This behavior is consistent with what v0.4 does.
2011-11-02 18:17:51 +01:00
Ryan Dahl
60818b957c
Add missing copyright headers
2011-11-02 10:00:57 -07:00
Ben Noordhuis
672b453a76
docs: http: fix docs for the 'close' event
2011-11-02 17:28:46 +01:00
Ben Noordhuis
edea4122b1
Revert "Upgrade V8 to 3.7.1"
...
This reverts commit 92f5a5d3ca .
V8 3.7.1 in debug mode on ia32 has a curious race-like bug where an fs.Stats
object is not fully formed until some time after it's created. This is easy
to demonstrate by running `make test-debug`.
V8 3.7.0 does not exhibit this behaviour so back we go.
Fixes #1981 .
2011-11-02 16:58:35 +01:00
Igor Zinkovsky
cc92234068
fix pummel/test-net-throttle on windows
2011-11-01 16:44:08 -07:00
Maciej Małecki
fc61134b1a
doc: fix links
...
Changes:
* 'http://github.com ' => 'https://github.com '
* 'https://github.com/ry/node ' => 'https://github.com/joyent/node '
* 'https://github.com/ry/http-parser ' =>
'https://github.com/joyent/http-parser '
* old issue links
* wiki link
2011-11-01 22:26:52 +01:00
Igor Zinkovsky
3060266ff1
windows: enable pending accepts knob
2011-11-01 14:14:52 -07:00
Ben Noordhuis
21b64dc7c9
uv: upgrade to 90b0b7d
2011-11-01 22:11:58 +01:00
Ben Noordhuis
37bb37d151
os: rename getNetworkInterfaces() to networkInterfaces()
2011-11-01 18:10:06 +01:00
Maciej Małecki
b4afe605f4
node: remove process.compile
...
It was deprecated before v0.4.
2011-11-01 17:45:21 +01:00
Ben Noordhuis
362b5a6c40
process: fix process.nextTick() error case regression
...
Patch and test by Koichi Kobayashi.
2011-11-01 16:30:43 +01:00
koichik
f5a01d1764
test: fix test/message/undefined_reference_in_new_context.js
...
after 4d4900f , stack trace was changed.
2011-11-01 19:30:19 +09:00
isaacs
06190928c0
doc: Correct blatantly wrong futimes documentation
2011-10-31 16:31:59 -07:00
Ben Noordhuis
4d4900fc65
process: optimize process.nextTick()
...
33% performance boost on large nextTick queues.
2011-10-31 22:31:14 +01:00
Ben Noordhuis
5fee1ff7bc
bench: add process.nextTick() benchmark
2011-10-31 22:02:46 +01:00
koichik
f53d092a2a
tls, https: add passphrase option
...
Fixes #1925 .
2011-10-31 17:36:43 +09:00
Ben Noordhuis
b6c582a3a3
docs: tty: remove tty.open() documentation
2011-10-30 21:22:46 +01:00
Ben Noordhuis
a1fa3efd2b
core: fix off-by-one error in node::DLOpen()
...
Fixes loading of modules that use the NODE_MODULE macro on POSIX platforms.
2011-10-30 17:35:08 +01:00
Ben Noordhuis
26874e2e07
docs: addons: fix example
2011-10-30 17:15:10 +01:00
koichik
8a729270c1
fix for --harmony_block_scoping
...
Fixes #1969 .
2011-10-31 00:49:20 +09:00
koichik
52c2988f16
docs: fix option's name of cluster.startMaster()
2011-10-30 11:40:31 +09:00
Ben Noordhuis
a7803c58e4
uv: upgrade to 70381ce
2011-10-30 02:56:51 +01:00
Siddharth Mahendraker
12cf730b69
events: separate maxListeners and _events
...
Fixes #1479 .
Fixes #1923 .
2011-10-30 02:14:30 +01:00
Igor Zinkovsky
6d7aa65399
fix pummel/test-child-process-spawn-loop.js on windows
2011-10-28 18:32:27 -07:00
Bert Belder
60efa608d6
Upgrade libuv to e4d6509211
2011-10-29 01:33:01 +02:00
Bert Belder
a56a95b652
Export some functions from node.h
2011-10-29 01:06:53 +02:00
Bert Belder
4a1efb2b9c
Support native extension loading on Windows
2011-10-29 01:06:51 +02:00
Bert Belder
dd93c53c4e
Make node::DLOpen use uv_dlopen
2011-10-29 01:06:49 +02:00
Bert Belder
2f22024806
Upgrade libuv to 90e15f1110
2011-10-29 01:06:47 +02:00
Bert Belder
c0c4bd4efa
Add common.gypi to gyp output
2011-10-29 01:06:45 +02:00
Bert Belder
889620dcd2
Wrap long lines, strip trailing whitespace
2011-10-29 01:06:44 +02:00
Bert Belder
1e2d777601
Remove outdated comment
2011-10-29 01:06:42 +02:00
Bert Belder
6a6a70e80e
Fix v8 build on Windows
...
There's probably a better way to fix this
2011-10-29 01:06:40 +02:00
Igor Zinkovsky
56315494dd
fix simple/test-child-process-double-pipe on windows
2011-10-28 15:57:39 -07:00
Igor Zinkovsky
f35a396c54
Revert "remove node_io_watcher"
...
This reverts commit cc2ac1ccc7 .
2011-10-28 15:35:38 -07:00
Ben Noordhuis
ccd8b55b01
linux: unbreak build if HAVE_MONOTONIC_CLOCK=0
2011-10-28 23:47:08 +02:00
Ben Noordhuis
004e6fbe1f
docs: addons: fix NODE_SET_METHOD example
2011-10-28 22:36:55 +02:00
Zachary Scott
e35ce7baa1
docs: tty: stdin must be initialized before calling setRawMode
2011-10-28 22:32:04 +02:00
Ben Noordhuis
1d94d4fa70
docs: fix home page link to API docs
2011-10-28 18:22:39 +02:00
Ben Noordhuis
3dee0e4cd8
zlib: compile without -ansi
...
Source contains C++ / C99 comments, gcc in strict mode doesn't like that.
2011-10-28 17:31:40 +02:00
Igor Zinkovsky
cc2ac1ccc7
remove node_io_watcher
2011-10-27 16:47:37 -07:00
koichik
173f91c791
docs: add zlib.createXxx() functions
2011-10-27 21:21:54 +09:00
Ben Noordhuis
b9529545e1
v8: implement VirtualMemory class on SunOS
...
Unbreaks build on SunOS. Re-applies 4908e5bf7a .
2011-10-27 11:22:07 +00:00
Ryan Dahl
92f5a5d3ca
Upgrade V8 to 3.7.1
2011-10-27 00:48:23 -07:00
Tj Holowaychuk
528c28587f
cluster: Add some docs, improve cluster.isWorker()
...
Fixes #1949 .
2011-10-26 16:42:00 -07:00
Ryan Dahl
c5d54010bc
node cluster is now a module instead of CLI interface
...
This is to make room for master process plugins instead of adding CLI
options as proposed in #1879 .
2011-10-26 13:50:53 -07:00
Nathan Rajlich
4fb2ac5be1
Add test cases for #1944 .
2011-10-27 04:58:51 +09:00
Nathan Rajlich
ebefe77bc0
More bulletproof util.inspect() function.
...
Use the *real* versions of the Date and RegExp functions, from the
prototype. This defends against code like:
var d = new Date()
d.toUTCString = null
util.inspect(d)
// TypeError: toUTCString is not a function
Fixes #1944 .
2011-10-27 04:58:34 +09:00
Nathan Rajlich
d4379fcee3
Add test case for #1941 .
...
Add test for the false-positives from #1942 .
Fix test-sys.js.
2011-10-27 04:33:24 +09:00
Nathan Rajlich
2dbb470ea1
Don't use instanceof in lib/util.js "is" checks.
...
While using `instanceof`, these functions could easily be faked with something
like: Object.create(Date.prototype)
So let's just not use it at all. A little slower, but these functions are only
used in the REPL / for debugging so it's OK.
Fixes #1941 .
Fixes #1942 .
2011-10-27 04:33:24 +09:00
Ryan Dahl
194511ff1a
Return IPv4 addresses before IPv6 addresses from getaddrinfo
2011-10-26 12:28:25 -07:00
Nathan Rajlich
3524f41a27
Add docs for the type checking functions in util.js.
2011-10-27 03:38:29 +09:00
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
Ryan Dahl
be2320d408
Add binding to uv_getaddrinfo
2011-10-20 15:06:53 -07:00
Nathan Rajlich
95d530f2b4
repl: print out undefined
...
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-20 08:41:33 -07:00
Fedor Indutny
b43eb9678b
debugger: fix backtrace err handling
2011-10-20 08:37:51 -07:00
Ben Noordhuis
9bb3a683fe
docs: improve buffer.fill() documentation
...
Fixes #1912 .
2011-10-19 18:20:55 -07:00
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
2011-10-19 16:53:07 -07:00
Ryan Dahl
88af0c8635
Remove os.openOSHandle
...
Unused.
2011-10-19 16:28:58 -07:00
Ryan Dahl
67b235735e
Remove support for cygwin
2011-10-19 16:23:26 -07:00
Ryan Dahl
9d27faa2c4
Revert "Fix #1801 vm: Use 'sandbox' as global_prototype"
...
Accidentally committed. Revert until review.
This reverts commit 200df8641b .
2011-10-19 11:01:08 -07:00
Thomas Parslow
b0f78afe58
http: Added support for HTTP PATCH verb
...
Fixes #1907 .
2011-10-19 19:59:16 +09:00
koichik
6a72e52520
buffer: use NO_NULL_TERMINATION flag
...
Refs #394 .
Fixes #1902 .
2011-10-19 15:03:00 +09:00
isaacs
b70fed48a7
Don't use a separate context for the repl.
...
Fix #1484
Fix #1834
Fix #1482
Fix #771
It's been a while now, and we've seen how this separate context thing
works. It constantly confuses people, and no one actually uses '.clear'
anyway, so the benefit of that feature does not justify the constant
WTFery.
This makes repl.context actually be a getter that returns the global
object, and prints a deprecation warning. The '.clear' command is gone,
and will report that it's an invalid repl keyword. Tests updated to
allow the require, module, and exports globals, which are still
available in the repl just like they were before, by making them global.
2011-10-18 18:18:32 -07:00
elliottcable
200df8641b
Fix #1801 vm: Use 'sandbox' as global_prototype
...
Squashed commit:
(- re tests) Cleaning up the `Script` test suite.
For whatever reason, there were several duplicate test files related to `Script`
and the `'vm'` module. I removed these, and fixed a few other small issues.
(More fixes coming in subsequent commits.)
Squashes: 19e86045a0..1e3dcff4eb
(api fix:1801 new:1801) `'vm'` module uses sandbox as prototype
As described in GH-1801, the `'vm'` module was handling the `sandbox` object
provided by the API consumer in a particularly terrible and fragile fashion: it
was simply shallow-copying any enumerable properties from the sandbox onto the
global context before executing the code, and then eventually copying any values
on the global context back into the sandbox object *afterwards*.
This commit removes all of that implementation, and utilizes the passed sandbox
object as the *prototype of the context* instead. A bit of a hack, but a very
effective one.
This no longer allows for new variables created in the global context to be
placed into your sandbox after execution has completed, but that’s for the best
anyway, as it’s not very in line with the concept of a “box of passed-in
context.” I’m planning to further implement an interface for API consumers to
acquire the *actual global* from within the VM soon, thus allowing for
separation-of-concerns: providing data *to* the VM via the sandbox-prototype,
and exploring the internal environment of the VM itself.
// GitHub cruft: closes #1801
Squashes: 43b8e3c..209ed86
2011-10-18 17:56:35 -07:00
Ryan Dahl
d9bc8455cb
Fix test-c-ares.js on Windows by disabling PTR test
2011-10-18 16:12:07 -07:00
Ryan Dahl
6cc0c9e6a9
Remove superfluous nextTick during server binding
...
This breaks fork().send({}, server._handle) after server.listen() because
server._handle is not set.
2011-10-18 15:12:18 -07:00
Ryan Dahl
dbfc8198a6
Upgrade GYP to r1078
2011-10-18 14:39:39 -07:00
Ryan Dahl
5783a52a9c
Remove process.memoryUsage().vsize
...
Not meaningful cross platform; unused.
2011-10-18 14:31:37 -07:00
Ryan Dahl
d77ce4b998
Fixes #1860 . Remove process.writeError
...
Breaks a few tests in "make test-message"
2011-10-18 13:12:50 -07:00
koichik
d2698d1822
http: add test for #1885
2011-10-17 16:14:35 +09:00
Yoshihiro Kikuchi
f90ba61478
http: tiny fix in http.js
...
Fixes #1885 .
2011-10-17 01:14:45 +09:00
koichik
cdec7e3ae5
docs: improvement tls example
2011-10-16 16:50:16 +09:00
Igor Zinkovsky
5ca3dcd127
test: fix test-child-process-stdin and test-child-process-kill on windows
2011-10-15 22:55:24 +02:00
koichik
d6191f593d
net: fix error handling in listen()
...
Fixes #1894 .
2011-10-16 01:30:19 +09:00
koichik
86a67f15a0
docs: add example of tls
2011-10-16 01:26:38 +09:00
koichik
68cc173c6d
tls: The TLS API is inconsistent with the TCP API
...
Add 'secureConnect' event to tls.CleartextStream.
Fixes #1467 .
2011-10-15 19:27:21 +09:00
Ben Noordhuis
0b92fa0e93
net: fix connect queue bugs
...
This commit fixes two bugs in the handling of write requests when the connect()
call is still in progress.
1. The deferred write request's size was counted twice towards `.bytesWritten`.
2. The callback was not called. After connecting, `Socket.write()` was called
with three arguments (data, encoding, cb) but it ignored the third argument.
Coincidentally fixes test/simple/test-net-connect-buffer.js.
2011-10-15 03:34:09 +02:00
Ben Noordhuis
6df574b744
net: properly account multi-byte chars in .bytesWritten
2011-10-15 03:24:34 +02:00
Igor Zinkovsky
971c3d90eb
win: remove pthread-win32 init code
2011-10-15 02:50:16 +02:00
Igor Zinkovsky
107b05772a
build: fix windows build
2011-10-15 02:12:53 +02:00
Ben Noordhuis
2f8596ee10
test: fix bug in setproctitle test
...
Output from `ps` may contain trailing whitespace, trim it.
2011-10-15 02:07:57 +02:00
Ben Noordhuis
4908e5bf7a
v8: implement VirtualMemory class on SunOS
...
Unbreaks build on SunOS. Un-reverts 9bbca99107 .
2011-10-14 23:29:35 +00:00
isaacs
e6f147141e
doc: Add examples of zlib usage with http
2011-10-14 16:15:08 -07:00
Ben Noordhuis
b6a869ef4f
test: check that EventEmitter.on == EventEmitter.addListener
2011-10-15 01:08:41 +02:00
Ben Noordhuis
018e110cd1
test: replace .addListener() calls with .on()
2011-10-15 01:08:36 +02:00
Ben Noordhuis
3108a9ee38
uv: upgrade to 456f831
2011-10-15 00:42:10 +02:00
koichik
19a855382c
tls: requestCert unusable with Firefox and Chrome
...
Fixes #1516 .
2011-10-15 00:54:46 +09:00
koichik
a09b747f30
child_process.fork: don't modify args
...
Fixes #1888 .
2011-10-15 00:15:38 +09:00
Ben Noordhuis
e0297ca59b
node: fix use of potentially uninitialized variable
2011-10-14 15:05:02 +00:00
Ben Noordhuis
87b34c94fa
timer_wrap: add sanity check assert
2011-10-14 15:01:26 +00:00
Ben Noordhuis
9193062e70
tcp_wrap: add sanity check asserts
2011-10-14 15:01:26 +00:00
Ben Noordhuis
0dc844de17
node_script: remove unused variable
2011-10-14 15:01:21 +00:00
Ben Noordhuis
dc0b7364b5
node: fix arguments to uv_timer_start()
2011-10-14 14:43:49 +00:00
Ben Noordhuis
f1d3ae7753
cares_wrap: make destructor virtual
...
A class with virtual methods should have a virtual destructor.
2011-10-14 14:39:25 +00:00
Ryan Dahl
33b5f2f779
Upgrade V8 to 3.7.0
2011-10-13 17:45:02 -07:00
isaacs
59a5262041
Fix #1882 zlib Update 'availOutBefore' value, and test
2011-10-13 16:47:51 -07:00
Guglielmo Ferri
66a10b6e58
docs: add API documentation note about UDP datagram size
2011-10-13 18:10:01 +02:00
Maciej Małecki
683c1c6583
docs: document process.versions
2011-10-13 17:02:54 +02:00
Simen Brekken
4b0e36810a
net: register net.Server callback only once
...
Only register once for listening when passing a callback to Server.listen(),
this prevents servers recycled using close() from invoking the callback when
Server.listen() is called later.
2011-10-13 16:09:14 +02:00
Ben Noordhuis
fab68aa1ed
platform: support long process names on linux
2011-10-13 15:48:02 +02:00
Ben Noordhuis
5faff9ebdf
test: test long process name support
...
On platforms that support it: linux, freebsd, darwin
2011-10-13 15:47:05 +02:00
koichik
1b55010a04
docs: added .json modules.
2011-10-13 17:06:27 +09:00
Brian White
f243ca199b
docs: mention util instead of sys
2011-10-13 05:06:42 +02:00
Ryan Dahl
3a34972672
Fix test-http-conn-reset.js on OSX
2011-10-12 17:31:49 -07:00
Ilya Dmitrichenko
39987cbc80
docs: improved fs.Stats section in API documentation
2011-10-13 02:25:30 +02:00
Arnout Kazemier
e3d2ae0bfd
sys has been moved to util
2011-10-13 02:21:37 +02:00
Ryan Dahl
e911171e03
Move some slow tests to pummel
2011-10-12 16:59:00 -07:00
Ryan Dahl
7b4370e5f8
Fix test/pummel/test-watch-file.js
2011-10-12 16:19:46 -07:00
Ryan Dahl
651b8a06d6
Fix test/pummel/test-exec.js
2011-10-12 16:12:24 -07:00
Karl Skomski
9557020dc1
New win32 platform function: GetCPUInfo
...
Fixes #1644
2011-10-12 15:10:19 -07:00
Daniel Ennis
59be975322
Improve IPC performance.
...
Reading of JSON data off the buffer, 10-15% performance increase.
Fixes #1864 .
2011-10-12 15:06:51 -07:00
Ryan Dahl
73b4b86d29
Add cluster.js to node.gyp
2011-10-12 14:51:25 -07:00
Ryan Dahl
de7fb33879
Add some docs for node cluster
2011-10-12 14:19:32 -07:00
Ryan Dahl
08cb8fce67
Remove process.ARGV
...
Use process.argv instead.
2011-10-12 14:10:37 -07:00
Ryan Dahl
25ff181300
Revert some changes made in 12486a6
...
Some of the perf improvements from many-writes-fix branch were accidentally
undone in that commit. This puts them back in.
2011-10-12 12:49:58 -07:00
Ryan Dahl
16e1d5b5ce
Remove uname and git-rev detection from http_simple.js
2011-10-12 12:29:40 -07:00
Ryan Dahl
b8966872b3
Upgrade libuv to c903bc3
2011-10-12 12:27:46 -07:00
Ben Noordhuis
6ed8d41ddd
docs: fix child_process.send() example
2011-10-12 17:44:47 +02:00
Ben Noordhuis
bc96302fae
uv: upgrade to 25a177a
...
Fixes #1869 .
2011-10-12 17:37:35 +02:00
Ben Noordhuis
c82828ec27
test: add test for #1869
...
fs.readdir() on file should raise ENOTDIR, not UNKNOWN.
2011-10-12 17:37:30 +02:00
Ben Noordhuis
752571c7ba
Remove --use-legacy switch from --help section.
2011-10-12 15:47:20 +02:00
Ryan Dahl
87339a22b1
introduce node cluster
2011-10-12 02:58:35 -07:00
Igor Zinkovsky
99757cbeb2
fix simple/test-fs-utimes.js on windows
2011-10-11 22:50:16 -07:00
Ryan Dahl
2b46959075
Add throughput benchmark
2011-10-11 22:40:04 -07:00
Igor Zinkovsky
f164704383
fs.watch documentation
2011-10-11 18:28:16 -07:00
Ryan Dahl
e0b59e7dbc
Remove more dead code
2011-10-11 15:20:12 -07:00
Ryan Dahl
7085a04a1e
Remove process.ENV
2011-10-11 15:17:32 -07:00
Ryan Dahl
83fce75700
Remove stdio binding source - somehow this was missed in cdf5d91
2011-10-11 14:59:39 -07:00
Ryan Dahl
0e2bbac4e0
Fix test-module-load-list.js
2011-10-11 14:49:39 -07:00
Ryan Dahl
9631e29933
Remove tests relying on !process.features.uv
2011-10-11 14:47:02 -07:00
Ryan Dahl
c8dbaf579c
Remove --use-legacy and --use-uv
2011-10-11 14:39:31 -07:00
Ryan Dahl
4f59041990
Fix windows build
2011-10-11 14:25:50 -07:00
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
2011-10-11 13:41:33 -07:00
Ryan Dahl
71cce3f45b
Remove dgram_legacy
2011-10-11 13:26:41 -07:00
Ryan Dahl
58e892dadd
Remove dns_legacy
2011-10-11 13:21:30 -07:00
Ryan Dahl
96e423a665
Remove child_process_legacy
2011-10-11 13:16:33 -07:00
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
2011-10-11 13:11:54 -07:00
Ryan Dahl
d2b8037ed0
disable test-sendfd
2011-10-11 13:03:29 -07:00
Fedor Indutny
178e2ce65f
docs: improve addons, readline, repl documentation
2011-10-11 21:44:09 +02:00
Ben Noordhuis
49c3a910c6
docs: fix typo in code snippet
2011-10-11 21:05:45 +02:00
Ryan Dahl
53c163cd5b
Disable test-child-process-custom-fds.js
2011-10-11 11:27:58 -07:00
Ryan Dahl
728b04067d
Upgrade libuv to 4ac1309
...
Fixes #1857
2011-10-11 10:51:07 -07:00
Tomasz Janczuk
6fadbec797
wix project to create msi installer for windows
...
Fixes #1706 .
2011-10-11 10:29:03 -07:00
Ryan Dahl
b280a2d44d
Remove ANOTHER old TODO list
2011-10-11 10:08:49 -07:00
Ryan Dahl
4f4f6dfce8
Remove old TODO list
2011-10-11 10:08:09 -07:00
Ryan Dahl
a29421bcfd
Delete another CMake file
2011-10-11 10:07:36 -07:00
Ryan Dahl
6a371834d8
Remove cmake build system
...
This removes one of the three build systems. CMake has never been officially
supported and is not updated with WAF and GYP. WAF itself is considered
legacy and will be removed once the GYP system is feature complete on
Unixes. GYP is used currently on Windows/MSVS.
2011-10-11 09:58:38 -07:00
Ben Noordhuis
6cb1d26924
v8: fix gyp build on windows
2011-10-11 17:21:35 +02:00
Ben Noordhuis
c215262db4
uv: upgrade to 47d22ac
2011-10-11 16:56:43 +02:00
Ryan Dahl
24dabec039
now working on v0.5.10
2011-10-10 18:56:37 -07:00
Ryan Dahl
3bd9b08fb1
Bump version to v0.5.9
2011-10-10 18:18:56 -07:00
Ryan Dahl
07703fa78e
Revert "v8: implement VirtualMemory class on SunOS"
...
This reverts commit 9bbca99107 .
2011-10-10 18:18:12 -07:00
Ryan Dahl
3b1d656da5
Revert "Upgrade V8 to 3.6.6"
...
Not stable enough.
- Windows snapshot linking broken
- Linux crash on ./node_g test/simple/test-stream-pipe-multi.js
This reverts commit 56e6952e63 .
2011-10-10 17:58:30 -07:00
Ben Noordhuis
9bbca99107
v8: implement VirtualMemory class on SunOS
2011-10-10 17:06:24 -07:00
Ryan Dahl
75cfc77527
Upgrade libuv to f7f518a
2011-10-10 17:05:18 -07:00
Ryan Dahl
8c738fa90c
child_process.fork: don't overwrite env
...
thanks to Malte-Thorben Bruns for pointing this out
2011-10-10 14:49:02 -07:00
Ryan Dahl
ca4a0fce65
Remove test-child-process-channel.js
2011-10-10 14:27:52 -07:00
Ryan Dahl
982b19dbd7
Adjust listenFD deprecation message. Remove test.
2011-10-10 14:24:56 -07:00
Ryan Dahl
2c25507b81
process.stderr goes through libuv now
...
This commit removes one assert from test-console.js in which we check that
process.stderr.write returns true. In the case of a dump to a file we cannot
guarantee this any longer now that it goes through fs.WriteStream.
2011-10-10 14:15:44 -07:00
Ben Noordhuis
6b9f559984
gyp: work around sunos python flock() bug
...
flock(LOCK_EX) always fails with EBADF, use fcntl(F_SETLK) instead.
2011-10-10 20:52:37 +00:00
Ryan Dahl
e6092f337c
tty.WritableStream should be writable
2011-10-10 13:41:04 -07:00
Ryan Dahl
7cf787a2d1
Upgrade libuv to 5656e3
...
This modifies the TTYWrap constructor to add another argument specifying if
it's a readable or writable TTY . That is stdin or stdout. If a TTYWrap is
not readable then writes to it are blocking.
This makes process.stdout blocking.
2011-10-10 13:33:45 -07:00
isaacs
4f91b72dbe
Fix #1851 Correct X/index doc
2011-10-10 12:44:20 -07:00
Ryan Dahl
56e6952e63
Upgrade V8 to 3.6.6
2011-10-10 11:52:42 -07:00
isaacs
ff942c6b39
Fix #1851 Correct X/index doc
2011-10-10 11:47:10 -07:00
Ryan Dahl
0fec213656
Update docs for server fd sharing
2011-10-10 11:36:00 -07:00
Ben Noordhuis
025f5c89c7
uv: upgrade to 41e8574
2011-10-10 16:56:02 +02:00
Ben Noordhuis
326ba25451
tty: unbreak --use-legacy
...
Fixes #1844 .
2011-10-10 15:37:09 +02:00
Brian White
eb40dcb097
Fix typo for fs.write docs
...
Fixes #1843 .
2011-10-09 16:51:42 +09:00
Bert Belder
d3f3f2e455
Windows: exit on ctrl+c
...
Fixes #1813
2011-10-08 02:52:07 +02:00
Igor Zinkovsky
af014c1a5e
fix for simple/test-executable-path.js on windows
2011-10-07 17:48:47 -07:00
Ryan Dahl
12486a6437
Change API for sending handles
...
Does not support sending net.Server objects only raw TCPWrap objects.
2011-10-07 16:43:55 -07:00
Ryan Dahl
a23d8ad313
Upgrade libuv to 9f6024a
...
Fixes #1840
2011-10-07 15:20:35 -07:00
Ryan Dahl
26c08a3f35
Do load balancing test in test-child-process-fork2.
2011-10-07 13:58:55 -07:00
Bert Belder
153629c99a
Some small optimizations
2011-10-07 13:38:23 -07:00
Ryan Dahl
29ec850478
Simplify arg parsing in String.write
2011-10-07 13:38:23 -07:00
Ben Noordhuis
1bb820a339
net: remove unconditional getpeername() call
...
Speeds up http_simple benchmark by about 1.0%
2011-10-07 13:38:23 -07:00
Bert Belder
ed65b7b375
Simplify writeReq handling in net_uv
2011-10-07 13:38:23 -07:00
talltyler
10f97f9424
Fixing #1774 about issues when running node with --harmony_block_scoping v8 option
...
Fixes #1837 .
2011-10-08 04:33:10 +09:00
Bert Belder
fcad5e35fd
Black hole tcp reads after destroy()
2011-10-07 19:03:23 +02:00
Ryan Dahl
899358e797
Add test-child-process-fork2 and fixes to make it work
2011-10-07 04:03:47 -07:00
Fedor Indutny
4561d9e07b
Don't check sign of loadavg
...
Fixes #1838
2011-10-07 01:32:54 -07:00
Fedor Indutny
698455384f
use uv for memory and loadavg functions
2011-10-07 01:31:35 -07:00
Ryan Dahl
b413c77583
Support sending handles to other processes
...
Needs test.
2011-10-07 01:30:28 -07:00
Ryan Dahl
d2ab314e08
Turn off V8's -Werror in GYP
2011-10-07 01:08:53 -07:00
Ryan Dahl
51f7ba4147
Merge branch 'ipc-binding'
2011-10-07 01:00:40 -07:00
Ryan Dahl
26c5905a99
Reimplement child_process.fork
...
Fixes test/simple/test-child-process-fork.js
2011-10-07 00:57:41 -07:00
Ryan Dahl
08c12de8e2
Upgrade libuv to 886b112
2011-10-07 00:47:13 -07:00
Ryan Dahl
f6d889523d
mv test-child-process-spawn-node.js test/simple/test-child-process-fork.js
2011-10-06 22:56:29 -07:00
Ryan Dahl
471c5701c3
uv_write2 uv_read2_start binding
2011-10-06 22:31:57 -07:00
Ryan Dahl
f018be3b5f
Print libuv counters after http_simple exits
2011-10-06 15:02:27 -07:00
Ryan Dahl
c344fbc285
Add process.uvCounters() for debugging
2011-10-06 14:59:38 -07:00
Ryan Dahl
311fe737e8
Upgrade libuv to 60c639f
...
Also remove unused src/stdio_wrap.cc
2011-10-06 12:34:24 -07:00
Bert Belder
4c1d441159
Fix gyp build
2011-10-06 21:25:13 +02:00
koichik
9797482568
docs: add example to net.connect()
...
Fixes #1824 .
2011-10-06 21:36:46 +09:00
Colton Baker
87286cc737
Fixed a lot of jslint errors.
...
Fixes #1831
2011-10-05 18:51:06 -07:00
Ryan Dahl
627f379f22
upgrade libuv to 0303197
2011-10-04 16:53:20 -07:00
Ben Noordhuis
bc7cfd7cd7
http: remove legacy http library
2011-10-04 20:51:34 +02:00
Ben Noordhuis
976c6b0826
test: add TXT DNS record lookup test
2011-10-03 16:50:09 +02:00
Christian Tellnes
d9c67aebff
dns: implement resolveTxt()
2011-10-03 16:41:29 +02:00
Ben Noordhuis
f1ca485357
zlib: fix assert message
2011-10-03 13:40:42 +02:00
Maciej Małecki
365fdbfc64
test: Update assert module tests
2011-10-02 02:25:52 +02:00
Maciej Małecki
f4f037aa64
docs: Update assert module docs
2011-10-02 02:25:52 +02:00
Maciej Małecki
8c8d518723
assert: Make assert module an assert.ok function
...
Code can be written:
var assert = require('assert');
assert(true);
instead of:
var assert = require('assert');
assert.ok(true);
2011-10-02 02:25:52 +02:00
Fedor Indutny
234afa5be1
docs: document watcher debugger commands
2011-10-02 02:19:17 +02:00
Ryan Dahl
f30cba2ba4
add zlib module to doc index
2011-09-30 17:01:07 -07:00
Ryan Dahl
8f23fd545d
Now working on v0.5.9
2011-09-30 16:49:30 -07:00
Ryan Dahl
7cc17a0cea
Bump version to v0.5.8
2011-09-30 13:59:44 -07:00
Fedor Indutny
360ce526fd
debugger: watch, unwatch, watchers
...
Fixes #1800 .
2011-09-30 13:22:56 -07:00
Ryan Dahl
4e43afd973
Fixes #1805 . Reset TTY mode on exit.
2011-09-30 13:12:29 -07:00
Ryan Dahl
d1e6a13179
Upgrade libuv to fe18438
2011-09-30 13:12:12 -07:00
Ryan Dahl
007ddcd2cd
Move test-net-write-callbacks to pummel
...
Runs in 3 seconds.
2011-09-30 10:31:39 -07:00
Ryan Dahl
49806864e4
Add test from v0.4 dea49e3
...
Note this test completes in 3 seconds on v0.4 and 7 minutes on master. NOT
GOOD.
2011-09-30 09:56:37 -07:00
koichik
530082932d
docs: Added missing parenthesis to buffer.readUInt8 example.
...
Fixes #1790 .
2011-09-30 17:05:50 +09:00
koichik
4cdf9d4158
tls: Improve TLS flow control
...
Fixes #1775 .
2011-09-30 15:44:45 +09:00
koichik
49ac083dc1
tls: Add test for #1775
2011-09-30 15:44:13 +09:00
Ryan Dahl
84641fcdf0
WAF: Clean out/Release/deps/uv before build
2011-09-29 11:35:21 -07:00
Ryan Dahl
005448bdeb
Don't ls node_g after make - it confuses people
2011-09-29 09:52:24 -07:00
Marco Rogers
3fc01d9770
docs: note about empty environment in child processes
...
Fixes #1794 .
2011-09-29 19:50:25 +09:00
Ben Noordhuis
fa44659c66
test: fix typo in error message
2011-09-29 04:51:40 +02:00
Ryan Dahl
dea49e3d19
net: Fix string-concat hot path bug
...
Also removes functionality added in f9fec3a2d6
because it changes API. (That patch shouldn't have been added anyway.)
2011-09-28 17:49:33 -07:00
Fedor Indutny
1b8b097fad
debugger: refactor, no more res.success checks
...
Fixes #1779 .
2011-09-28 11:40:51 -07:00
Fedor Indutny
542156a6a1
debugger: use regexps in repl test
...
Fixes #1788
2011-09-28 11:39:45 -07:00
Ryan Dahl
416c14f644
Remove a few instances of process.binding('stdio') from src/node.js
2011-09-27 15:04:01 -07:00
Ryan Dahl
7e62bc9828
Move process.stdout unref hack to handle_wrap.cc
...
See #1726
2011-09-27 15:01:28 -07:00
Fedor Indutny
0a42266824
debugger: double ctrl+break on win should exit node
...
Fixes #1780 .
2011-09-27 14:31:30 -07:00
Ryan Dahl
f63a1f8409
Merge branch 'new-tty-binding'
2011-09-27 13:13:21 -07:00
Ryan Dahl
41d811f41f
Fix test-module-load-list.js
2011-09-27 13:11:09 -07:00
Bert Belder
c06af229dc
Upgrade libuv to 2c0fca9a41
2011-09-27 13:03:29 -07:00
Bert Belder
81425598db
Enable console colors on windows by default
2011-09-27 13:03:29 -07:00
Bert Belder
73fcd43b85
Add new tty js files to node.gyp
2011-09-27 13:03:28 -07:00
Ryan Dahl
2e389c6531
scope.Close in GuessHandleType; don't use uv_is_tty
2011-09-27 13:03:28 -07:00
Ryan Dahl
e1dc6e6d73
Bind uv_tty_get_winsize
2011-09-27 13:03:28 -07:00
Ryan Dahl
1de156abb1
Bind/use uv_guess_handle
2011-09-27 13:03:28 -07:00
Ryan Dahl
74b6426ec6
Initial pass at new TTY js layer
...
This breaks Windows.
2011-09-27 13:02:11 -07:00
Ryan Dahl
f5bdce9cc0
Disable test-dgram-unix.js test-dgram-unix-anon.js test-dgram-multicast.js
2011-09-27 12:52:48 -07:00
Fedor Indutny
95866a6445
debugger: export port
...
Fixes test-debugger-client.js
Fixes #1782 .
2011-09-27 12:49:03 -07:00
Ryan Dahl
0f8f863043
Fixes #1726 , hack to unref process.stdout
2011-09-27 12:41:59 -07:00
Ben Noordhuis
abfcd1fb00
docs: document crypto.randomBytes()
2011-09-27 20:27:57 +02:00
Ben Noordhuis
413d38c43b
test: test crypto (P)RNG functions
2011-09-27 20:27:57 +02:00
Ben Noordhuis
c4eaf7e5a9
crypto: implement randomBytes() and pseudoRandomBytes()
2011-09-27 20:27:53 +02:00
Fedor Indutny
67706b8bb7
Export disableColors from repl, share with debugger
2011-09-27 11:58:02 +02:00
Fedor Indutny
f4124e18cb
debugger: setBreakpoint('fn()')
...
Fixes #1777
2011-09-27 00:26:16 -07:00
Ryan Dahl
fa2eaeafda
write-only streams should not shutdown
...
See
https://github.com/joyent/node/issues/1726#issuecomment-2207602
2011-09-26 23:25:50 -07:00
Ryan Dahl
040cf02724
Re-land Bert's test for #1697
...
Was reverted out in cde81a6675
2011-09-26 12:50:59 -07:00
isaacs
c828ded0c2
zlib: Typo. s/opt/opts/
2011-09-26 11:50:20 -07:00
Fedor Indutny
c26cf84a08
debugger: fix backtrace with no frames
...
Fixes #1768
2011-09-26 10:57:19 -07:00
Fedor Indutny
02e0a0aa10
debugger docs
...
Fixes #1767
2011-09-25 12:38:06 -07:00
Fedor Indutny
82d0ac7ac7
Ctrl+Break on windows starts debugger server
2011-09-25 11:58:23 -07:00
Fedor Indutny
26aab0dc5d
EnableDebug immediatly on SIGUSR1
...
Don't wait for script to break somewhere, because that may not happen if
execution is inside event-loop, not in v8.
Add '\n' to the end of 'debugger listening...' message
2011-09-25 11:58:22 -07:00
Fedor Indutny
9b6acc27aa
handle backtrace errors
2011-09-25 11:58:22 -07:00
Fedor Indutny
2c9bcb28be
move debugger_running to correct place
2011-09-25 11:58:22 -07:00
Fedor Indutny
9e09fc0508
more cli options
...
* node debug localhost:5858 - connects to remote debugger
* node debug -p `pgrep node` - connects to running process
* Fixed double-run of debugger on SIGUSR1
2011-09-25 11:58:22 -07:00
Ben Noordhuis
942b92a06e
cygwin: fix new[]/delete mismatch
2011-09-25 03:59:50 +02:00
Ben Noordhuis
aff91f79ae
cygwin: fix return of uninitialized variable
2011-09-25 03:59:50 +02:00
Ben Noordhuis
d91f64fcbb
cygwin: fix new[]/delete mismatch
2011-09-25 03:34:19 +02:00
Ben Noordhuis
6ee676c0e4
cygwin: fix return of uninitialized variable
2011-09-25 03:34:12 +02:00
Eric Lovett
f9fec3a2d6
net: callback to socket.write should always be called asynchronously
2011-09-25 00:23:27 +02:00
Ben Noordhuis
f6bce20e5e
buffers: handle bad length argument in constructor
...
Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.
2011-09-24 18:31:56 +02:00
Ben Noordhuis
d157131439
buffers: handle bad length argument in constructor
...
Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.
2011-09-24 18:27:03 +02:00
Ben Noordhuis
fcba1459f2
uv: upgrade to 8f617b9
2011-09-24 05:23:41 +02:00
Fedor Indutny
43cb4ec76b
debugger fix for #1707
2011-09-23 13:42:41 -07:00
Fedor Indutny
39fec6003e
debugger: remove useless clearlines, updated test
...
* remove useless clearline call at Interface start
* silence after .handleBreak()
* output '\b' if this.stdout is not a tty (debugger)
* add '\b' checks for clearline (test)
2011-09-23 13:42:41 -07:00
Fedor Indutny
e406613ee5
test-debugger-repl improvements
2011-09-23 13:42:41 -07:00
Fedor Indutny
78d91ff074
don't use global vars
2011-09-23 13:42:41 -07:00
Fedor Indutny
2010071339
readline: custom streams support
2011-09-23 13:42:41 -07:00
Ben Leslie
a4e10cdb07
Raise an error when a malformed package.json file is found.
...
The current behaviour will silently ignore any parsing errors
that may occur when loading a package.json file. This makes
debugging errors in the package.json file very difficult.
This changes the behaviour that that errors opening and reading
the file package.json file continue to be ignored, but errors
in parsing will throw an exception.
2011-09-23 12:00:26 -07:00
Ryan Dahl
94bedc60f4
Upgrade libuv to f20297f
2011-09-23 11:10:18 -07:00
Fedor Indutny
1e37efb08b
initial tests
...
* Don't buffer command, before it's execution (repl)
* `quit` command, custom streams for .start, stubbed out test, disable
history repeation for non-tty (debugger)
2011-09-23 09:38:24 -07:00
Igor Zinkovsky
66293f6e98
fix spelling
2011-09-23 09:20:15 -07:00
Ben Noordhuis
9ad334085f
build: explicitly link in libz on non-win32 platforms
2011-09-23 15:40:35 +02:00
Igor Zinkovsky
8fe5712477
fs watcher binding
2011-09-22 22:32:33 -07:00
Ryan Dahl
8d37b6c92b
upgrade libuv
2011-09-22 22:29:20 -07:00
isaacs
74c02066fe
Add broken test for #1726 .
2011-09-22 19:38:01 -07:00
Ben Noordhuis
93aad55342
crypto: fix delete of potentially uninitialized pointer
2011-09-22 06:16:53 +02:00
Ben Noordhuis
fdb0eb5825
crypto: fix read of potentially uninitialized variable
2011-09-22 06:16:47 +02:00
Ben Noordhuis
3a9b08f156
crypto: look up SSL errors with ERR_print_errors()
2011-09-22 06:16:42 +02:00
Ben Noordhuis
9ef962f9ee
crypto: fix error message buffer overrun
...
ERR_error_string() expects a buffer of at least 256 bytes, the input buffer
was not even half that size. Use ERR_error_string_n() instead.
2011-09-22 06:16:34 +02:00
Igor Zinkovsky
de0066c697
remove node_zlib.h from node.gyp
2011-09-21 16:54:35 -07:00
Fedor Indutny
8efe7a8304
[debugger] shorten break message
2011-09-21 13:27:24 -07:00
Fedor Indutny
79fd1f7f0b
[debugger] optimize context's properties initialization, make 'list' a function, not a getter
2011-09-21 13:27:24 -07:00
Fedor Indutny
3148f1400e
[debugger] fix 'debug> connecting...', fixed autostart (XXX figure out why it wasn't working in some cases), fixed highlighting for first line of module's code
2011-09-21 13:27:23 -07:00
Vitor Balocco
97d355c273
docs: Add anchor links next to each function
...
Modify doctool.js to automatically create anchor links for
every function, for easy linking.
Include support for functions that have a <h4> level
Fixes : #1718 .
2011-09-21 21:08:53 +09:00
Ben Noordhuis
320cf729db
crypto: fix delete of potentially uninitialized pointer
2011-09-21 01:58:27 +02:00
Ben Noordhuis
b185751c3f
crypto: fix read of potentially uninitialized variable
2011-09-21 01:58:27 +02:00
koichik
b93a7cc99e
docs: add links
2011-09-20 15:50:36 +09:00
Ben Noordhuis
ed44098cf6
build: fix SYS_clock_gettime feature check
...
execute=True makes it fail while cross-compiling.
Fixes #1541 .
2011-09-16 17:55:54 +02:00
Ryan Dahl
b31d5ac639
Update website address in Makefile
2011-09-15 17:49:29 -07:00
Ryan Dahl
cfe0f4226b
Now working on v0.4.13
2011-09-15 17:31:35 -07:00
Ryan Dahl
771ba34ca7
Bump version to v0.4.12
2011-09-15 16:46:39 -07:00
Ryan Dahl
6312e889b1
Drain OpenSSL error queue? Addresses #1719
2011-09-15 15:04:09 -07:00
isaacs
e06ce7562c
Fix #1707 hasOwnProperty usage
...
If hasOwnProperty is overridden, then calling `obj.hasOwnProperty(prop)`
can fail. Any time a dictionary of user-generated items is built, we
cannot rely on hasOwnProperty being safe, so must call it from the
Object.prototype explicitly.
2011-09-15 10:54:08 -07:00
isaacs
b3af074a02
Add querystring test for hasOwnProperty usage
2011-09-15 09:52:49 -07:00
isaacs
98990b9779
Fix #1707 hasOwnProperty usage
2011-09-15 09:46:30 -07:00
Ben Noordhuis
5724b54d2e
test: add http multi-line header test
...
Test case for #1569 . Verify that http_parser parses multi-line headers.
2011-09-14 16:29:32 +02:00
Ben Noordhuis
8b2a3354f9
http_parser: cherry-pick 3258e4a and b89f944 from upstream
...
Fixes #1569 , parse error on multi-line HTTP headers.
2011-09-14 16:07:37 +02:00
koichik
fdbfc9ceb7
net: Socket write encoding case sensitivity
...
Fixes #1586 .
2011-09-04 13:53:38 +09:00
koichik
3e853e627e
buffer: write() should always set _charsWritten.
...
Refs #1633 .
2011-09-03 11:48:27 +09:00
koichik
96ede8cc9b
buffer: Avoid overrun with 'binary' encoding.
...
Fixes #1624 .
2011-09-02 09:56:58 +09:00
isaacs
ef27d56cc1
Fixes #1610 Remove DigiNotar CA from trusted list
...
Details:
https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911
http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php
2011-08-30 08:53:21 -07:00
Nathan Rajlich
0c91a835ff
util: isRegExp() should not call toString() on its argument
...
An overloaded toString() method may have side effects
so don't call it for a simple type check.
Back-port of 54b409d to the v0.4 branch.
2011-08-25 19:23:31 +02:00
Ryan Dahl
827b9c5f1f
net: fix throw error
...
Thanks Tobi
2011-08-23 14:30:12 -07:00
koichik
509a676128
Doc improvements
2011-08-23 01:15:32 +09:00
Ryan Dahl
ce9caa237f
Fix #1563 . overflow in ChildProcess custom_fd.
...
Backported from master f5db3f1f85
2011-08-20 12:42:58 -07:00
Maciej Małecki
e150bc4f2b
docs: process.memoryUsage returns memory usage measured in bytes
2011-08-20 01:00:21 +02:00
isaacs
b4712bf1ac
Close #1544 Document slashesDenoteHost flag in url.parse
2011-08-17 18:47:48 -07:00
Ryan Dahl
dc578724b1
Now working on v0.4.12
2011-08-17 18:45:28 -07:00
Ryan Dahl
a745d19ce7
Bump version to v0.4.11
2011-08-17 18:18:10 -07:00
Ryan Dahl
9cd510846e
Fixes #1546 . Remove expensive debug call.
2011-08-17 13:21:15 -07:00
Ben Noordhuis
decd81838a
build: fix freebsd gyp build
2011-08-17 07:50:59 +02:00
Ben Noordhuis
52037d897d
uv: upgrade to 2dae0c9
2011-08-17 07:50:58 +02:00
Ben Noordhuis
0f077a78ad
gyp: add freebsd support
2011-08-17 07:50:58 +02:00
Ben Noordhuis
1e7a0aa883
gyp: revive sunos support, lost in 6b98a63
2011-08-17 07:50:58 +02:00
Ryan Dahl
ae0dd0d89c
Remove extra method declaration
2011-09-20 14:08:55 -07:00
Ryan Dahl
c1ae6ea2f2
Add TTYWrap
2011-09-20 13:39:48 -07:00
Ryan Dahl
6b98a63974
Upgrade libuv to 2ef8f35
2011-09-20 13:34:52 -07:00
Fedor Indutny
b20c98e427
fix 'null' mirroring
2011-09-20 08:35:16 -07:00
Fedor Indutny
a0556fcbe1
repeat last command if empty line was entered
2011-09-20 08:35:15 -07:00
Fedor Indutny
41a41825f6
micro-refactor, use rli.output.write instead of rli.write ('line' event was emitted for those writes)
2011-09-20 08:35:15 -07:00
Fedor Indutny
292e2ea5ad
fix breakpoint prefixing in list()
2011-09-20 08:35:15 -07:00
Fedor Indutny
c8ffbcd9f1
added comments, spawn child process automatically at debugger's start
2011-09-20 08:35:15 -07:00
Fedor Indutny
4ff15512f5
remove arrow from current source line
2011-09-20 08:35:15 -07:00
Fedor Indutny
ff05beeef3
fix inspection of zero
2011-09-20 08:35:15 -07:00
Ben Noordhuis
44bebc0d52
crypto: look up SSL errors with ERR_print_errors()
2011-09-20 08:12:35 +02:00
Ryan Dahl
6326b04b07
Fix test-regress-GH-819
...
Problem was exposed in 12798c6 .
2011-09-19 13:41:48 -07:00
Ben Noordhuis
3aa1975c58
build: make wscript work with python 2.4
2011-09-19 16:44:03 +02:00
Ben Noordhuis
243c218c7a
tls: remove superfluous setOptions() call
2011-09-19 16:28:22 +02:00
Ryan Dahl
12798c620d
dns callbacks should go through MakeCallback
2011-09-18 13:20:16 -07:00
Ryan Dahl
100fc27ebb
Upgrade gyp to r1046
2011-09-18 12:25:30 -07:00
isaacs
f90264d246
zlib: lint
2011-09-17 23:03:36 -07:00
isaacs
d104bfd5a6
zlib: Fix test so that it's not trivially passing, then pass it.
...
Regression from the refactor to move more things into JS.
2011-09-17 23:03:23 -07:00
isaacs
5b8e1dabbc
Initial pass at zlib bindings
2011-09-17 18:22:09 -07:00
Ryan Dahl
dcd911e24b
Now working on v0.5.8
2011-09-16 18:38:46 -07:00
Ryan Dahl
558241166c
Bump version to v0.5.7
2011-09-16 17:54:20 -07:00
Fedor Indutny
145fac7fb1
setBreakpoint w/o arguments should set one on a current line
2011-09-16 17:53:20 -07:00
Fedor Indutny
4a537c1b88
restore breakpoints after restart, fix message handling
2011-09-16 17:53:19 -07:00
Fedor Indutny
d6088b2667
fix spawn call, customFds ain't supported yet
2011-09-16 17:53:19 -07:00
Ryan Dahl
cde81a6675
Revert "Add regression test for issue 1697"
...
Causing many test failures due to lingering process
This reverts commit 8b754a9e02 .
2011-09-16 17:24:34 -07:00
Ryan Dahl
d750927b36
Upgrade libuv to 75a088e
2011-09-16 16:19:33 -07:00
Bert Belder
8b754a9e02
Add regression test for issue 1697
2011-09-17 00:05:15 +02:00
Ben Noordhuis
0ad28fdd37
crypto: fix error message buffer overrun
...
ERR_error_string() expects a buffer of at least 256 bytes, the input buffer
was not even half that size. Use ERR_error_string_n() instead.
2011-09-16 19:16:32 +02:00
Ryan Dahl
2d0b1ed7ad
Upgrade libuv to 2640aae
...
Add test for bug fixed in joyent/libuv@2640aae1
2011-09-15 15:37:57 -07:00
Ryan Dahl
1b0a5cbaaa
Merge remote branch 'origin/v0.4'
2011-09-15 15:08:38 -07:00
Ryan Dahl
b281171030
Support legacy API: process.stdout.fd
2011-09-15 13:57:41 -07:00
Ryan Dahl
5cb1fd2e32
net.Socket(fd) should start readable and writable
2011-09-15 13:35:29 -07:00
Ryan Dahl
763059ee09
Remove pthread-win32 from license file (no longer using it)
2011-09-15 13:05:54 -07:00
Jeroen Janssen
3e667804eb
Fix options_file_memory_leak
...
Fixes #1714 .
Fixes #1715 .
2011-09-15 12:03:06 -07:00
Ryan Dahl
a1bafc5566
Merge remote branch 'origin/v0.4'
...
Conflicts:
deps/http_parser/http_parser.c
deps/http_parser/test.c
lib/repl.js
2011-09-15 11:48:37 -07:00
Ryan Dahl
1b15af9dd2
Upgrade V8 to 3.6.4
2011-09-15 09:42:06 -07:00
Ben Noordhuis
f8b90946ae
node: disable uv backend if NODE_USE_UV=0
2011-09-15 00:32:07 +02:00
Igor Zinkovsky
6cb15403d3
remove SetCloseOnExec
2011-09-14 13:47:00 -07:00
Ryan Dahl
a6ef3eb271
Upgrade libuv to 4197fc7
...
and use return value from sync uv_fs functions
2011-09-14 13:46:54 -07:00
Ryan Dahl
70966002c0
Forward customFds to ChildProcess.spawn
...
Fixes #1695
2011-09-14 12:33:42 -07:00
Fedor Indutny
d2dadf32db
[debugger] added setBreakpoint and clearBreakpoint to help message
...
group commands in help message, added shortcuts info
2011-09-14 10:17:17 -07:00
Fedor Indutny
1dd3b68c4f
[debugger] separate history of control and debug, make scripts command getter
2011-09-14 23:05:04 +07:00
Fedor Indutny
19194f87c5
[debugger] setBreakpoint, clearBreakpoint, fix reqSource error handling, show breakpoints in list()
2011-09-14 23:05:04 +07:00
Fedor Indutny
3a7713ff10
[debugger] synonym=>shortcut, added shortcut for backtrace (as in gdb), simplify regexp
2011-09-14 23:05:04 +07:00
Fedor Indutny
f2ec46a7a7
[debugger] color mark in _debugger, kill child on Ctrl+D
2011-09-14 23:05:01 +07:00
Ryan Dahl
0e0fbf7e6a
Upgrade libuv to 4b9b692
2011-09-14 08:43:27 -07:00
Ben Noordhuis
92d4ed397b
readline: handle null completer graciously
...
Fixes #1698 .
2011-09-14 17:33:07 +02:00
koichik
244675cab1
doc: HTTPS client's options
2011-09-14 23:48:42 +09:00
koichik
e7f64a7d41
doc: HTTPS client's options
...
Fixes #1494 .
2011-09-14 20:17:30 +09:00
Ryan Dahl
70a5659a46
Document child_process.execFile
...
Fixes #1700
2011-09-13 20:50:49 -07:00
Fedor Indutny
9fb186892c
[debugger] requireConnection() returns bool, break UI
...
Stepping commands will overwrite output of previous step command
2011-09-13 20:40:26 -07:00
Fedor Indutny
57388d8b2e
[repl] add error handling for async scope fetching
2011-09-13 20:40:21 -07:00
Ryan Dahl
69c35f990f
Doc fixes
...
Fixes #1701 . Thanks baudehlo.
2011-09-13 20:02:54 -07:00
isaacs
dc8f4eed53
Fix #1694 Document require() cycles
2011-09-13 10:59:42 -07:00
Ryan Dahl
cb6b9eb19e
Fix windows build
2011-09-12 19:42:12 -07:00
Ryan Dahl
8c87250816
Do not load readline from util.inspect
...
This causes all modules using console.log() to load readline which seems
unnecessary.
2011-09-12 18:25:23 -07:00
Ryan Dahl
0928f0f290
Fix test-module-load-list
...
and lazy load modules for process.stdout
This probably breaks test-module-load-list on windows, but it hopefully is
an easy fix to replace "_posix" bindings with "_win32".
2011-09-12 18:12:48 -07:00
Ryan Dahl
0aad61e802
Use net_uv instead of net_legacy for stdio
...
Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.
2011-09-12 17:32:52 -07:00
isaacs
190abcac9d
mkdir EEXIST test
...
Fixed on uv 3c00d87b4239a6b8358e2085f806170c3eca10cf
2011-09-12 17:13:12 -07:00
isaacs
8b6277a460
Update uv to 3c00d87b4239a6b8358e2085f806170c3eca10cf
2011-09-12 17:11:03 -07:00
Ben Noordhuis
718032777d
v8: move __C99FEATURES__=1 into common.gypi
2011-09-12 22:52:56 +00:00
Ryan Dahl
caaa59c559
Wrap uv_pipe_open, implement net.Stream(fd);
...
Fixes simple/test-child-process-ipc on unix.
2011-09-12 15:09:44 -07:00
Ryan Dahl
51f2e8439e
Upgrade libuv to e7eeacb
2011-09-12 15:09:26 -07:00
Ben Noordhuis
77e4abbc3e
v8: add platform-solaris.cc to gyp build
2011-09-12 21:48:30 +00:00
Ben Noordhuis
d104e5b91c
v8: compile with __C99FEATURES__=1 on sunos
...
Exposes INFINITY, isinf(), isfinite(), etc.
2011-09-12 21:48:30 +00:00
Ben Noordhuis
c18ef0fed5
openssl: fixups for sunos
2011-09-12 21:48:30 +00:00
Ben Noordhuis
e4e1917936
build: fixups for sunos
2011-09-12 21:48:30 +00:00
Ben Noordhuis
d7c16fa372
build: disable -fvisibility=hidden
...
Not recognized by older versions of gcc.
2011-09-12 21:48:30 +00:00
Ben Noordhuis
12351a2591
build: fix breakage when resuming make
2011-09-12 21:48:30 +00:00
Ben Noordhuis
9f986981f8
build: configure node, v8, cares and openssl
2011-09-12 21:48:29 +00:00
Ben Noordhuis
fe7e00d51a
gyp: add sunos support
2011-09-12 21:48:29 +00:00
Ben Noordhuis
0d80040adf
uv: upgrade to 9bd8bd7
2011-09-12 23:46:39 +02:00
Ben Noordhuis
7e7e983781
uv: upgrade to b450d87
2011-09-12 18:41:48 +02:00
Thomas Shinnick
7dc2c492e9
fs: unguarded fs.watchFile cache statWatchers checking fixed
...
Use hasOwnProperty to check filepath cache; previous code could fail if
a filepath duplicated a chained property name.
Fixes #1637 .
2011-09-12 15:59:00 +09:00
Thomas Shinnick
e58c036c27
fs: add positioned file writing feature to fs.WriteStream
...
Patterned on same feature in ReadStream; a small bit of new code added
plus two refactorings of previous code; added two test files.
Fixes #1645 .
2011-09-12 14:57:49 +09:00
Thomas Shinnick
e4ebeb630e
fs: minor corrections from examining stream read positioning
...
Fix minor typos, one small refactor, and change emit() in a constructor
to a throw
2011-09-12 14:57:43 +09:00
koichik
389e2a07e6
util: Fix inspection for Error
...
Fixes #1634 .
2011-09-11 23:13:06 +09:00
Fedor Indutny
df480e0357
fix syntax error handling for 'throw ...', fix return value assertion
2011-09-11 02:19:42 -07:00
Bert Belder
55c1546f01
Un-break the windows build
2011-09-11 03:54:08 +02:00
Bert Belder
10e7c52a70
win: make test-cli-eval.js pass
2011-09-11 03:52:44 +02:00
Ryan Dahl
0f211048a0
Upgrade libuv to efa1b54
2011-09-10 18:40:40 -07:00
Ryan Dahl
67cc5c9218
Merge remote branch 'indutny/feature-debugger'
...
Fixes #1667
2011-09-10 17:46:14 -07:00
Fedor Indutny
b942c6339a
Remove obsolete 'using v8::Null'
...
Fixes #1680 .
2011-09-10 17:44:52 -07:00
Fedor Indutny
8c2c7bb8a9
vm context with accessors
...
fixes #1673
2011-09-10 10:51:58 -07:00
Fedor Indutny
fe4b0f40d6
[debugger] fixed piping from stdout of child process, fixed eval in debug repl (when not on breakpoint)
2011-09-10 23:55:38 +07:00
Fedor Indutny
54520981a4
[debugger] implemented setBreakpoint, etc
...
Lift prototype methods not only as accessors, but as properties too.
this.print() supports javascript objects inspection
this.error() implemented, don't throw error at callbacks and commands
Fixed list() invokation, when script is not on a breakpoint
Removed obsolete process.nextTick from `step` commands
2011-09-10 19:18:36 +07:00
Fedor Indutny
db6526f962
[debugger] deep cloning (depth = 3)
2011-09-10 18:39:34 +07:00
Fedor Indutny
69fa7ef65d
[debugger] fix slow repl evals inside async callbacks
2011-09-10 18:19:47 +07:00
Fedor Indutny
79265fe389
[debugger] rename function, add it to ignore list
2011-09-10 17:57:55 +07:00
Fedor Indutny
5a3639985a
[debugger] print data from child process' stdout and stderr
2011-09-10 17:43:22 +07:00
Fedor Indutny
3dd573e858
[debugger] nicier output, clear line before writing
2011-09-10 17:33:07 +07:00
Fedor Indutny
03adceec62
[debugger] more informative break message (reverting back partially)
2011-09-10 12:48:21 +07:00
Ryan Dahl
8821eb24c2
Correct date
2011-09-09 20:18:40 -07:00
Bert Belder
0be4812c35
Now working on v0.5.7
2011-09-10 01:38:51 +02:00
Bert Belder
b49bec5580
Bump version to 0.5.6
2011-09-10 00:29:35 +02:00
Bert Belder
0a72ac3770
Upgrade libuv to bd6066cb
2011-09-10 00:29:27 +02:00
Igor Zinkovsky
79ce48d3f0
fix for test-fs-chmod
2011-09-09 21:09:59 +02:00
Ben Noordhuis
fa334ef0b7
build: install uv-private/*.h, fixes native add-on builds
2011-09-09 17:30:08 +02:00
Bert Belder
97cf216c74
Upgrade libuv to e95a29ee18
2011-09-09 15:05:12 +02:00
Bert Belder
b5db0767d5
net_uv: fix 'set is undefined' error
2011-09-09 14:59:54 +02:00
Bert Belder
f810998871
net_uv: use sufficient buffer to read sock/peername
2011-09-09 14:59:27 +02:00
Igor Zinkovsky
85357abba1
fix test-fs-chmod test
2011-09-09 14:45:37 +02:00
Ryan Dahl
03c2f62020
Upgrade V8 to 3.6.2
2011-09-08 16:11:20 -07:00
Bert Belder
0a127d6a69
Upgrade libuv to 2d1c672e
2011-09-08 23:53:40 +02:00
Ryan Dahl
b6e0433755
Upgrade libuv to 5b567b2
2011-09-08 14:29:12 -07:00
Ryan Dahl
26834b0524
Revert "vm context with accessors"
...
This reverts commit 4527de8cba .
Causes segfault in test/message/undefined_reference_in_new_context.js
2011-09-08 13:30:52 -07:00
Fedor Indutny
8d7aade663
[debugger] call silent resume in debugEval to prevent incorrect cursor position after repl autocompletion, small refactor in readline
2011-09-09 03:05:21 +07:00
Igor Zinkovsky
65e6ba9cce
Enable link, symlink, and readlink on windows
2011-09-08 12:52:08 -07:00
Fedor Indutny
01349bbd70
[debugger] added synonyms for run, cont, next, step, out, shorten breakpoint message and do not output explicit debug> on breaks
2011-09-09 02:33:28 +07:00
Fedor Indutny
46382a728a
[debugger] resume stdin at right time when running code remotely
2011-09-09 02:06:07 +07:00
Fedor Indutny
d36d5c34df
[debugger] revert to using getter
2011-09-09 02:06:07 +07:00
Fedor Indutny
199f90b138
[debugger] fix messages
2011-09-09 02:06:07 +07:00
Fedor Indutny
22eb2d5084
[debugger] pause stdin on debugEval
2011-09-09 02:06:07 +07:00
Fedor Indutny
3b593c9ec5
[debugger] handle lookup error, no more need to handle SyntaxErrors
2011-09-09 02:06:07 +07:00
Fedor Indutny
e13ed4a8d0
[repl, readline] refactor async completion and execution
2011-09-09 02:06:07 +07:00
Fedor Indutny
2c2397d333
[debugger] simulate getters
2011-09-09 02:06:07 +07:00
Fedor Indutny
00343a9af0
[debugger] display message on repl(), do not display warnings on Ctrl+C
2011-09-09 02:06:07 +07:00
Fedor Indutny
77eb8eabe2
[debugger] use newly added eval argument for REPLServer
2011-09-09 02:06:06 +07:00
Fedor Indutny
0d4dc3a8b5
[repl] let self.eval be configurable on REPLServer initialization
2011-09-09 02:06:06 +07:00
Fedor Indutny
f549f2bf1d
[debugger] Fix help message
2011-09-09 02:06:06 +07:00
Fedor Indutny
3b2577b4fe
[debugger] restructurize code, eval control repl asynchronously
...
Move commands closer to each other, use .debugEval and .controlEval for
controlling repl output (no more incorrect 'debug>' prints).
2011-09-09 02:06:06 +07:00
Fedor Indutny
e01635eb9b
[debugger] port all commands
2011-09-09 02:06:06 +07:00
Fedor Indutny
eab65e214e
[repl] Async global completion
2011-09-09 02:06:06 +07:00
Fedor Indutny
134ab61131
[debugger] two repls, initial
2011-09-09 02:06:06 +07:00
Fedor Indutny
71a9aefa0f
[readline, repl] Fix completion grouping, fix parens eval results
...
handling
2011-09-09 02:06:06 +07:00
Fedor Indutny
42b8b77d9f
[repl, readline] async interface
...
Add async completion and execution interface for repl and readline
2011-09-09 02:06:06 +07:00
Fedor Indutny
bd69afbc83
[debugger] readline => repl
...
Started porting to high-level javascript API and repl.
2011-09-09 02:06:05 +07:00
Fedor Indutny
4527de8cba
vm context with accessors
...
true copy of sandbox properties
catch sealed errors, pass global's prototype to CloneObject
Fixes #1673
2011-09-08 11:59:21 -07:00
Ben Noordhuis
bb3a1d5b67
http: set .code='ECONNRESET' on socket hang up errors
...
Fixes #1672 .
2011-09-08 20:47:16 +02:00
koichik
6139459d45
util: Fix inspection for sparse array
...
Fixes #1651 .
2011-09-09 00:57:42 +09:00
koichik
98b64422bb
util: Divide inspect() into some subroutines
2011-09-09 00:53:37 +09:00
Ryan Dahl
ee2c12d48e
Upgrade GYP to r1034
2011-09-08 01:11:45 -07:00
Ryan Dahl
0bca54444a
Upgrade V8 to 3.6.1
2011-09-07 21:23:29 -07:00
koichik
526c54c979
buffer: write() should always set _charsWritten.
...
Fixes #1633 .
2011-09-08 11:47:32 +09:00
Ryan Dahl
52044fd1b1
Merge remote branch 'origin/v0.4'
...
Conflicts:
lib/net.js
test/simple/test-buffer.js
2011-09-07 17:51:33 -07:00
Ben Noordhuis
638773628c
tls: new[] instead of malloc() in Connection::GetSession()
2011-09-07 20:02:14 +02:00
Sean Cunningham
eb99083d0b
tls: add client-side session resumption support
2011-09-07 20:01:14 +02:00
Ben Noordhuis
b66d225c6e
docs: document that the build system depends on python >= 2.5.2
...
Fixes #354 .
2011-09-06 23:11:17 +02:00
Thomas Shinnick
4cf0ce5bb4
docs: typos and minor edits in several modules
...
Mostly quite minor edits. Those possibly of more interest are:
emitter.setMaxListeners(n)
That the limit is per event name for an emitter.
fs.readlink()
Not a path, but rather the symbolic link's string value, which
would be at best a partial path, certainly not a 'resolvedPath'
global.__filename
This may be "well-known" but this is a full path to the module
that referencing code is running in. It is not the main program's
path, unless you are in the main program. Each module knows only
its own path.
server.listen(port,...)
I actually needed this functionality... "gimme just _any_ next port"
stream.end()
stream.destroy()
Yeah, everybody knows what happens to the queued data, but let's
make it *really* explicit for the first readers.
2011-09-06 18:19:41 +02:00
Maciej Małecki
fb93ab4125
test: test for correct parsing of URLs with plus character in protocol
2011-09-06 17:04:00 +02:00
Maciej Małecki
d0552949b9
url: add plus sign to protocol pattern
2011-09-06 17:03:52 +02:00
Ben Noordhuis
56efe9cbc5
file: translate libuv error codes to errno names
...
Fixes incorrect error names (ex. ENOEXEC instead of EBADF,
EMLINK instead of ENOENT).
Fixes #1656 .
2011-09-06 16:34:21 +02:00
Ben Noordhuis
94b0481a56
uv: upgrade to cc91989
2011-09-06 16:14:14 +02:00
Bert Belder
8153a21613
Improve path parsing on windows
...
Closes #650
2011-09-06 04:47:36 +02:00
Ben Noordhuis
2d9ab49239
file: fix errno propagation in sync fs calls
...
Include libuv fs error code in the JS exception.
Fixes #1657 .
2011-09-06 02:15:08 +02:00
Ben Noordhuis
554dc63328
uv: upgrade to 58ef43e
2011-09-06 02:15:08 +02:00
Peter Bright
de978991d8
windows: it's rude to clobber quick edit mode
...
Closes #1429
2011-09-06 00:36:41 +02:00
Ryan Dahl
061811f328
ObjectWraps should be MarkIndependent
2011-09-05 14:40:30 -07:00
Ryan Dahl
ece5c64504
Upgrade libuv to a8017fd
2011-09-05 00:32:15 -07:00
isaacs
ef523e5719
fix test-fs-realpath
2011-09-04 22:14:03 -07:00
Ryan Dahl
fcfec075e3
internal fs functions called with this == ReqWrap
2011-09-04 19:48:55 -07:00
Ryan Dahl
39ea27470c
Return ReqWrap from internal fs functions
2011-09-04 19:44:01 -07:00
Ryan Dahl
f5e486ebab
Fix test-fs-error-messages.js
2011-09-04 18:48:19 -07:00
Ryan Dahl
7272dbdbc6
Upgrade libuv to 991f6ee
2011-09-04 18:48:19 -07:00
Bert Belder
b5d58f11cb
dgram-uv: black hole incoming messages after closing
...
Fixes test/simple/test-dgram-pingpong.js on windows
2011-09-05 03:30:12 +02:00
Ryan Dahl
01bf209a3d
Upgrade libuv to b6ede6c
...
Fixes require('fs').readdirSync on unix.
2011-09-04 17:17:00 -07:00
Bert Belder
e20d0c1cd0
net-uv: correctly set socket.remoteAddress and -port
...
closes #1345
2011-09-05 02:10:14 +02:00
Bert Belder
ae2ac4fb1b
gyp: add js files to node project
2011-09-05 02:10:12 +02:00
Bert Belder
d01b87d9c4
win: vcbuild.bat should attempt to run vcvarsall.bat
2011-09-05 02:10:12 +02:00
Ryan Dahl
17021ea631
Upgrade libuv to 142a702
2011-09-04 16:17:00 -07:00
Bert Belder
3742aeea4c
resolve mingw32 build problem
2011-09-04 22:54:24 +02:00
Bert Belder
c82ab45ee6
uv_getsockname got renamed
2011-09-04 22:53:01 +02:00
Bert Belder
cb1a21b1d4
Upgrade libuv to 7b87ff7c9b
2011-09-04 22:25:40 +02:00
Peter Bright
766430c743
Windows: set executables to be console programs
...
closes #1644
2011-09-04 19:27:04 +02:00
Logan Smyth
bc0a552a84
docs: Fix merge error in tls docs
...
Fixes #1648 .
2011-09-05 00:48:35 +09:00
Ashok Mudukutore
908ee33f2d
build: add RPATH environment variable
...
Overrides default run-time library paths
2011-09-04 17:26:05 +02:00
Igor Zinkovsky
29e929de1e
fix windows build break
2011-09-04 04:11:54 +02:00
Igor Zinkovsky
a3d7782c08
enable missing fs functions on windows
2011-09-03 17:45:22 -07:00
Igor Zinkovsky
ee048aa3ab
fix async readdir
2011-09-03 17:44:54 -07:00
Ben Noordhuis
0df8ffe472
uv: upgrade to 6422a14
2011-09-04 02:31:12 +02:00
AJ ONeal
087d210679
docs: explain how url.format works (search trumps query, etc)
2011-09-03 03:29:49 +02:00
Michael Jackson
3bf20e43cf
Fixes #1635 . Fixed typo
2011-09-02 13:01:05 -07:00
Ryan Dahl
197628846d
win: link to psapi.lib
...
broke in 65c2763
2011-09-02 12:53:20 -07:00
koichik
c28f20f880
docs: console.log() refer to util.format().
2011-09-03 01:46:53 +09:00
koichik
28a908471d
crypto: Fix BIO's usage.
...
Fixes #1612 .
Fixes #1296 .
2011-09-03 00:53:47 +09:00
Ben Noordhuis
5ded5e274f
crypto: use X509_get_ext_by_NID(NID_subject_alt_name)
2011-09-03 00:49:37 +09:00
Niclas Hoyer
b7e36f8584
added test case for foaf+ssl client certificate
2011-09-03 00:49:37 +09:00
Niclas Hoyer
7b2536a1a2
Added additional properties to getPeerCertificate, now includes subjectAltName, Exponent and Modulus (FOAF+SSL friendly).
...
Patch written by Nathan,
http://groups.google.com/group/nodejs/browse_thread/thread/1d42da4cb2e51536
2011-09-03 00:49:37 +09:00
Nathan Rajlich
cafcc7e67a
test: add test case for util.isDate() behavior
2011-09-02 17:29:33 +02:00
Nathan Rajlich
44574bc39b
util: improve util.isDate() function
...
The old implementation was fragile. i.e. node-time is an example of a user-land
module that exports an extended Date object (with a few added functions on it's
own Date object's prototype). In that case, the old check fails.
2011-09-02 17:29:20 +02:00
Ryan Dahl
2b0a7d63a8
Upgrade libuv to b89f4f3
2011-09-01 17:44:06 -07:00
Karl Skomski
65c27638ec
Added some win32 platform functions
...
Fixes #1617
2011-09-01 14:56:32 -07:00
Ryan Dahl
3efcbadf6b
Upgrade libuv to 2e60358
...
Fixes #1621 .
2011-09-01 14:16:04 -07:00
Nathan Rajlich
cf24f561a3
repl: don't eval twice when an Error is thrown
2011-09-01 17:15:07 +02:00
Ryan Dahl
84cf0c5280
crypto: set data before sending to thread pool
...
fixes test-crypto
2011-08-31 16:11:08 -07:00
Ryan Dahl
c91ec225e6
Upgrade libuv to 836cc20
2011-08-31 15:59:36 -07:00
Maciej Małecki
8d70cc607c
Show warning when using lib/sys.js
2011-08-31 19:26:34 +02:00
Jeroen Janssen
f013f15c89
fix win32 uv loop breakage
2011-08-31 10:09:44 -07:00
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
...
Required adding uv_default_loop() in many places.
2011-08-31 01:53:30 -07:00
koichik
6f60683802
tls: x509 certificate subject parsing fail
...
Fixes #1568 .
2011-08-31 03:47:23 +09:00
Ryan Dahl
d8f7a8655f
Strip V8 -Werror
2011-08-30 09:44:19 -07:00
isaacs
6b6f2b1d2c
Fixes #1610 Remove DigiNotar CA from trusted list
...
Details:
https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911
http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php
2011-08-30 08:52:49 -07:00
AJ ONeal
8039086470
docs: document querystring behavior for arrays and unassigned parameters
2011-08-30 15:17:05 +02:00
Ben Noordhuis
fe4b7420a3
uv: upgrade to 0ba44cf
2011-08-30 13:09:47 +02:00
Ryan Dahl
b68c6bac96
Fix Windows build
2011-08-30 02:26:29 -07:00
Ryan Dahl
2823ab47dc
Upgrade libuv to ca11711
2011-08-30 01:59:38 -07:00
Igor Zinkovsky
bce41fac94
Use new uv_fs_ apis
...
This will cause master to be unstable for a while as we replace existing eio
calls with uv_fs calls.
2011-08-30 01:36:10 -07:00
Ryan Dahl
1088638725
upgrade libuv to a6ed175
2011-08-30 01:35:54 -07:00
Ryan Dahl
da00ff4999
Upgrade V8 to 3.5.9.1
2011-08-29 15:47:16 -07:00
Ryan Dahl
59fa16f648
Upgrade libuv to cbbb254
...
Fixes #1506
2011-08-29 15:23:20 -07:00
Ryan Dahl
ff7f7ae386
Fixes #1503 . make libuv backend default on unix
2011-08-29 14:01:41 -07:00
Abimanyu Raja
b5144b245b
stdio: fix typo in doc comment
2011-08-29 21:26:58 +02:00
Mikeal Rogers
7c87e092fb
Sockets should never be attached to a ClientRequest before nextTick().
...
This way the API for interacting directly with the socket object is
consistent before and after the Agent pool is exhausted.
Fixes #1601 .
2011-08-29 12:22:19 -07:00
Jann Horn
1a0edbca86
module: remove 'is URL?' check in module loader, dead code
2011-08-29 18:20:58 +02:00
jkummerow@chromium.org
b5643cb2a6
v8: remove unnecessary break-after-return in switch statement
...
BUG=v8:1642
Review URL: http://codereview.chromium.org/7781007
This is a back-port of upstream r9043. Fixes build on OS X 10.5.
2011-08-29 16:00:48 +02:00
Peter Lyons
d2defa3012
test: test for issue #752
2011-08-28 23:49:24 +02:00
Peter Lyons
a4eee3d28f
http: remove 'headers sent?' check in OutgoingMessage.getHeader()
...
Fixes #752 .
2011-08-28 23:47:10 +02:00
Peter Bright
186364e24f
Don't load-time link against CreateSymbolicLink, it doesn't exist on Windows Server 2003.
...
Fixes #1592 .
2011-08-26 19:55:25 -07:00
Igor Zinkovsky
779c93c523
merge vcbuild.bat and generate_projects.bat
2011-08-26 17:06:01 -07:00
Ben Noordhuis
8342f31af9
Now working on 0.5.6
2011-08-27 01:27:52 +02:00
Ben Noordhuis
d2d53d4bb2
Bump version to v0.5.5
2011-08-26 23:24:18 +02:00
Ben Noordhuis
790f13df9c
Fix typo in configure script
2011-08-26 20:38:45 +00:00
Ryan Dahl
7d38a3b81c
Fix build - due to V8 API change
2011-08-26 13:20:27 -07:00
Ryan Dahl
f1996ffebc
Merge remote branch 'origin/v0.4'
...
Conflicts:
AUTHORS
ChangeLog
doc/api/stdio.markdown
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
test/simple/test-child-process-customfd-bounded.js
test/simple/test-console-not-call-toString.js
2011-08-26 13:16:16 -07:00
Ryan Dahl
028908ab7c
Upgrade V8 to 3.5.8
2011-08-26 13:07:04 -07:00
Ryan Dahl
8af0abde3f
prepare for release - website under new user
2011-08-26 10:31:42 -07:00
Ryan Dahl
16b3f2c3ff
Fix dns_uv.lookup order
2011-08-26 10:31:42 -07:00
Ben Noordhuis
5e765fe5e8
uv: upgrade to 835782a
2011-08-26 18:10:35 +02:00
koichik
43cdbec3be
test: simple/test-tls-client-abort fails on SunOS
...
Fixes #1583 .
2011-08-26 23:57:36 +09:00
Bert Belder
6ab4a4c05c
Upgrade libuv to 39aac4a5
2011-08-26 02:39:54 +02:00
Ben Noordhuis
576b11662e
uv: upgrade to 6490c6a
2011-08-26 00:23:17 +02:00
Peter Bright
64b41680fd
Add headers to improve the IDE experience.
2011-08-24 19:12:39 -07:00
Ryan Dahl
90da5339c1
Upgrade libuv to 40efa9c
2011-08-24 17:43:33 -07:00
Ryan Dahl
48918f5503
Reapply Peter Bright's fixes for GYP on MSVS
...
Originally 71333b3f5b
2011-08-24 16:23:12 -07:00
Ryan Dahl
06f750c466
fix windows build
2011-08-24 16:20:14 -07:00
Ryan Dahl
f9dae9e8d6
Add dgram_legacy and dgram_uv to node.gyp
2011-08-24 15:55:57 -07:00
Ben Noordhuis
8f245486aa
net: fix multicast on sunos
...
setsockopt(IP_MULTICAST_TTL|IP_MULTICAST_LOOP) takes an unsigned char as
its argument on sunos.
Partially fixes simple/test-dgram-multicast: test hangs after socket
close but it no longer throws EINVAL exceptions.
2011-08-24 22:46:55 +00:00
Ben Noordhuis
accc34c50f
test: fix simple/test-eval
...
Test expects output of console.error(process.argv) to be spread out
over several lines but if /path/to/node is short, it stays on a single line.
2011-08-25 00:18:39 +02:00
Ryan Dahl
52a40e0fd5
Add process.features.debug; fixes simple/test-executable-path.js
2011-08-24 14:16:35 -07:00
Ryan Dahl
2876141c42
dns_uv: add localhost hack for windows
2011-08-24 13:43:05 -07:00
Ben Noordhuis
2513538109
test: add dgram tests to test-uv list
2011-08-24 22:27:25 +02:00
Ben Noordhuis
48f4b2be2b
docs: remove unix dgram documentation
2011-08-24 22:27:25 +02:00
Ben Noordhuis
bba432f00e
dgram: add socket.fd compatibility hack to dgram_uv.js
2011-08-24 22:27:25 +02:00
Ben Noordhuis
11e3cfce8b
dgram: integrate libuv support for UDP over IPv6
2011-08-24 22:27:24 +02:00
Ben Noordhuis
cbd4033619
dgram: integrate libuv UDP support
2011-08-24 22:27:24 +02:00
Ben Noordhuis
9cb624986c
tcp_wrap: update after libuv API change
2011-08-24 22:27:24 +02:00
Ben Noordhuis
2aefea5a2f
stream_wrap: update after libuv API change
2011-08-24 22:27:24 +02:00
Ben Noordhuis
28998a8cfe
uv: upgrade to 80e5491
2011-08-24 22:27:24 +02:00
Ben Noordhuis
7003d6eff5
Move ARRAY_SIZE macro to node.h
2011-08-24 22:27:24 +02:00
Mikeal Rogers
cdbecc48a1
docs: Improved http2 agent docs
...
Fixes #1517 .
2011-08-25 00:55:51 +09:00
Igor Zinkovsky
19ff87a9db
vcbuild.bat - for building from cmd-line using msbuild
2011-08-23 23:55:11 -07:00
Ryan Dahl
06428d853c
tools/test.py to support marking files a libuv-broken
...
Use
export NODE_USE_UV=1
python tools/test.py --libuv simple pummel
To run the equivalent of "make test-uv".
2011-08-23 23:45:46 -07:00
Ryan Dahl
4e1d6fca8e
Mark tests which are broken in libuv
2011-08-23 23:45:21 -07:00
Ryan Dahl
4fa13152af
Support MSVS build directories in tools/test.py
2011-08-23 19:59:07 -07:00
Nathan Rajlich
8ec31a3362
Use Object.getPrototypeOf() on the object in the REPL tab-completion.
...
Some people use __proto__ to augment an Object's prototype after it's been created.
This patch helps make the "new" prototype properties visible if necessary.
This is also more consistent with the while logic below.
2011-08-23 15:35:36 -07:00
Ryan Dahl
b15ab5de51
Upgrade V8 to 3.5.7
2011-08-23 15:17:57 -07:00
Ryan Dahl
42529ddfb5
waf: Don't build out/Debug/node_g - just out/Debug/node
...
This is to match how GYP does it.
2011-08-23 15:13:09 -07:00
Ryan Dahl
ea156359e9
net_legacy: Fix throw typo
...
Thanks Tobi
2011-08-23 14:27:50 -07:00
Ryan Dahl
a7300c8297
WAF builds in out/ instead of build/
2011-08-23 14:10:39 -07:00
Ryan Dahl
879eb16280
Have WAF variants match GYP configuration names
2011-08-23 14:10:35 -07:00
Ryan Dahl
85f7b78e9b
gyp: Further fixes to target_defaults for mac
2011-08-23 13:19:17 -07:00
Evan Martin
8a29e5ea5b
gyp: Don't pass C++ flags to C compiler, and don't pass -ansi in OpenSSL builds.
2011-08-23 13:19:17 -07:00
Evan Martin
a916d888f2
common.gypi: don't nest "target_defaults" within "target_defaults"
...
The "conditions" block is already within a "target_defaults", so its
children amend target default settings already.
2011-08-23 13:19:17 -07:00
koichik
485d5b5dff
dns: Force the DNS module to invoke callbacks asynchronously.
...
Fixes #1164 .
2011-08-24 03:01:41 +09:00
Ryan Dahl
e3413f08fd
net_uv: throw when people construct net.Socket(fd)
...
Easier to catch compatibility errors.
2011-08-23 02:31:22 -07:00
Ryan Dahl
c4454d2efc
net_uv: Don't error on ECONNRESET
...
Fixes #1571 .
2011-08-22 19:11:38 -07:00
Ryan Dahl
80dd818290
Upgrade GYP to r1010
2011-08-22 17:09:57 -07:00
Ryan Dahl
c2ae39b8d6
gyp: -ldl on linux
2011-08-22 20:07:07 -04:00
Ryan Dahl
cf2e68d960
net_uv: handle read errors
2011-08-22 15:03:27 -07:00
Ryan Dahl
b8d40be611
Upgrade libuv to joyent/libuv@ce20791
2011-08-22 14:52:28 -07:00
Mikeal Rogers
103990b640
Fixes #1531
2011-08-22 14:31:25 -07:00
Maciej Małecki
94963ab39a
Add failing test for https2 compatibility
...
Issue #1531
2011-08-22 14:30:58 -07:00
Ryan Dahl
2e5a8e071e
Update license info for openssl
2011-08-22 11:36:38 -07:00
Peter Bright
0110c90382
Upgrade to 0.9.8r.
...
Build in Win32.
2011-08-22 11:30:47 -07:00
Ryan Dahl
e80cac6225
import openssl from chrome
2011-08-22 11:30:45 -07:00
koichik
1adfd48448
Doc improvements
2011-08-23 00:18:46 +09:00
Ryan Dahl
f5db3f1f85
Fix #1563 . overflow in ChildProcess custom_fd.
2011-08-20 12:39:40 -07:00
Maciej Małecki
962a9e808c
docs: process.memoryUsage returns memory usage measured in bytes
2011-08-20 00:59:31 +02:00
Ryan Dahl
05e6f318c6
Upgrade V8 to 3.5.6
2011-08-18 16:59:30 -07:00
Ben Noordhuis
63607a0304
bench: make number of response body chunks configurable in http_simple
2011-08-17 23:26:23 +02:00
Ben Noordhuis
8e8f36f958
Fix #1546 some more. Remove expensive debug call.
2011-08-17 22:53:42 +02:00
isaacs
711a356468
Close #1544 Document slashesDenoteHost flag in url.parse
2011-08-17 13:43:09 -07:00
Ryan Dahl
8320af7ef3
Merge remote branch 'origin/v0.4'
...
Conflicts:
doc/api/tls.markdown
2011-08-17 13:25:44 -07:00
Ben Noordhuis
d72c6940f8
bench: make http_simple send chunked encoding if requested
2011-08-17 20:39:20 +02:00
koichik
4cf931db17
http: improve compatibility of legacy API
...
In http1, legacy http.Client shares one connection with multiple requests.
But in http2, it uses concurrent connections.
With --use-http1, test/simple/test-http-legacy.js passes.
However, it fails without --use-http1 (use http2).
This improves compatibility of legacy http.Client API between http1 and http2.
Fixes #1530 .
2011-08-17 00:19:55 +09:00
koichik
8293bb8a32
test: refactored http test.
...
Many http tests had used legacy http.Client.
This refactored it to use modern API.
Fixes #1528 .
2011-08-16 23:59:57 +09:00
Antranig Basman
c05936ca13
vm: fix incorrect dispatch of vm.runInContext for argument "filename"
...
Adds test case and documentation for vm.runInContext and vm.createContext.
Fixes #1140 .
2011-08-16 14:50:04 +02:00
Ryan Dahl
72246d97a2
Complete GYP support for Python 2.5.2
2011-08-15 18:26:48 -07:00
Ryan Dahl
e57ed540e6
GYP Support python 2.5.2
2011-08-15 21:18:21 -04:00
Ryan Dahl
b433c42a56
gyp: Support Linux
2011-08-15 21:17:02 -04:00
Mikeal Rogers
584ae7b084
Remove http.cat. fixes #1447
2011-08-16 01:24:41 +02:00
Ryan Dahl
721f26520d
Upgrade GYP to r999
...
To fix osx/make build http://codereview.chromium.org/7618052
2011-08-15 15:47:18 -07:00
Ryan Dahl
66f77963a3
Upgrade GYP to r995
2011-08-15 13:49:15 -07:00
Ryan Dahl
25a5e90289
Fix GYP build on OSX
...
Broken due to DOS line endings.
./configure-gyp
make -f Makefile-gyp
2011-08-15 13:41:07 -07:00
Ben Noordhuis
5e37e10e41
module: fix pointer reference to out-of-scope variable
...
Reported by Tom Hughes.
2011-08-15 20:08:18 +02:00
Nathan Rajlich
54b409d650
util: isRegExp() should not call toString() on its argument
...
An overloaded toString() method may have side effects
so don't call it for a simple type check.
2011-08-15 17:22:48 +02:00
Mickaël Delahaye
e8d268fd5f
Fix docs for fs.*chown
...
Fix bad parameters of fs.chown[Sync], fs.fchown[Sync] and
fs.lchown[Sync] in documentation.
Fixes #1533 .
2011-08-15 22:45:41 +09:00
Bert Belder
9728723508
node_crypto: interface with libuv, not libev
2011-08-15 02:30:35 +02:00
koichik
4d186f270f
Docs: Not memcpy, but memmove
...
Fixes #1520 .
2011-08-14 23:10:36 +09:00
Peter Bright
16788f461a
Rename gyp files to produce useful solution names.
...
Hoist common settings into common.gypi.
Restrict v8's common.gypi to v8 projects.
Ensure v8 doesn't use /MP in debug builds.
Add basic settings for other platforms.
Make uv import common.gypi properly.
Remove LTCG warning.
2011-08-13 19:57:42 -07:00
Thomas Shinnick
a5d90c435c
path.js: correct three harmless .length typos
...
lib/path.js routines normalizeArray() and resolve() have for loops that
count down from end of an array. The loop indexes are initialized using
"array.length" rather than "array.length-1". The initial array element
accessed is always beyond the end of array and the value is 'undefined'.
Strangely, code exists that acts to ignore undefined values so that the
typos are unnoticeable.
Existing tests emit no errors either before or after changing to "length-1".
Tests _do_ start failing at "length-2". (Actually it is node that starts
to fail at "length-2" - that's a valid enough test...)
2011-08-14 04:10:42 +02:00
Ben Noordhuis
bfc2982f10
uv: upgrade to 5899192
2011-08-14 03:15:12 +02:00
Ben Noordhuis
eaac88163a
module: fix pointer reference to out-of-scope variable
...
Reported by Tom Hughes.
2011-08-14 01:25:39 +02:00
Thomas Shinnick
59b815b097
test: add typed arrays to known globals list
2011-08-13 23:51:31 +02:00
Fedor Indutny
c0d8311f6b
small NPN doc fix
...
Fixes #1522 .
2011-08-14 02:51:35 +09:00
Artem Zaytsev
a38bda9fb2
platform: fix GetFreeMemory() on 64 bits freebsd
...
v_free_count is defined as u_int v_free_count (struct vmmeter sys/vmmeter.h:87)
but variable info defined as unsigned long, this cause error on 64-bits systems
because higher 32 bits remain uninitialized
2011-08-12 19:17:05 +02:00
Ben Noordhuis
97b0000c53
build: add src/v8_typed_array.cc to gyp sources list
2011-08-12 18:58:54 +02:00
Ben Noordhuis
cbea40eaf2
typed arrays: fix signed/unsigned compiler warnings
2011-08-12 18:52:06 +02:00
Ben Noordhuis
4726504663
typed arrays: preliminary benchmarks
2011-08-12 18:42:24 +02:00
Ben Noordhuis
efcbe3b21a
typed arrays: add Float64Array
2011-08-12 18:42:24 +02:00
Ben Noordhuis
83b211ecb2
typed arrays: alias method subarray() to slice()
2011-08-12 18:42:24 +02:00
Ben Noordhuis
7cab4d6870
typed arrays: integrate plask's typed array implementation
2011-08-12 18:42:24 +02:00
Glen Low
04122ad2d3
crypto: PBKDF2 function from OpenSSL
2011-08-12 16:23:11 +02:00
Ben Noordhuis
01b64fc36b
uv: upgrade to 7f82995
2011-08-12 16:14:58 +02:00
Brian White
b7c23ac3f5
Incorporate endianness into buffer.read* function names instead of passing in a boolean flag
2011-08-12 15:49:57 +02:00
Ben Noordhuis
a002f4f453
test: enable simple/test-http-dns-error for make test-uv
2011-08-12 15:46:44 +02:00
Ben Noordhuis
028b33b18a
test: add test for #1202 , uncatchable exception on bad host name
2011-08-12 15:46:18 +02:00
Ben Noordhuis
4e204f37fd
net: defer DNS lookup error events to next tick
...
net.createConnection() creates a net.Socket object
and immediately calls net.Socket.connect() on it.
There are no event listeners registered yet so
defer the error event to the next tick.
Fixes #1202 .
2011-08-12 15:42:45 +02:00
Ben Noordhuis
e00c2ec5e3
build: remove 1024 char read limit from cmake file
2011-08-12 15:32:43 +02:00
Ben Noordhuis
3cac57658f
test: add test for #1202 , uncatchable exception on bad host name
2011-08-12 15:23:29 +02:00
Ben Noordhuis
fa378ee4d8
net: defer DNS lookup error events to next tick
...
net.createConnection() creates a net.Socket object
and immediately calls net.Socket.connect() on it.
There are no event listeners registered yet so
defer the error event to the next tick.
Fixes #1202 .
2011-08-12 15:22:56 +02:00
Arnout Kazemier
7ba30a4c2e
Small changes for fs.watchFile. Fixed broken markdown. Changed variable f to a proper filename.
...
Fixes #1507 .
2011-08-12 21:57:58 +09:00
Ryan Dahl
5b58473b40
Now working on v0.5.5
2011-08-12 02:15:19 -07:00
Ryan Dahl
cfba1f5922
Bump version to v0.5.4
2011-08-12 01:17:05 -07:00
Ryan Dahl
6c614fe585
Upgrade libuv to 65f71a2
2011-08-12 01:14:46 -07:00
Ryan Dahl
89bed19513
Upgrade V8 to v3.5.4
2011-08-11 23:59:21 -07:00
Ryan Dahl
fb7faefbf5
Upgrade libuv to d358738
2011-08-11 17:25:55 -07:00
Ryan Dahl
2c11718d79
Add some debug output to test-child-process-double-pipe
2011-08-11 17:25:55 -07:00
Ryan Dahl
3a219de586
net_uv: resume on closed net.Socket shouldn't crash
2011-08-11 17:25:54 -07:00
Ben Noordhuis
3cd694c9f3
build: .gitignore build/ directory
2011-08-12 01:10:41 +02:00
isaacs
ac4791393e
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
2011-08-11 15:36:02 -07:00
isaacs
3210809d0a
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
2011-08-11 15:31:29 -07:00
Ben Noordhuis
eb09b0644b
http: destroy socket on error
...
Needs further investigation, the test passed without `--use-uv`.
Fixes failing test:
test/simple/test-http-dns-fail.js
2011-08-11 23:39:38 +02:00
Ryan Dahl
3d4ae3ab4d
net_uv: pipes don't have getsockname
2011-08-11 10:44:20 -07:00
koichik
d1a2628499
Doc improvements
...
related to #1472 .
2011-08-12 02:00:42 +09:00
Ben Noordhuis
79f064f565
net: properly export remoteAddress to user land
...
Fixes failing test:
test/simple/test-net-remote-address-port.js
2011-08-11 17:51:03 +02:00
Ben Noordhuis
f52a8db280
test: fix logic error in test-net-remote-address-port.js
...
The test intended to register an 'at exit' listener
but called `process.exit()` instead.
2011-08-11 16:26:01 +02:00
Christopher Wright
0d8d04e585
Correct code span
...
Fixes #1489 .
2011-08-11 16:29:37 +09:00
Peter Bright
b9d777734d
Fix MSVS building.
2011-08-11 04:52:33 +02:00
Bert Belder
74e8fa2e57
Upgrade libuv to ca633920f564167158d0bb82989d842a47c27d56
2011-08-11 04:38:41 +02:00
Ben Noordhuis
fcf9cfa137
node: propagate --use-uv to child processes
2011-08-11 02:47:43 +02:00
Ben Noordhuis
ef496dc39d
uv: upgrade to e8497ae
2011-08-11 02:46:02 +02:00
Ryan Dahl
e6b06bc6c5
win: fix test-process-env
...
Remove support for setting process.env.TZ as it doesn't seem we can do it
x-platform without fixing V8.
2011-08-10 17:15:13 -07:00
Ben Noordhuis
e62cdd0488
uv: upgrade to b328e4c
2011-08-11 01:40:16 +02:00
Ben Noordhuis
c4549b8573
uv: upgrade to b6b97f3
2011-08-11 00:37:45 +02:00
Ben Noordhuis
460614125b
tcp: propagate libuv tcp accept() errors to net_uv.js
2011-08-11 00:36:58 +02:00
Ryan Dahl
46b0654347
Upgrade libuv to db190c7
2011-08-10 14:23:26 -07:00
Ryan Dahl
72c412767d
net_uv: Handle failed shutdown req
2011-08-10 14:09:39 -07:00
Ryan Dahl
c171a0851a
Add test-pipe-file-to-http to test-uv
2011-08-10 13:33:22 -07:00
Ryan Dahl
4f03f1bead
net_uv: fix test/simple/test-pipe-file-to-http.js
2011-08-10 13:27:11 -07:00
Ryan Dahl
35d0df919a
test: Allow common.ddCommand to be run in presence of existing file
2011-08-10 11:32:37 -07:00
Ryan Dahl
4983bd348d
x-platform func for spawning pwd in tests
...
Fixes test-child-process-buffering
2011-08-10 11:23:55 -07:00
Bert Belder
43da0e6fe4
Explicitly disable cr/lf conversion for test fixtures
...
Otherwise git's autocrlf feature makes test fail on windows.
2011-08-10 19:59:37 +02:00
Bert Belder
c96ef84427
Revert "Make test-sync-fileread pass even when git cr/lf conversion is enabled"
...
We'll solve this problem with a .gitattributes file.
This reverts commit 27ef0b0903 .
2011-08-10 19:59:36 +02:00
Fedor Indutny
942f8b5afb
Add NPN and SNI documentation.
...
Fixes #1420 .
Fixes #1426 .
2011-08-10 09:44:35 -07:00
Bert Belder
27ef0b0903
Make test-sync-fileread pass even when git cr/lf conversion is enabled
2011-08-10 04:30:31 +02:00
Bert Belder
764dfbb1bf
Open files in binary mode, on msvc too
2011-08-10 04:23:44 +02:00
Ryan Dahl
3ce4adf3c6
Remove unnecessary line
2011-08-09 18:05:57 -07:00
Ryan Dahl
b3bc009a89
Fix test-net-server-on-fd-0 for windows by removing assert
...
Rename to regression test for GH-746 as the fd 0 behavior was not what the
bug report was about.
2011-08-09 18:01:54 -07:00
Ryan Dahl
501b0b91be
Add fixed tests to test-uv
2011-08-09 17:46:29 -07:00
Ryan Dahl
3b0f2cecff
Fix dd command tests for Windows
2011-08-09 17:43:57 -07:00
Ryan Dahl
665a4e4a1d
Fix test/simple/test-repl
2011-08-09 16:38:48 -07:00
Ryan Dahl
03a119eb70
Improve win compat of test-repl
2011-08-09 16:07:16 -07:00
Tom Hughes
421b6e89aa
crypto: fix incorrect ssl shutdown check
2011-08-09 23:56:00 +02:00
Tom Hughes
25118b0a26
net: fix incorrect sizeof()
2011-08-09 23:56:00 +02:00
Tom Hughes
94db871ecf
crypto: fix incorrect ssl shutdown check
2011-08-09 23:54:49 +02:00
Tom Hughes
a8692a0154
net: fix incorrect sizeof()
2011-08-09 23:54:31 +02:00
Ryan Dahl
0696e78d64
Improve assert error messages
...
1. actual and expected should be displayed in the same order they were given
2. long values should be truncated.
2011-08-09 14:20:06 -07:00
Ben Noordhuis
fd1fc5080f
eio: define HAVE_UTIMES 1 on cygwin, fixes build
...
Fixes #1483 .
2011-08-09 22:57:09 +02:00
Ryan Dahl
acc120a37b
windows: fix test-umask
2011-08-09 13:55:04 -07:00
Ryan Dahl
bf6b5299b4
Upgrade libuv to e5f513c
2011-08-09 12:26:54 -07:00
Ryan Dahl
cbecd88199
Readd the static libpthread-win32 libraries
2011-08-09 12:25:26 -07:00
Ryan Dahl
9e5cd012e2
Revert "Unify configure scripts"
...
This reverts commit 71435ede81 .
2011-08-09 10:19:48 -07:00
Ryan Dahl
2689d262ec
Make buffer.INSPECT_MAX_BYTES public for mscdex
2011-08-08 19:04:34 -07:00
Ryan Dahl
7332c4022f
Truncate Buffer.inspect at 50 bytes
2011-08-08 17:50:43 -07:00
Ryan Dahl
ab0b1f9f13
Fix test-executable-path
2011-08-08 17:35:26 -07:00
Ryan Dahl
2126989a32
Fix test-http-upgrade-server and test-http-parser
...
Problem was introduced in last http-parser upgrade which fixed a long
standing bug with the upgrade event and removed several callbacks.
2011-08-08 17:12:26 -07:00
Robert Mustacchi
0df08c6a0c
Endian argument should be a boolean. Signed integers shouldn't run through checks for unsigned integers. Clean up jslint. Provide unchecked uint entry points.
2011-08-08 17:01:57 -07:00
Ryan Dahl
f145e35a93
Tests should point at the build directory until GYP is default
2011-08-08 17:01:44 -07:00
Ryan Dahl
df22ccb0de
Merge branch 'gyp'
2011-08-08 16:22:41 -07:00
Ryan Dahl
587f6c3117
Fix test-child-process-exec-cwd.
2011-08-08 16:17:18 -07:00
Ryan Dahl
71435ede81
Unify configure scripts
2011-08-08 15:09:42 -07:00
Ryan Dahl
c110fbcc99
Revert "Remove scons"
...
This reverts commit bd270b48a7 .
2011-08-08 14:15:51 -07:00
Ryan Dahl
09f2d386df
Upgrade libuv to 75c10905
2011-08-08 14:14:47 -07:00
Ryan Dahl
03b5831f90
Bring back old Makefile and configure script
...
GYP and WAF need to live in parallel for some time.
2011-08-08 14:12:44 -07:00
Ryan Dahl
d53fccbce5
Fix MSVS build
2011-08-08 12:32:34 -07:00
Ryan Dahl
db1bf679d8
Move GYP file to the project root
2011-08-08 12:11:48 -07:00
Ryan Dahl
f03ea7045c
generate-project.bat: Point at the right path
2011-08-08 10:25:55 -07:00
Ryan Dahl
f57d70d3c9
sketch out configure support
2011-08-08 08:55:39 -07:00
Ben Noordhuis
f69822c70e
http2: reword confusing comment
2011-08-08 17:38:50 +02:00
koichik
d439c092c2
Improve util.format() compatibility with browser.
...
Fixes #1434 .
2011-08-08 23:24:05 +09:00
Mikeal Rogers
24a1f6ecc5
Fixes https host header default port handling.
2011-08-07 17:37:56 -07:00
isaacs
ef35f4d6c1
Test for default host headers on default ports in https and http
2011-08-07 17:37:56 -07:00
Ben Noordhuis
fc57df283c
docs: rename readline.md to readline.markdown
2011-08-08 00:59:14 +02:00
Tom Hughes
b267dc458d
cmake: Various fixes.
...
* Allow overriding install path with CMAKE_INSTALL_PREFIX.
* make sure js2min.py can be found when building out of source.
* Replace empty macros with void(0).
Expressions like "debug(x) && foo()" fail if debug(x) is an empty macro.
* Make sure node-natives.h creation is deterministic.
* Fix version string.
The copyright header made the node_version.h file larger
than the previously set file read limit.
2011-08-08 00:57:30 +02:00
Ben Noordhuis
d5c95f02af
docs: rename readline.md to readline.markdown
2011-08-08 00:56:04 +02:00
Ryan Dahl
13d685bdab
symlink in ./node and ./node_g for make users
2011-08-07 14:54:37 -07:00
Ryan Dahl
b031429dc3
Add generate-projects.bat
2011-08-07 14:54:14 -07:00
Ben Noordhuis
54bb53bf32
docs: fix typo in tls API docs
2011-08-07 23:30:03 +02:00
Peter Bright
e38fc6cc84
Disable optimization in debug builds.
...
Enable full optimization in release builds.
2011-08-07 14:22:59 -07:00
Peter Bright
588ef72ce0
Silence VC++ warnings about use of badly-designed parts of the C library.
2011-08-07 14:22:45 -07:00
Peter Bright
bcff53dfb5
Fix missing prototype warnings.
2011-08-07 14:22:34 -07:00
Peter Bright
79d9f62946
Fix bad platform name.
2011-08-07 14:22:17 -07:00
Ryan Dahl
cafe446f42
Add 'make test' and friends
2011-08-07 01:24:00 -07:00
Peter Bright
6ac8c55989
Make MSVS build.
...
MSVS settings don't actually need to be guarded by conditions. gyp will do
the right thing.
2011-08-06 22:39:28 -07:00
Peter Bright
b88c48177a
V8 GYP should attempt to not use cygwin.
2011-08-06 20:13:50 -07:00
Peter Bright
71333b3f5b
Modify GYP scripts for VC build
2011-08-06 19:53:11 -07:00
Ryan Dahl
5aa75ebe71
Upgrade libuv - it now depends on pthreads
2011-08-06 19:11:55 -07:00
Ben Noordhuis
ad31e5af56
build: don't try to ls -lh executables that don't exist
...
Avoids `ls: cannot access build/debug/node_g: No such file or directory`.
Not an actual error but it confuses people.
2011-08-07 00:09:08 +02:00
Logan Smyth
3056c2ca76
Add documentation for SecurePair and its 'secure' event.
...
Fixes #1443 .
2011-08-06 23:31:17 +09:00
Ryan Dahl
3ebbf6ebf7
Complete eio upgrade
2011-08-06 03:47:09 -07:00
Ryan Dahl
610436f242
clean merge scabs
2011-08-06 03:46:41 -07:00
Ryan Dahl
88afc406ca
Upgrade libuv to 48877ed
2011-08-06 03:38:11 -07:00
Peter Bright
13d6a1f67f
Basic VC++ compatibility work.
2011-08-06 03:31:29 -07:00
Ryan Dahl
bd270b48a7
Remove scons
2011-08-06 03:12:09 -07:00
Ryan Dahl
bef9f56cac
Bring gyp into the tools directory; handwritten makefile
2011-08-06 03:12:08 -07:00
Ryan Dahl
466cbfef1b
gyp: fix makefile build
2011-08-06 03:12:08 -07:00
Ryan Dahl
7a38b63358
gyp fix build again
2011-08-06 03:12:08 -07:00
Ryan Dahl
4eeeb756bc
gyp: Fix build
2011-08-06 03:12:07 -07:00
Ryan Dahl
f038252ba5
add build/gyp_node build script
2011-08-06 03:12:07 -07:00
Ryan Dahl
51ffed1cd0
Upgrade libuv for gyp reasons
2011-08-06 03:12:07 -07:00
Ryan Dahl
43d7cfca18
gyp: fix test runner
2011-08-06 03:12:06 -07:00
Ryan Dahl
a979ab9d99
Improve gyp build - now works kind of
2011-08-06 03:12:06 -07:00
Ryan Dahl
f55f478523
add deps/v8/build ???
2011-08-06 03:12:06 -07:00
Ryan Dahl
bea4827de0
More progress with gyp
2011-08-06 03:12:05 -07:00
Ryan Dahl
518430db3a
WIP
2011-08-06 03:12:05 -07:00
Ryan Dahl
81a999c954
Upgrade libuv for gyp support
2011-08-06 03:11:33 -07:00
Ryan Dahl
4f3c8b3972
WIP
2011-08-06 03:11:33 -07:00
Ryan Dahl
c3ccbea5cd
Upgrade http_parser to 965f91bc76b2d1601e23
2011-08-06 03:04:42 -07:00
koichik
bbb38b8918
[doc] add link to npm search in Readme.md
...
Fixes #1459 .
2011-08-06 15:25:40 +09:00
Tony Huang
891a6f24a0
add the document of the new api routine: path.relative
2011-08-06 15:02:25 +09:00
Bert Belder
9e8d812ce9
Make test-child-process-exec-env work on windows
2011-08-05 22:57:45 +02:00
Bert Belder
567470b136
Child processes: support windowsVerbatimArguments option
2011-08-05 22:57:45 +02:00
Ben Noordhuis
69ce415d38
uv: fix build on systems that don't have pipe2()
...
This is libuv commit 2fbcbe9, cherry-picked for node.
2011-08-05 17:16:47 +02:00
koichik
ae77b4d553
Doc improvements
...
Documents util.format().
Thanks @bnoordhuis and @shigeki.
Fixes #1424 .
2011-08-05 23:42:24 +09:00
Bert Belder
0878293120
Upgrade libuv to c834d5de9e4747e5138bed9140320b44622ab6de
2011-08-05 09:15:04 +02:00
Ben Noordhuis
30d20cf405
Revert commits 12c8b27 and 88f416a, fixed properly in 2fe4558.
2011-08-05 04:29:16 +02:00
Ben Noordhuis
2fe4558c10
uv: cherry-pick libuv commit 041d60e into node
...
Fixes execve-after-fork race in uv_spawn().
2011-08-05 04:27:18 +02:00
Ben Noordhuis
5a49522ba7
child process: don't send signal if process is already terminated
...
Fixes failing test test/simple/test-exec-max-buffer.js
2011-08-04 21:28:49 +02:00
Ryan Dahl
eeece4f5ea
Upgrade V8 to 3.5.3
2011-08-04 12:18:09 -07:00
Ben Noordhuis
b8c8e9c113
net_uv: add listenFD shim that throws when called
2011-08-04 21:05:42 +02:00
Ben Noordhuis
2bbb468428
child process: bind to libuv's kill process API
...
Fixes failing test test/simple/test-child-process-kill.js
2011-08-04 18:40:41 +02:00
Ben Noordhuis
ac722bbed6
module: strip byte order marker when loading *.js and *.json files
...
BOMs make V8 raise a 'SyntaxError: Unexpected token ILLEGAL' exception.
Fixes #1440 .
2011-08-04 16:52:55 +02:00
Ben Noordhuis
f9cfd70946
test: fix bad test in test-cli-eval.js
...
The test checked that stdout was empty. Forgetting to escape brackets
in the argument to --eval made that true on UNIX systems: the error
was written to stderr.
Props to Peter Bright for reporting the issue.
2011-08-04 16:43:11 +02:00
Ben Noordhuis
0c4e735401
ev: fix infinite loop in ev_walk()
2011-08-04 01:38:53 +02:00
Ben Noordhuis
88f416a5ed
docs: add race warning to child_process.kill()
2011-08-03 16:50:47 +02:00
Ben Noordhuis
12c8b27e24
test: fix exec-after-fork race in test/simple/test-child-process-kill.js
2011-08-03 16:05:49 +02:00
Bert Belder
09bb1d64dc
Upgrade libuv to ec143961d135adb3f49f5a2322774ef43e2520b9
2011-08-03 01:45:03 +02:00
Bert Belder
6efc86df6a
Upgrade libuv to dbaddc4423d61fa16cca299650f8378cffba9cce
2011-08-03 00:27:16 +02:00
Ben Noordhuis
38f948a373
http: make http2 the default, legacy backend is available with --use-http1
...
Fixes #1441 .
2011-08-02 23:40:56 +02:00
Mikeal Rogers
48dcb905f6
Update tests for http2.
2011-08-02 12:12:14 -07:00
Bert Belder
a962cca390
V8: Don't use mprotect on Cygwin as virtual memory is managed directly via WinAPI calls.
...
Upstream fix: http://codereview.chromium.org/7549009
2011-08-02 18:38:35 +02:00
Bert Belder
91ecfbcae8
Remove platform_win32_winsock
2011-08-02 18:38:34 +02:00
Ryan Dahl
158bfab922
Now working on v0.5.4
2011-08-02 01:08:01 -07:00
Ryan Dahl
4585330afe
Bump version to v0.5.3
2011-08-02 00:17:41 -07:00
Ryan Dahl
21964fa779
Upgrade libuv to b2ed24d
2011-08-02 00:16:15 -07:00
Ryan Dahl
8ace421bfd
Complete removal of node_child_process_win32.cc
2011-08-01 22:51:14 -07:00
Ryan Dahl
3ce671284b
Remove node_child_process_win32.cc
2011-08-01 22:34:16 -07:00
Ryan Dahl
6d5218bc7d
Merge branch 'v0.4'
...
Conflicts:
doc/api/crypto.markdown
doc/api/modules.markdown
src/platform_win32.cc
2011-08-01 21:52:03 -07:00
Igor Zinkovsky
a6e0a91a70
windows: remove dependency on rpcrt4 and ole32
2011-08-01 20:44:27 -07:00
Ryan Dahl
89b14fc0ff
Upgrade libuv to 2e9a743
2011-08-01 20:26:26 -07:00
Igor Zinkovsky
1c09cc1550
windows: set stdio streams to binary mode
2011-08-01 18:30:13 -07:00
Bert Belder
70bf121f21
Partial fix for test-child-process.cwd on windows
2011-08-02 03:27:19 +02:00
Ryan Dahl
2908f323e1
win: fix test-child-process-exec-cwd
2011-08-01 17:40:57 -07:00
Ryan Dahl
a44748b3d7
win2k3: fix test-child-process-env
2011-08-01 17:18:01 -07:00
Ryan Dahl
bceab40b02
Upgrade libuv to c35548a
2011-08-01 17:06:03 -07:00
Ben Noordhuis
e1bb241b51
test: add targets test-http2 and test-all-http2
...
Passes `--use-http2` to node. Fixes #1430 .
2011-08-02 01:52:24 +02:00
Ben Noordhuis
e0d7c2cfa3
Upgrade libuv to 404d697
2011-08-02 01:16:58 +02:00
Ryan Dahl
99c15e5661
child_process_uv: don't attempt to pass test-child-process-deprecated-api
2011-08-01 16:05:57 -07:00
Ryan Dahl
ced0b14185
Add test-tls-securepair-server to test-uv
2011-08-01 16:02:23 -07:00
Ryan Dahl
e3ac47771c
child_process_uv: fix test-child-process-stdin and -ipc
2011-08-01 15:40:44 -07:00
Tom Hughes
707b1dee84
cmake: Update for libuv.
2011-08-01 15:14:14 -07:00
Ryan Dahl
76fd364dfe
Upgrade libuv to 5af7423f
2011-08-01 14:49:58 -07:00
Igor Zinkovsky
925b467a4e
fix test-child-process-env on windows
2011-08-01 14:49:10 -07:00
Ryan Dahl
1710bea355
Add a few more asserts to test/simple/test-child-process-stdin.js
2011-08-01 14:48:45 -07:00
Ben Noordhuis
7c07e75db9
Upgrade libuv to b700896
2011-08-01 22:26:28 +02:00
Ryan Dahl
c48b2a98d8
windows: Fix test-module-load-list
2011-08-01 12:09:05 -07:00
Ryan Dahl
9166f85285
Remove debug code
2011-08-01 10:28:32 -07:00
Ryan Dahl
b30ad11b59
child_process_uv: Handle spawn errors
2011-08-01 10:22:24 -07:00
Ben Noordhuis
8da4831ed0
Upgrade libuv to 023f99a
2011-08-01 18:16:27 +02:00
Ryan Dahl
f0f941a59e
link to rpcrt4 and ole32 on win32
2011-07-31 18:19:37 -07:00
Ryan Dahl
baa6a925c2
Upgrade libuv to e9bee51
2011-07-31 18:13:05 -07:00
Ryan Dahl
624dd38d89
child_process_uv: fix test/simple/test-child-process-env
2011-07-31 17:51:43 -07:00
Ryan Dahl
ef767a152b
child_process_uv: fix simple/test-child-process-cwd
2011-07-31 16:50:53 -07:00
Ryan Dahl
19a62589b2
child_process_uv: add exec, fix simple/test-child-process-exec-cwd
2011-07-31 16:24:29 -07:00
Ryan Dahl
4ac633bf21
Forgot to add child_process_uv.js
2011-07-31 16:00:47 -07:00
Ryan Dahl
7772f21b60
initial pass at lib/child_process_uv.js
2011-07-31 15:58:10 -07:00
koichik
d3d8f1b972
Add %% escape to util.format()
...
Fixes #1273 .
2011-07-30 23:56:17 +09:00
Paul Querna
5501a5a641
Add stdlib include for free(), fixing build on linux after f01b241
2011-07-29 18:28:12 -07:00
Ryan Dahl
f01b241057
add wrapper for uv_spawn
...
process.binding('process_wrap')
2011-07-29 18:03:44 -07:00
Ben Noordhuis
874260b40f
util: add sprintf-like format() function
...
Fixes #1407 .
2011-07-30 02:11:31 +02:00
Fedor Indutny
9010f5fbab
Add support for TLS SNI
...
Fixes #1411
2011-07-29 16:57:28 -07:00
Ryan Dahl
9dd979228d
Upgrade libuv to 7108ca88
2011-07-29 15:43:56 -07:00
Robert Mustacchi
de0b8d601c
jslint cleanup: path.js, readline.js, repl.js, tls.js, tty_win32.js, url.js
2011-07-29 11:58:02 -07:00
isaacs
703a1ffe52
Revert "AMD compatibility for node"
...
This reverts commit 9967c369c9 .
Conflicts:
test/simple/test-module-loading.js
2011-07-29 11:56:38 -07:00
koichik
c72223e2a9
Doc improvements
...
related to #1391 , #1415 .
2011-07-30 03:18:33 +09:00
koichik
bffb758243
Fix http.ClientRequest crashes if end() was called twice
...
Fixes #1417 .
Fixes #1223 .
2011-07-30 00:47:54 +09:00
koichik
62aaf56d1b
Fix http.ClientRequest crashes if end() was called twice
...
Fixes #1417 .
Fixes #1223 .
2011-07-30 00:47:17 +09:00
koichik
8b3ba47f88
Fix http.ClientRequest crashes if end() was called twice
...
Fixes #1417 .
Fixes #1223 .
2011-07-30 00:07:37 +09:00
Fedor Indutny
759fb36df3
crypto: dispose persistent properties on class destruction
2011-07-28 15:16:04 +02:00
Ryan Dahl
799c7bdcb6
Fix test-module-load-list for use-uv
2011-07-27 20:03:02 -07:00
Ryan Dahl
8527f00c3c
Lazy load a few modules
2011-07-27 19:54:31 -07:00
Ryan Dahl
ea9ee1fb7e
Add process.moduleLoadList for better startup transparency
2011-07-27 19:30:32 -07:00
Ryan Dahl
bca6e35b2b
Don't always enable debug on startup
...
Improves startup time. Problem introduced in
4ab5476e89
2011-07-27 17:33:06 -07:00
Ryan Dahl
497fe79f97
Speed up startup time
...
Reverts 2a05fe784d .
2011-07-27 16:36:05 -07:00
Ryan Dahl
1ca5b6cd05
Remove pkg-conf file
2011-07-27 16:21:54 -07:00
Tom Hughes
eab8bebced
Fix memleak in libeio.
2011-07-27 23:24:55 +02:00
Ben Noordhuis
8430148ccb
uv: upgrade to fc7bc2b
2011-07-27 20:10:11 +02:00
Aku Kotkavuo
562bef5ff3
Add missing parentheses in buffer docs.
...
Fixes #1405 .
2011-07-27 23:12:17 +09:00
Ben Noordhuis
83b82f900f
wrap: upgrade pipe_wrap and tcp_wrap to new libuv API
2011-07-27 04:13:49 +02:00
Igor Zinkovsky
187fe27a6e
stdio binding + javascript to enable process.stdin.listen()
2011-07-27 03:59:33 +02:00
Ben Noordhuis
de261713bf
uv: upgrade to a1adfe3
2011-07-27 03:54:00 +02:00
SAWADA Tadashi
d3a84bea7b
Fix crypto encryption/decryption with Base64.
...
Fixes #738 .
Fixes #1205 .
2011-07-27 00:19:02 +02:00
Ben Noordhuis
2d65f3c59a
Include "platform.h", not <platform.h> - conflicts with system headers
...
Fixes #1003 .
2011-07-26 22:09:03 +02:00
Ben Noordhuis
a7bdaabf60
Include "platform.h", not <platform.h> - conflicts with system headers
...
Fixes #1003 .
2011-07-26 22:05:08 +02:00
Felix Geisendörfer
1b3ebc32d7
Fix test-net-stream.js
...
I broke this in 09ee293 .
2011-07-26 17:31:08 +02:00
Ben Noordhuis
0082ef271e
http: add --use-http2 switch
2011-07-26 17:00:53 +02:00
Ben Noordhuis
2ed23314c3
http: make http and http2 co-exist
...
http2 is currently disabled pending addition of a --use-http2 switch
2011-07-26 17:00:53 +02:00
Mikeal Rogers
915fa1e44f
doc: http2 documentation
2011-07-26 17:00:53 +02:00
Mikeal Rogers
2b929c7f19
http: http2 implementation
2011-07-26 16:59:52 +02:00
Felix Geisendörfer
09ee29318f
Emit 'close' after all connections have closed
...
Fixes #1383
2011-07-26 11:07:17 +02:00
Ben Noordhuis
df3a8fcb62
cli: don't print result of --eval
...
Fixes #572 .
2011-07-25 23:59:10 +02:00
koichik
d32971a8cb
Doc improvements and change argument name.
...
Fixes #1318 .
2011-07-25 23:57:25 +09:00
Ben Noordhuis
deb100fb17
eio: remove trailing comma from enumerations
...
Fixes compile-time error in strict mode. Fixes #567 .
2011-07-25 15:37:21 +02:00
Alexander Uvarov
216829e752
Docs for Socket::bytesRead, Socket::bytesWritten
2011-07-25 13:29:03 +02:00
Alexander Uvarov
14b75a126f
Add Socket::bytesRead, Socket::bytesWritten
2011-07-25 13:28:38 +02:00
isaacs
c050d0fa19
Finish removing require.paths
...
Fix require() completion bug in repl, and correct man output
2011-07-24 18:04:45 -07:00
isaacs
bf0802402d
Note that require.paths is gone in 0.5
...
Rather than say it "may disappear", let's just be clear that it *has*
disappeared, and exactly how long it'll be supported for.
2011-07-24 17:18:33 -07:00
Stefan Bühler
db993956d6
Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231
...
Fixes #324 .
Fixes #1027 .
Instead of converting buffers to strings and back again to char array
directly use the buffer data in hmac_init (same as in hmac_update).
2011-07-24 19:48:18 +09:00
Ben Noordhuis
aa0308d618
process: add process.features, remove process.useUV
...
Partially fixes #1385 .
2011-07-23 23:16:48 +02:00
koichik
50e147bd03
Add an optional length argument to Buffer.write()
...
Fixes #243 .
Fixes #1361 .
2011-07-24 02:01:02 +09:00
Daniel Pihlström
fa829b0fd3
convert nonbuffer data to string in fs.writeFile/Sync
...
Fixes #657 .
2011-07-23 23:56:08 +09:00
Jeroen Janssen
2fe780b36c
build: add wscript detection for node_version
2011-07-23 16:23:01 +02:00
SAWADA Tadashi
e357acc55b
Fix crypto encryption/decryption with Base64.
...
Fixes #738 .
Fixes #1205 .
2011-07-23 21:56:41 +09:00
Vicente Jimenez Aguilar
b8e9bf0993
Typos in ChangeLog file.
...
Fixes #968 .
2011-07-23 21:16:45 +09:00
koichik
3eb246485a
Doc improvements
2011-07-23 14:29:13 +09:00
Bert Belder
7a6a77e07c
Windows/cygwin: no more GetConsoleTitleW errors on XP
2011-07-22 21:06:51 +02:00
Ryan Dahl
82905fa3aa
Now working on v0.5.3
2011-07-22 11:51:43 -07:00
Bert Belder
78487b6256
Windows/cygwin: no more GetConsoleTitleW errors on XP
2011-07-22 16:33:55 +02:00
Ryan Dahl
08ffce1a00
Bump version to v0.5.2
2011-07-22 03:55:26 -07:00
Bert Belder
9e77b1a82e
Upgrade libuv to 2806b0386b266ee7377459b49156a60a15b1dfea
2011-07-22 12:23:56 +02:00
Ryan Dahl
0ed1354119
Merge branch 'v0.4'
...
Conflicts:
ChangeLog
deps/v8/src/version.cc
doc/index.html
src/node_version.h
test/simple/test-url.js
wscript
2011-07-22 03:10:38 -07:00
Ryan Dahl
daead5f5bb
win: fix simple/test-tls-client-abort.js
2011-07-22 02:11:02 -07:00
Ryan Dahl
8eb1edc8ea
net_uv: Fix test-net-server-bind
2011-07-22 01:20:27 -07:00
Ryan Dahl
fea524e145
Merge branch 'V8-3.4'
2011-07-21 22:20:54 -07:00
Ryan Dahl
f319e12621
Upgrade V8 to 3.4.14
2011-07-21 22:20:37 -07:00
Ben Noordhuis
984dc057e3
net_uv: throw if Server.prototype.close() is called twice
...
Follows net_legacy behaviour.
2011-07-22 01:23:50 +02:00
Ben Noordhuis
345df289eb
test: test pipe API with raw net.Stream() object
...
Test case for #1379 .
2011-07-22 00:54:50 +02:00
Ben Noordhuis
8ddb334c2a
net_uv: emit 'close' event in Server.prototype.close()
2011-07-22 00:54:50 +02:00
Ben Noordhuis
07bcdc2f51
net_uv: release uv handle in Socket.prototype.destroy()
2011-07-22 00:54:50 +02:00
Ben Noordhuis
59b04427d3
net_uv: defer handle creation to connect() or bind() time
...
Fixes #1379 .
2011-07-22 00:54:50 +02:00
Ryan Dahl
20ced0ea1e
Add tls tests to test-uv
2011-07-21 15:42:08 -07:00
Ryan Dahl
a6a3bf6d47
escape backslashes for windows pipe name
2011-07-21 14:19:24 -07:00
Ryan Dahl
a0198d065d
Remove logos from package
2011-07-21 13:39:53 -07:00
Ben Noordhuis
4b77626add
test: make test-http-unix-socket use common.PIPE
...
Don't unlink the socket, that's the responsibility of libuv and/or node.
2011-07-21 21:27:01 +02:00
Ben Noordhuis
725fcf5587
test: add test-net-pingpong to make test-uv list
2011-07-21 21:27:01 +02:00
Ben Noordhuis
bff9602966
test: add common.PIPE, pipe name for tests
2011-07-21 21:26:57 +02:00
koichik
691497babe
Doc improvements
...
corresponds to #1374 and #1334 .
2011-07-22 00:20:47 +09:00
Bert Belder
4d3a907f73
Upgrade libuv to 1028a9c6a75fde47b848c09c450fc066249fac1b
2011-07-21 15:41:28 +02:00
Bert Belder
3de406cc58
Add tests for process.nextTick bugs on windows
...
These are supposed to pass w/ libuv, so add them to the test-uv tests.
2011-07-21 15:26:10 +02:00
Trent Mick
bbf7e8ed5e
http: fix setting ServerResponse.statusCode in writeHead
...
Fixes #1374 .
2011-07-21 14:20:40 +02:00
Trent Mick
a8f96d3314
http: fix setting ServerResponse.statusCode in writeHead
...
Fixes #1374 .
2011-07-21 14:15:33 +02:00
Yoshihiro Kikuchi
d3d776f978
test: added test/simple/test-fs-watch-file.js
2011-07-21 13:36:11 +02:00
Yoshihiro Kikuchi
3c4c36068e
fs: added an argument check in fs.watchFile
...
Fixes #1324 .
2011-07-21 13:35:47 +02:00
Ryan Dahl
133036fdad
upgrade libuv to 6e50576
2011-07-20 19:57:03 -07:00
Ben Noordhuis
1b89323e92
uv: back-port c4611a4 from libuv
2011-07-21 03:51:23 +02:00
Ben Noordhuis
53aac9dde6
uv: upgrade to afc9987
2011-07-21 03:51:23 +02:00
Ben Noordhuis
0c396c05fd
test: beef up checks in test-http-unix-socket.js, add to make test-uv
2011-07-21 03:51:23 +02:00
Ben Noordhuis
37cbc355d5
net: add bindings to libuv pipe API
2011-07-21 03:51:23 +02:00
isaacs
588d885e81
Close #1357 Load json files with require()
...
Signed off by everybody.
2011-07-20 17:39:23 -07:00
Ben Noordhuis
1b0e054737
url: throw descriptive error if url argument to parse() is not a string
...
Fixes #568 .
2011-07-21 00:51:48 +02:00
Ben Noordhuis
6f0740e67b
crypto: check for SSL_COMP_get_compression_methods()
...
Function was named SSL_COMP_get_compression_method() (singular)
in OpenSSL 0.9.7 and older.
Fixes #1242 .
2011-07-20 22:24:11 +02:00
Ryan Dahl
0599cb7afa
process.stdout/process.stderr should use net_legacy for now
2011-07-20 11:08:43 -07:00
Ben Noordhuis
9cc2bd11d3
Upgrade libuv to ce5eb6d
2011-07-20 18:06:16 +02:00
Ryan Dahl
effc4469d0
Now working on v0.4.11
2011-07-20 00:37:26 -07:00
Ryan Dahl
1b8dd65d6e
Bump version to v0.4.10
2011-07-19 23:51:42 -07:00
Ryan Dahl
58655da3aa
Use ms instead of sec for gc idle times
...
We were calling V8::IdleNotification too often.
2011-07-19 16:18:13 -07:00
Ryan Dahl
e3c1cf3b5b
Remove toc on logo page
2011-07-19 15:01:05 -07:00
isaacs
ddfc6b78cc
Close #1360 url: Allow _ in hostnames.
2011-07-19 11:56:44 -07:00
isaacs
dcecfc5f1b
Close #1360 url: Allow _ in hostnames.
2011-07-19 09:55:01 -07:00
Reid Burke
973153d1cc
Properly respond to HEAD during end(body) hot path
...
During write(), _hasBody is checked to make sure a body
is allowed -- this is now also checked during end(body)
when write() isn't used.
Concise final chunk for HEAD req's res.end(data).
Instead of simply clearing data, check _hasBody
earlier to avoid sending cruft when chunkedEncoding
is used.
Fixes #1291 .
2011-07-20 00:24:17 +09:00
Ryan Dahl
87d974bb8f
complete upgrade
2011-07-19 02:50:33 -07:00
Ryan Dahl
62f7c7961d
Upgrade libuv to d4563a1
2011-07-19 02:47:15 -07:00
Ryan Dahl
6050af4fd7
net_uv: properly initialize writeQueueSize
...
Fixes simple/test-tcp-wrap-listen.js
2011-07-19 02:19:27 -07:00
Ryan Dahl
061ce7b0ac
net_uv: Fix simple/test-http-expect-continue.js
2011-07-19 02:04:34 -07:00
Ryan Dahl
4ef8f06fe6
Finally remove node::EventEmitter
2011-07-19 01:46:38 -07:00
Ryan Dahl
0a3fc1d9c8
Remove StatWatcher's dep on C++ EventEmitter
2011-07-19 01:23:50 -07:00
Ryan Dahl
2e16ae703e
Upgrade libuv to 4eff34da4
2011-07-18 16:26:37 -07:00
Ryan Dahl
85404c5c55
Move HandleWrap rules to one place
2011-07-18 13:47:56 -07:00
Ben Noordhuis
e5cceffe6a
Replace reinterpret_cast with BitCast in deoptimizer to please certain compilers.
...
This is a back-port of upstream V8 rev 8672.
Fixes #1354 .
2011-07-18 13:39:22 +02:00
Ryan Dahl
bd2d90feff
Change text on homepage about Web Workers
2011-07-18 04:36:36 -07:00
Ryan Dahl
61cda1e34e
PipeWrap should use HandleWrap::Close
2011-07-18 04:30:40 -07:00
Ryan Dahl
0c7bf8132e
Abstract out HandleWrap class
2011-07-18 04:22:16 -07:00
Ryan Dahl
cc0f608c7c
Add pipe_wrap
2011-07-18 03:08:54 -07:00
Ryan Dahl
1ae148909a
Abstract StreamWrap from TCPWrap
2011-07-18 03:08:54 -07:00
Ryan Dahl
404a4db611
Output size of binaries on 'make'
2011-07-18 03:08:54 -07:00
isaacs
448eab2587
Close #1349 Delimit NODE_PATH with ; on Windows
2011-07-17 14:35:49 -07:00
Pierre-Alexandre St-Jean
93899cb0cb
node-amqp is now being maintained by Theo Schlossnagle https://github.com/postwait/node-amqp
2011-07-17 22:40:01 +02:00
Ben Noordhuis
9f9a4cb928
Fix Math.pow crashes on machines without SSE2.
...
This is a back-port of r8577 from V8's upstream 3.1 branch.
Fixes #829 .
2011-07-16 16:00:06 +02:00
Ben Noordhuis
61dfe5d2a9
Revert dcf6955: Fix V8 mingw32 build
...
Patch has been merged upstream in V8 3.4.6.
Fixes #1351 .
2011-07-16 14:51:45 +02:00
Steve Engledow
292345fe62
Improve --help message and Fix -e/--eval switch
...
--help should at least give some hint that node takes the -e switch
Update help message to include -e and swap eval block with module load block so argv works correctly
[steve@sane node](master)$ ./node -e 'process.argv' foo bar
[ '/home/steve/code/node/node', 'foo', 'bar' ]
:)
Add simple test for -e option.
Fixes #1311 .
2011-07-16 15:24:36 +09:00
koichik
4662ace916
Fix message tests
...
V8 3.4.12.1 changed exception log format.
3.14.10:
node.js:189
throw e; // process.nextTick error, or 'error' event on first tick
^
3.4.12.1:
node.js:189
throw e; // process.nextTick error, or 'error' event on first tick
^
The caret was moved.
2011-07-16 14:12:00 +09:00
Devon Govett
562b469b35
More accurite error messages when writing beyond the length of a Buffer.
...
Fixes #1336 .
2011-07-16 12:56:14 +09:00
Igor Zinkovsky
d798866917
Apply PTW32_STATIC_LIB define to debug build of eio
2011-07-15 18:26:09 -07:00
Ryan Dahl
5709643289
Merge branch 'V8-3.4'
2011-07-15 17:47:37 -07:00
Ryan Dahl
ef1be160d6
Upgrade V8 to 3.4.12.1
2011-07-15 17:47:20 -07:00
koichik
e8bc80cf15
Doc improvements
...
Fixes #1334 .
2011-07-16 09:45:43 +09:00
Henry Rawas
f3f3b12364
net_uv: getsockname binding
2011-07-15 16:44:13 -07:00
vegorov@chromium.org
17bff6082a
Correctly propagate toolchain setting in SConstruct.
...
Patch by Bert Belder.
Review URL: http://codereview.chromium.org/7309014
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@8555 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-07-16 00:40:32 +02:00
vegorov@chromium.org
442c5c95ad
MinGW32: define STRUNCATE and change strncpy_s implementation to follow specification.
...
This fixes the debug build for MinGW32
Patch by Bert Belder.
Review URL: http://codereview.chromium.org/7308007
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@8552 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-07-16 00:38:34 +02:00
Bert Belder
1c2dd454db
libuv: stop g++ from complaining about anonymous struct usage
2011-07-16 00:31:47 +02:00
isaacs
7f0047c2d5
Close #1348 Remove require.paths
...
Module.globalPaths is still set to a read-only copy of the global
include paths pulled off of the NODE_PATH environment variable.
It's important to be able to inspect this, but modifying it no longer
has any effect.
2011-07-15 15:11:33 -07:00
isaacs
ebc4d5cd29
Remove duplicate docs about main module
2011-07-15 15:11:32 -07:00
AJ ONeal
eb7d762c55
Document that 'Buffer' is a global variable
2011-07-15 23:59:10 +02:00
Ryan Dahl
f4154d2940
Add 'make test-uv-debug'
...
To run: ./configure --debug && make test-uv-debug
2011-07-15 13:52:38 -07:00
Henry Rawas
3a96469319
connect-timeout callbacks after close
2011-07-15 13:43:28 -07:00
Ryan Dahl
130be31cff
Upgrade libuv to 1be48f12a0
...
and bindings for new req interface
2011-07-15 13:41:44 -07:00
Ryan Dahl
f5a7de1ea7
windows: fix simple/test-executable-path
2011-07-15 11:05:12 -07:00
Ryan Dahl
48f65b3d57
Use uv_exepath
2011-07-15 10:46:11 -07:00
Wojciech Wnętrzak
25c1a5e804
added information about relative paths in File System module
2011-07-15 09:54:56 -07:00
Wojciech Wnętrzak
9a16f1c7d0
added information about relative paths in File System module
2011-07-15 09:54:20 -07:00
Shigeki Ohtsu
3c733c57b7
ev: define HAVE_SYNC_FILE_RANGE if kernel >= 2.6.17 *and* glibc version >= 2.6
2011-07-15 15:41:28 +02:00
Henry Rawas
e70702c620
connect-buffer play back queued write and end
2011-07-14 17:19:07 -07:00
Ryan Dahl
306af25325
Now working on v0.5.2
2011-07-14 16:56:39 -07:00
Ryan Dahl
f8bfa54d0f
Bump to v0.5.1
2011-07-14 16:10:36 -07:00
Ryan Dahl
041c983290
Merge branch 'v0.4'
...
Conflicts:
deps/libev/wscript
doc/api/modules.markdown
2011-07-14 15:52:08 -07:00
Ryan Dahl
ab0d88142e
Comment out wsa_get_proto_info(AF_INET6) - not needed - causes warning in Win2k3
2011-07-14 15:34:08 -07:00
Ryan Dahl
b5e7b7870a
Revert "net_uv: fix localhost resolution - was defaulting to ::1 on OSX"
...
Breaks test/internet/test-dns.js
This reverts commit 6d8b082eed .
2011-07-14 15:29:21 -07:00
Brian White
612875765d
Addons should not -DEV_MULTIPLICITY=0
...
Fixes #1229
Fixes #1332
2011-07-14 15:25:19 -07:00
Henry Rawas
77ecc5a41a
add working http tests
2011-07-14 15:22:47 -07:00
Ryan Dahl
6d8b082eed
net_uv: fix localhost resolution - was defaulting to ::1 on OSX
2011-07-14 14:49:50 -07:00
Ryan Dahl
7a782164b9
Upgrade libuv to f5ff8694
2011-07-14 14:29:24 -07:00
Elijah Insua
b722aaa8c5
Close #1303 Stream.pipe returns the destination
...
Squashed:
* Simple change to make Stream.pipe(destination) return the destination Stream
* Test: ensure Stream.pipe(destination) returns the destination Stream
* updated Stream.pipe() documentation to reflect that it now returns the
destination stream
2011-07-14 14:25:49 -07:00
isaacs
9b5098f509
Close #1281 Make require a public member of module
...
Reviewed by @felixge
2011-07-14 14:25:49 -07:00
Henry Rawas
876712a074
test-tcp-wrap dont assume port 80 priveleged'
2011-07-14 14:18:47 -07:00
Henry Rawas
a13506b48f
net_uv: sockets should be writable during connection
2011-07-14 14:18:17 -07:00
Henry Rawas
8adc6b8921
net_uv: Add maxConnections support
2011-07-14 13:23:08 -07:00
koichik
8caf7fdb05
Add tests for #1085 and #1304
...
Fixes #1327 .
2011-07-15 01:58:43 +09:00
Stefan Rusu
5b02d564c3
Fixes #1085 . The agent end event may call detachSocket() after the socket is detached and destroyed by abort(). This patch avoids that behavior.
2011-07-15 00:33:28 +09:00
Stefan Rusu
901ebed8ff
Fixes #1304 . The Connection instance may be destroyed by abort() when process.nextTick is executed.
2011-07-15 00:32:46 +09:00
Kip Gebhardt
7097eca5a7
Adding documentation for 'agent' option in http.request().
...
Fixes #1243 .
2011-07-14 04:06:46 +09:00
koichik
a3e3ad40b1
Fix fs can't handle large file on 64bit platform
...
fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
Also fs.truncate() can't handle more than 4GB files.
Fixes #1199 .
Fixes #1094 .
2011-07-14 02:52:54 +09:00
koichik
5208abe723
Fix Buffer drops last null character in UTF-8
...
Reproduce:
$ node
> buf = new Buffer('\0')
<Buffer >
> buf.length
0
> buf = new Buffer(1)
<Buffer 28>
> buf.write('\0')
0
Fixes #394 .
Fixes #1210 .
2011-07-14 02:21:56 +09:00
koichik
5f97c9a005
Improvements AssertionError message
...
Fixes #217 .
2011-07-14 02:08:24 +09:00
koichik
128d1bab2a
The Node.JS website should link to whichever ChangeLog will be updated soonest.
...
Fixes #1316 .
2011-07-14 02:00:57 +09:00
koichik
701ae3c995
Document error in console.timeEnd
...
Fixes #1109 .
2011-07-14 00:10:17 +09:00
AJ ONeal
8cc9ac0df2
added explanation of exports
...
Fixes #1075 .
2011-07-14 00:08:31 +09:00
koichik
d05afa50e6
Doc improvements
...
Fixes #297 .
2011-07-14 00:06:12 +09:00
Henry Rawas
92057554d5
fix socket-timeout. Also fix makefile test list name net-stream
2011-07-13 00:29:26 +02:00
Henry Rawas
9057d3f17e
fix isip test
2011-07-12 22:42:09 +02:00
Henry Rawas
fad91d16ea
test-net-reconnect needs socket connect event
2011-07-12 09:54:40 -07:00
Ryan Dahl
6bcd96c253
Update favicon
2011-07-11 12:24:49 -07:00
Ryan Dahl
360f4b78dd
Fix wallpaper links
2011-07-11 08:48:02 -07:00
Ryan Dahl
b1c90a4e22
logo update
2011-07-11 08:30:37 -07:00
Ben Noordhuis
09130147cf
Tell BSD users to run gmake instead.
2011-07-11 14:17:23 +02:00
koichik
7e8735b3fe
Doc improvements. Explained the flags of fs.open().
...
Fixes #1268 .
2011-07-09 17:09:26 +09:00
koichik
87b6dc21c8
Doc improvements
...
moved 'continue' event from http.Agent to http.ClientRequest.
added 'close' event to http.ClientResponse.
added 'open' event to fs.ReadStream.
Fixes #1169 .
2011-07-09 13:23:28 +09:00
Ben Noordhuis
13a521e698
Fix off-by-one error in assertion.
...
Fixes test/simple/test-http-buffer-sanity.js
2011-07-09 03:24:51 +02:00
Henry Rawas
dcf6955c10
Fix V8 mingw32 build
...
Reported to V8
http://code.google.com/p/v8/issues/detail?id=1508
2011-07-08 18:21:29 -07:00
Igor Zinkovsky
a58b6439de
Statically link in dependencies for node.exe
2011-07-08 17:44:58 -07:00
koichik
d38fac2230
Fixes #1260
...
RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617
2011-07-08 17:18:42 -07:00
koichik
8faf941109
Fixes #1267 .
...
Error message of JSON.parse() was changed.
2011-07-08 17:18:31 -07:00
Ryan Dahl
91f1b250ec
mraleph emit hack
2011-07-08 17:08:52 -07:00
Ryan Dahl
e5564a3f29
Upgrade V8 to 3.4.10
2011-07-08 16:40:11 -07:00
Ryan Dahl
0df2f74d36
Add several asserts to tcp_wrap
...
OnAlloc and OnConnection should not be occurring after uv_close was
called on the handle.
2011-07-08 15:22:40 -07:00
Henry Rawas
19f248400f
test-uv: add more test cases
2011-07-08 14:30:12 -07:00
isaacs
fc80ee947a
docs for chown/chmod
2011-07-08 22:41:30 +02:00
Henry Rawas
ff49299b48
add tests to "make test-uv"
2011-07-08 13:06:36 -07:00
Ryan Dahl
15286c8361
Start 'make test-uv' command
2011-07-08 10:40:53 -07:00
Henry Rawas
1018e7d23f
isIP test
2011-07-08 10:36:16 -07:00
Henry Rawas
e81a89b116
fix eaddrinuse bug
2011-07-07 16:31:41 -07:00
Henry Rawas
3c52fd006e
net_uv: fix test-net-eaddrinuse.js
2011-07-07 15:55:12 -07:00
Henry Rawas
b6f6a1ca11
ipv6 node
2011-07-07 15:51:55 -07:00
Ben Noordhuis
b62ecdc5bb
Revert 3e2a2a7. Always send a HTTP/1.1 status line to the client.
2011-07-07 23:54:13 +02:00
Ben Noordhuis
3e8667d829
Revert 8dc8773. Always send a HTTP/1.1 status line to the client.
2011-07-07 23:49:31 +02:00
Ryan Dahl
395b670e58
Add deps/uv/src/ares to include path
2011-07-07 14:39:25 -07:00
Ryan Dahl
132ae752fa
Escape $CC and $CXX when passed to uv and V8
2011-07-07 14:17:39 -07:00
Ryan Dahl
6b78b6bf72
Export $CC and $CXX to uv and V8's build systems
...
Now you can compile with clang by doing
make distclean
CC=clang CXX=clang++ ./configure
make
2011-07-07 11:53:59 -07:00
Ryan Dahl
8a9fdedc9e
complete libuv upgrade. sorry
2011-07-07 11:32:12 -07:00
Ryan Dahl
a2f2aa97ad
Upgrade libuv to 9518ab65949257384bf7e407d8502a6437fdda4b
2011-07-07 08:56:48 -07:00
avz
cc83455534
sysctl(CTL_HW, HW_PHYSMEM) always returns unsigned long. Will work fine for 32 and 64 bit systems. Closes #1233 .
2011-07-06 21:52:21 -07:00
Joe Shaw
3dbb3cdb6a
SendTo and SendMsg expect a buffer only, not a string; fix the error message. Closes #1239 .
2011-07-06 21:31:13 -07:00
Ryan Dahl
073fbea0f5
Bring back execScript
...
Undoing
http://codereview.chromium.org/7060008
https://groups.google.com/forum/#!topic/v8-dev/JTRHrPHFBts
2011-07-06 16:55:50 -07:00
isaacs
87900b14da
url: Don't swallow punycode errors
2011-07-06 13:17:50 -07:00
isaacs
8475e1527d
punycode: Test for integer overflow
2011-07-06 13:17:50 -07:00
Jeremy Selier
2a848fa727
Close #1149 IDNA and Punycode support in url.parse
...
Using @bnoordhuis's punycode lib.
Close #1174 also
2011-07-06 13:17:50 -07:00
Ryan Dahl
08a334fa45
Upgrade libuv to 0bf38570e8c7837bd830388f7b57f138aebb3395
2011-07-06 12:13:45 -07:00
Ryan Dahl
2dfed9f69a
Now working on version v0.5.1
2011-07-05 22:13:55 -07:00
Ryan Dahl
ae7ed8482e
Bump to v0.5.0
2011-07-05 18:45:03 -07:00
Ryan Dahl
111305c1bd
Support SunOS 121. Check for ifaddrs in wscript for SunOS build.
2011-07-05 18:31:59 -07:00
Bert Belder
a845bf74ae
Libuv: add cygwin support
...
Fails a few tests
2011-07-06 02:50:50 +02:00
Yoshihiro Kikuchi
82cfdb88fa
fix an broken question.
...
Fixes #1274 .
2011-07-06 09:24:37 +09:00
Ryan Dahl
d1eba2b18b
Revert "Fixes #1260 "
...
Due to downgrade of V8.
This reverts commit 3e2abd12d3 .
2011-07-05 16:49:13 -07:00
Ryan Dahl
8b2f5af2a0
Revert "Fixes #1267."
...
Revert due to V8 downgrade.
This reverts commit 04c9169892 .
2011-07-05 16:40:13 -07:00
Ryan Dahl
64a06c5ffd
Revert "Error argument for http.ServerRequest 'close'"
...
Too slow.
This reverts commit e7ac6d8fcd .
2011-07-05 15:48:31 -07:00
Ryan Dahl
149562555c
Downgrade V8 to 3.1.8.25
...
There are serious performance regressions both in V8 and our own legacy
networking stack. Until we correct our own problems we are going back to the
old V8.
2011-07-05 14:51:29 -07:00
Ben Noordhuis
f087206067
Verify that the argument passed to vm.runInContext() is a context object.
...
Fixes #558 .
2011-07-05 23:39:13 +02:00
Ben Noordhuis
b74d119b34
Parse the command line before initializing V8.
...
Doing it the other way around means that V8 won't pick
up command line switches like `--prof`.
Props to Joshua Kehn for reporting the issue and Jeff Fifield
for pointing out the cause.
Fixes #900 .
Fixes #1217 .
2011-07-05 13:25:27 -07:00
Bert Belder
72e18d7f19
dns_uv: match the old api better, fix tests
2011-07-05 21:17:17 +02:00
Ryan Dahl
c0d3f1f485
uv: exception.code isntead of exception.errno
2011-07-05 12:08:17 -07:00
Ryan Dahl
32a0752d49
Merge branch 'V8-3.4'
2011-07-05 11:42:20 -07:00
Ryan Dahl
6054dcc130
Upgrade V8 to 3.4.9
2011-07-05 11:41:56 -07:00
Ryan Dahl
9c77169112
make test-process-uptime fail less often
2011-07-05 11:26:21 -07:00
Ryan Dahl
ede1acc1ed
Revert "Remove 'connect' event from server side sockets"
...
Fixes #1276
This reverts commit f0a440d886 .
2011-07-05 10:56:15 -07:00
Ryan Dahl
e8542b6220
Fix internet testcase config
2011-07-05 10:31:37 -07:00
Ryan Dahl
d964b4c5aa
net_uv: enable another test case in test-net-pingpong
2011-07-05 10:08:35 -07:00
Alex Xu
f1b7c42524
Typo: stout -> stdout
...
Closes #874
2011-07-05 02:42:56 +02:00
Alex Xu
1c174cc1aa
Typo: stout -> stdout
...
Closes #874
2011-07-05 02:42:32 +02:00
Bert Belder
4062a42aae
Avoid assertion failure closing tty stdin on windows
2011-07-05 02:33:13 +02:00
avz
0c3a7c075e
Fix wrong error handling at Open() after open(2) in sync mode
2011-07-05 02:05:37 +02:00
Ben Noordhuis
1e6b72e8cb
Test case for issue #1228 : errno masked in fs.openSync().
2011-07-05 02:05:09 +02:00
Bert Belder
1e29fe65c3
Fix make test-internet
2011-07-05 01:53:01 +02:00
Ben Noordhuis
3e2a2a76fd
Test cases for #1234 : don't send HTTP/1.1 responses to HTTP/1.0 clients.
2011-07-05 01:41:37 +02:00
Ben Noordhuis
f91988979f
Don't send a HTTP/1.1 status line to HTTP/1.0 clients.
...
Fixes #1234 .
2011-07-05 01:41:30 +02:00
Ben Noordhuis
c6846565cf
Clean up temporary file on exit.
...
Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.
2011-07-05 01:38:07 +02:00
Bert Belder
1037f5c113
Fix bug in timers_uv timeout recomputation
...
Closes #1209
2011-07-05 01:31:23 +02:00
Ben Noordhuis
222f85fdf4
Test cases for #1234 : don't send HTTP/1.1 responses to HTTP/1.0 clients.
2011-07-05 01:13:57 +02:00
Ben Noordhuis
8dc87731c7
Don't send a HTTP/1.1 status line to HTTP/1.0 clients.
...
Fixes #1234 .
2011-07-05 01:13:57 +02:00
Ben Noordhuis
092fc42fbf
Clean up temporary file on exit.
...
Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.
2011-07-05 01:13:57 +02:00
Ryan Dahl
24a671a8aa
legacy c-ares binding should use legacy timer
2011-07-04 15:56:56 -07:00
Bert Belder
858f23094e
Bindings for libuv-integrated c-ares
2011-07-05 00:17:20 +02:00
Bert Belder
c953ecfb9e
Fix v8 mingw build
2011-07-05 00:04:58 +02:00
Bert Belder
3b16a89b3a
Fix net_uv.isIPv4/6 bug
2011-07-05 00:04:57 +02:00
Adam Luikart
7f30f13543
Update POSIX splitPathRe to allow control chars. Fixes #1230 .
...
Use [\s\S] instead of . to match any char, including newlines.
2011-07-04 22:50:27 +02:00
koichik
04c9169892
Fixes #1267 .
...
Error message of JSON.parse() was changed.
2011-07-05 04:15:51 +09:00
Niklas Fiekas
a3e5da07b4
Removed/Fixed TODO DRY
2011-07-04 21:15:00 +02:00
Ryan Dahl
38f3bf6610
net_uv: add isIP
...
Issue #1270 : Doesn't completely pass test/simple/test-net-isip.js yet.
2011-07-04 11:33:29 -07:00
Joe Shaw
f6fa20fd55
Fix a misnamed argument; multicastAddress -> multicastInterface. Closes #1237 .
2011-07-04 19:40:24 +02:00
Jörn Horstmann
ff50310cc5
Fixed a typo in a comment: "realpatch" -> "realpath"
2011-07-04 19:40:23 +02:00
Ben Noordhuis
20d7c47d6e
Document that path.join() and path.resolve() ignore non-string arguments.
...
Fixes #514 .
2011-07-04 19:40:20 +02:00
Mariano Iglesias
02ebcd8e26
Adding missing v8 namespace to NODE_PSYMBOL
2011-07-04 19:40:19 +02:00
Joe Shaw
7962eeef22
Fix a misnamed argument; multicastAddress -> multicastInterface. Closes #1237 .
2011-07-04 10:00:31 -07:00
Jörn Horstmann
8cecc50b9d
Fixed a typo in a comment: "realpatch" -> "realpath"
2011-07-04 09:53:30 -07:00
Mariano Iglesias
075605f304
Adding missing v8 namespace to NODE_PSYMBOL
2011-07-04 09:50:10 -07:00
Brett Kiefer
220e2281e4
Fix issue 915 (Failed to find kqueue on FreeBSD) with the relevant portion of a patch submitted to node.js dev ( http://groups.google.com/group/nodejs-dev/browse_thread/thread/3aaf7fe2ca390fdc ) by Davie Siegel. The issue is that event.h requires types.h on FreeBSD. This rearranges some of the logic but looks like it should still be valid for Darwin.
2011-07-04 09:27:15 -07:00
koichik
c60cdcda4e
Fix net.Socket.connect argument parsing
...
Fixes #1251 .
2011-07-05 00:52:16 +09:00
Ben Noordhuis
bd0baf2338
Check that PR_SET_NAME is defined.
...
Avoids breaking the build with older (pre-2006) linux kernels.
Raises a JS exception if the script tries to assign to `process.title`.
Fixes #840 .
2011-07-04 17:23:14 +02:00
Ben Noordhuis
8e0d788842
Test for #402 : writing base64 at position > 0 should not mangle the result.
...
This is a regression test, the bug itself was fixed in v0.3.x.
2011-07-04 17:07:50 +02:00
Ben Noordhuis
d6188bdd27
Document behaviour of the encoding parameter of fs.writeFile().
...
Fixes #401 .
2011-07-04 16:26:46 +02:00
koichik
bcf3c7d31c
Fix doctool uses RegExp object as a Function
...
RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617
Fixes #1262 .
2011-07-04 22:52:44 +09:00
koichik
3e2abd12d3
Fixes #1260
...
RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617
2011-07-03 12:19:44 -07:00
koichik
38a0145869
Fix doctool uses RegExp object as a Function
...
RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617
Fixes #1262 .
2011-07-03 11:27:23 -07:00
koichik
432d54900e
Remove duplicate section in modules.markdown
...
Fixes #1263
2011-07-03 11:26:44 -07:00
Ryan Dahl
6d8b43c366
http: Fix agent id creation
...
Unbreaks test-regress-GH-877.js
2011-07-03 11:05:14 -07:00
Ryan Dahl
44d30f2d65
Fix require with --eval
...
Caused by bad merging of d6ec8f
Fixes #1261 .
2011-07-03 10:49:20 -07:00
Ryan Dahl
69d20f5352
use_uv: Correct readyState on connecting
2011-07-02 00:18:36 -07:00
Ryan Dahl
a1e8fcc5ae
Merge branch 'v0.4'
2011-07-01 20:32:41 -07:00
Ryan Dahl
5a2155dc71
Set process.useUV also on env NODE_USE_UV=1
2011-07-01 19:30:26 -07:00
Henry Rawas
56ec4e4f3c
net_uv: fix test-net-connect-timeout.js test
2011-07-01 17:53:48 -07:00
Ryan Dahl
efca5456b8
Fixes #877 . Don't wait for socket pool to establish connections.
...
Thanks to Yann Biancheri for putting together an initial test.
2011-07-01 15:49:42 -07:00
Ryan Dahl
f78f654131
Revert "debugger: don't allow users to input non-valid commands"
...
breaks 'print' command
This reverts commit 37d529f818 .
2011-07-01 15:38:53 -07:00
Ryan Dahl
70a8927a93
Upgrade libuv to ba1c38f to fix mingw build
2011-07-01 10:59:42 -07:00
Robert Mustacchi
2cfab04037
Fix solaris build ( http://codereview.chromium.org/7282034/ )
2011-07-01 09:51:43 -07:00
Ryan Dahl
17ac0316d0
Complete libuv upgrade
2011-07-01 09:38:47 -07:00
Ryan Dahl
412e413edc
Upgrade libuv
2011-07-01 09:30:44 -07:00
Henry Rawas
4c480551c3
net_uv: reuse socket
2011-07-01 09:01:06 -07:00
Yoshihiro KIKUCHI
99b210d7ea
tiny fixes in tty_posix.js
...
Close #1158
Close #1160
Close #1252
2011-07-01 00:33:41 -07:00
Ryan Dahl
e38ae476ef
net_uv: Stub out setKeepAlive
2011-06-30 14:53:22 -07:00
Henry Rawas
2e1af6df49
Fix V8 mingw32 build
...
Reported to V8
http://code.google.com/p/v8/issues/detail?id=1508
2011-06-29 20:51:30 +02:00
Ryan Dahl
1cb7b67ac3
Upgrade libuv to 8fd916d6ddc9c7fd0e3e8e668efbc2d782e8e742
2011-06-29 19:35:17 +02:00
Henry Rawas
dd175a4ede
fix mingw build
2011-06-29 19:12:26 +02:00
Ryan Dahl
be1b55289f
net_uv: Fix server.listen argument parsing
2011-06-29 18:04:55 +02:00
Ryan Dahl
33af2720f2
Upgrade V8 to 3.4.8
2011-06-29 17:26:51 +02:00
Ryan Dahl
6afdca885a
Add docs about NODE_USE_UV to man page
2011-06-29 17:16:52 +02:00
Ryan Dahl
20996dbc2b
Revert "Add support for file descriptor type detection."
...
This reverts commit 911cbd0cef .
This patch is broken on Linux and I don't want to think about the
functionality during the Windows port. We can reconsider it after v0.6.
2011-06-29 15:25:11 +02:00
Henry Rawas
d64e070e26
net_uv: Delay listen emit
2011-06-29 15:20:53 +02:00
Ryan Dahl
d005cc5cc9
Enable new timer binding only on --use-uv
2011-06-29 15:14:55 +02:00
Ryan Dahl
263e33a738
Revert "Get rid of the old timer binding"
...
This reverts commit cc82724fdc .
Conflicts:
src/node.cc
wscript
2011-06-29 15:06:40 +02:00
Ryan Dahl
23b8931b62
Merge branch 'v0.4'
...
Conflicts:
src/node.js
src/node_version.h
2011-06-29 14:50:03 +02:00
Ryan Dahl
e286480e34
Now working on v0.4.10
2011-06-29 14:44:38 +02:00
Ryan Dahl
de44eafd78
Bump to v0.4.9
2011-06-29 13:24:02 +02:00
Ryan Dahl
1e7769dfa3
Merge branch 'v8-3.1' into v0.4
2011-06-29 12:49:37 +02:00
Ryan Dahl
61553ccdda
Upgrade V8 to 3.1.8.25
2011-06-29 12:49:17 +02:00
Ryan Dahl
09b8a5e2cf
Dont install ares_build.h or ares_rules.h
2011-06-29 02:44:26 +02:00
Henry Rawas
4e1e60fbf0
Fix the MinGW build
2011-06-28 23:14:00 +02:00
Ryan Dahl
8cb5338f35
Fix test-tcp-wrap-listen
2011-06-28 13:56:02 +02:00
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
2011-06-28 13:52:36 +02:00
Ryan Dahl
f657d58fe1
Upgrade libuv to f9b9bb44bd6e2b74729b5d1ff481adf4213e9a0b
2011-06-28 13:37:03 +02:00
koichik
6c121edc60
Fix mismatch createConnection and Socket.connect
...
net.createConnection() is wrapper for net.Socket.connect(),
but There is mismatch between them.
net.createConnection(port, [host])
net.Socket.connect(port, [host], [callback])
Fixes #1208 .
2011-06-28 13:36:45 +02:00
Ben Noordhuis
c626f8bd8f
Test case for issue #1218 : uncatchable exception on TLS connection error.
2011-06-27 13:18:31 +02:00
Ben Noordhuis
c95da949ec
Prevent "undefined symbol: ev_rt_now" link errors in third-party modules.
...
Fixes #1181 .
2011-06-23 00:35:35 +02:00
Ryan Dahl
02699a3a8e
net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var
2011-06-20 15:51:03 +02:00
Ryan Dahl
d0a9e64245
net_uv: Don't add listenerCallback when null
2011-06-20 14:48:00 +02:00
koichik
d6ec8f668e
Fix -e/--eval can't load module from node_modules
...
With -e or --eval, require() can load module using relative path.
node -e 'require("./foo")'
But it can't load module from node_modules directory.
node -e 'require("foo")'
Fixes #1196 .
2011-06-20 13:47:27 +02:00
Ben Noordhuis
5c38163787
Fixes #1197 . Fix failing os.getNetworkInterfaces() test in test-os.js
2011-06-20 13:31:14 +02:00
Ryan Dahl
d627083ed5
Fixes #1187 . Support multiple 'link' headers
2011-06-20 12:51:30 +02:00
Ryan Dahl
feb26d6c74
Fixes #1203 . Add missing scope.Close to fs.sendfileSync
2011-06-20 12:48:38 +02:00
Sam Shull
b057770f8a
Fixes #1204 . Add missing headers files to include
...
This commit fixes install of required dependencies for native
extensions.
2011-06-20 12:45:44 +02:00
Ryan Dahl
95b409c578
Upgrade libuv.
...
Also remove c-ares since it's included in libuv now.
libuv version b7b7df090ca285e53eb51bf518c4e5064876596
2011-06-17 19:53:19 +02:00
Ryan Dahl
f6ce86af04
net_uv: Export Socket and Stream
2011-06-17 18:09:15 +02:00
Ryan Dahl
dc0556c8cd
net_uv: Implement end(), destroySoon()
2011-06-17 17:10:12 +02:00
Ryan Dahl
e697cfb6fc
net_uv: shim up more methods
2011-06-17 14:27:02 +02:00
Ryan Dahl
52b517c6ab
Revert "Add --cov code coverage option"
...
This can be done in user space. EG https://github.com/cloudkick/whiskey
This reverts commit da9b3340eb .
This reverts commit b4ff36a41b .
Conflicts:
src/node.cc
2011-06-17 14:03:05 +02:00
Ryan Dahl
710f8e2acc
Add --use-uv command-line flag to use libuv backend
2011-06-17 13:51:40 +02:00
Ryan Dahl
312ed83827
Support eof in net_uv
2011-06-17 13:36:16 +02:00
Ryan Dahl
8bf5b8d352
Initial pass at new net.js for libuv
2011-06-16 21:11:05 +02:00
Ryan Dahl
9696c27c45
tcp_wrap: implement shutdown
2011-06-16 16:08:17 +02:00
Ryan Dahl
ea8969787c
tcp_wrap: Don't return req object on error.
2011-06-16 16:03:04 +02:00
Ryan Dahl
97296e405c
tcp_wrap: add writeQueueSize
2011-06-16 15:49:44 +02:00
Ryan Dahl
ddc989333d
tcp_wrap: implement socket.connect()
2011-06-16 15:33:47 +02:00
Ryan Dahl
dae73dbd28
tcp_wrap: onread oncomplete parameter massage
2011-06-16 15:12:57 +02:00
Ryan Dahl
dafe32d3bf
tcp_wrap: implement write
2011-06-16 13:16:54 +02:00
Mark Cavage
7c51275bce
Cleanup crypto verify to not print unnecessary errors
2011-06-15 20:02:21 +02:00
Ryan Dahl
3d7d994ffc
Merge branch 'v0.4'
...
Conflicts:
doc/api/modules.markdown
test/simple/test-crypto.js
2011-06-15 14:43:37 +02:00
Mathias Buus
39246f65df
Closes #1177 remove one node_modules optimization
...
to better support certain project structures.
2011-06-14 15:32:41 -07:00
Ryan Dahl
86214c9f16
tcp_wrap: Initial wrap of uv_read_start
2011-06-14 18:03:01 +02:00
Ryan Dahl
5fd9adccdb
Remove confusing comment in node_buffer.h
2011-06-14 13:18:32 +02:00
Ryan Dahl
1261b17129
libuv wraps: Dispose of JS object on close()
2011-06-14 13:03:49 +02:00
Mark Cavage
88552c51ae
Support for signature verification with RSA/DSA public keys
...
Fixes #1166 .
2011-06-14 12:50:00 +02:00
Ryan Dahl
55636e5526
tcp_wrap: Remove listener deck
2011-06-14 12:47:07 +02:00
isaacs
9967c369c9
AMD compatibility for node, with docs and tests
...
Closes #1173
Closes #1170
2011-06-13 16:11:13 -07:00
Trevor Burnham
f46811633c
Documenting require.main, fixing #997
2011-06-13 13:39:02 -07:00
Bert Belder
2eb1274d6c
Compensate for uv_async_init api change
2011-06-12 20:53:04 +02:00
Ryan Dahl
1ba2c32135
Massage util.inherits for perf increase
2011-06-11 08:51:48 +02:00
Ryan Dahl
effeeb5cf2
Bind uv_listen()
2011-06-10 18:25:27 +02:00
Ryan Dahl
062759194b
Initial binding to uv_tcp_t
2011-06-10 18:17:48 +02:00
Ryan Dahl
623f513071
Upgrade libuv
2011-06-10 18:17:44 +02:00
Bert Belder
09ac99f1f4
Avoid tick spinner spinning forever
2011-06-08 05:06:16 +02:00
Bert Belder
406f44a86b
Build on windows again
2011-06-08 05:06:15 +02:00
Bert Belder
126e3ba2d3
Get rid of node_idle_watcher
2011-06-08 05:06:15 +02:00
Bert Belder
cc82724fdc
Get rid of the old timer binding
2011-06-08 05:06:14 +02:00
Bert Belder
d9aa9b54cf
Use timer_wrap instead of the old timer binding
2011-06-08 05:06:13 +02:00
Bert Belder
5c9a262eb0
Compatibility issue and warning in x-forwarded-for dtrace probe
2011-06-08 05:06:09 +02:00
Ryan Dahl
7a5977b5d6
Upgrade libuv to e58a1abff02d7bacf89a56de9050e27690a97bc5
2011-06-07 18:59:44 +02:00
isaacs
794cb60f9e
typo
2011-06-04 10:41:41 -07:00
isaacs
580ab7ba2c
Avoid instanceof for native object types
...
For classes defined in the module, this is fine. For 'Error'
it's probably not very hazardous. However, testing 'Object'
and 'String' is much more reliable using typeof, to work with
the repl and NODE_MODULE_CONTEXT modes.
2011-06-04 10:38:49 -07:00
Dave Pacheco
e142fe2be6
DTrace probes: support X-Forwarded-For
...
INTRO-385
2011-06-04 16:05:01 +02:00
Ryan Dahl
b6a742d76f
Merge branch 'v0.4'
2011-06-03 16:37:56 +02:00
Siddharth Mahendraker
37d529f818
debugger: don't allow users to input non-valid commands
...
Fixes #1144 .
2011-06-03 14:50:12 +02:00
Ryan Dahl
1d7a46a588
Disabling SSL compression is dependent on OpenSSL version 0.9.8
...
Fixes #1087 .
2011-06-03 14:50:02 +02:00
Ryan Dahl
4956e3c0a2
Upgrade http-parser to eee60127c0df551be085cc8e7983e36d7700d885
2011-06-03 14:12:14 +02:00
Ryan Dahl
0cb4484d43
Doc improvements
...
Fixes #1147 .
Fixes #1139 .
Fixes #1126 .
Thanks ctide, kext, disfated.
2011-06-03 13:27:35 +02:00
Jérémy Lal
f23c45f7f4
Option to disable SSL v2
...
Fixes #880
2011-06-03 08:37:28 +02:00
Ryan Dahl
b96ae6674d
document require.cache
2011-06-03 08:14:35 +02:00
Fuji, Goro
8971b59365
node -e '' should mean eval(''), not invoke REPL
...
Fixes #1116
2011-05-31 22:10:39 -07:00
Ryan Dahl
650a308634
Move MakeCallback and SetErrno to node.cc
2011-05-28 13:44:03 -07:00
Ryan Dahl
4d22405f0f
TimerWrap: mimic libev ref count semantics
2011-05-28 13:21:03 -07:00
Ryan Petrello
58a1d7ec30
Close #562 Close #1078 Parse file:// urls properly
...
The file:// protocol *always* has a hostname; it's frequently
abbreviated as an empty string, which represents 'localhost'
implicitly.
According to RFC 1738 (http://tools.ietf.org/html/rfc1738 ):
A file URL takes the form:
file://<host>/<path>
where <host> is the fully qualified domain name of the system on
which the <path> is accessible...
As a special case, <host> can be the string "localhost" or the empty
string; this is interpreted as 'the machine from which the URL is
being interpreted'.
2011-05-27 10:47:34 -07:00
Ryan Dahl
9d1bad8960
Implement new wrap for uv timer
2011-05-25 10:17:02 -07:00
Ben Noordhuis
eb4c9ed881
Fix resource leaks in node_crypto.cc
...
Fixes #1097 .
2011-05-24 23:36:54 -07:00
Brian White
9b3472637e
Crypto documentation fixes
...
Fixes #1104 .
2011-05-24 23:35:18 -07:00
Ryan Dahl
8f06547548
Fixes #1102 . Install ev.h into $PREFIX/include/node/ev/ev.h
2011-05-24 13:43:10 -07:00
Felix Geisendörfer
f0a440d886
Remove 'connect' event from server side sockets
...
Sockets emitted by the 'connection' event are always connected, having
them emit the 'connect' event makes no sense. It only confused people,
as it's not clear if you have to listen to 'connect' or not.
That try..catch block was also very scary. It would silently swallow
exceptions in 'connect' listeners and destroy the socket. Makes no
sense.
Fixes #1047 .
2011-05-24 11:22:59 -07:00
Felix Geisendörfer
2b91256c61
Fix error handling bug in stream.pipe()
...
Problem: Since stream.pipe() is registering it's own error handlers on
the source and destination stream, it needs to replicate the
EventEmitter 'error' emitting semantics of throwing an error if there
are no other listeners. However, there was a off-by-one error because
the check for remaining listeners was done after cleanup() which means
the pipe's own listener was no longer included.
This would cause 'error' events on either the dest or the source to
throw if there was one other error listener, and while swallowing
the 'error' event if there was no other listener.
Solution: I added a test demonstrating the two issues and fixed the
problem by correcting the off-by-one error.
Fixes #1095 .
2011-05-24 10:50:33 -07:00
Brian White
d22259426c
Fix incorrect documentation for assert.fail()
...
Fixes #1100 .
2011-05-24 10:44:14 -07:00
Ryan Dahl
a72284e264
Fix windows EOL chars
2011-05-23 17:38:55 -07:00
Bert Belder
9cec08e490
Batch of ev -> uv changes
2011-05-23 17:31:29 -07:00
Ryan Dahl
207901e7de
Guard tick_spinner start/stop
...
All tests passing on OSX. Thanks to Bert for debugging this.
2011-05-23 15:38:57 -07:00
Ryan Dahl
d3426789d2
Upgrade libuv to d91b5012bd32b60f1a0f35241f7ac45c147f0c8a
2011-05-23 15:25:21 -07:00
Ryan Dahl
2c79f13634
Upgrade libuv to 40f0ad6d364cff76adaf1c7f182b1dc939f36617
2011-05-22 13:08:31 -07:00
Ryan Dahl
860cb906a6
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-05-22 13:02:06 -07:00
Ryan Dahl
823604a4e0
Now working on v0.4.9
2011-05-21 00:10:23 -07:00
Ryan Dahl
7dd22c26e4
Bump to v0.4.8
2011-05-20 19:40:06 -07:00
Ryan Dahl
80b0225b98
Merge branch 'v8-3.1' into v0.4
2011-05-20 19:25:30 -07:00
Ryan Dahl
cee4ce39a9
Upgrade V8 to 3.1.8.16
2011-05-20 19:24:37 -07:00
Ryan Dahl
70dd6d4ea3
Fix TJ's assert error
...
Unable to reproduce but connect's "make test TESTS=test/static.test.js" does
it occasionally.
2011-05-20 15:41:04 -07:00
Mark Cavage
a55a9ff3c2
Additional docs for net.listenFD()
...
Fixes #1080 .
2011-05-20 15:02:22 -07:00
Ryan Dahl
59274e8a33
Merge branch 'v0.4'
...
Conflicts:
lib/crypto.js
lib/tls.js
2011-05-20 10:29:16 -07:00
Ryan Dahl
9c7f89bf56
CryptoStream.prototype.readyState shoudn't reference fd
...
Fixes #1069
2011-05-20 10:20:22 -07:00
Brian White
2de0611b43
Remove unused variable
...
Fixes #1077
2011-05-20 08:51:55 -07:00
Robert Mustacchi
7ea19d02fd
Use same make as when originally invoked
2011-05-20 08:34:25 -07:00
Robert Mustacchi
317653b4df
Rework getNetworkInterfaces() for Linux, SunOS, Mac OS X
2011-05-20 08:34:18 -07:00
David Trejo
8a0ac5b422
Add test for agent upgrade and example in docs
2011-05-19 18:44:42 -07:00
Ryan Dahl
73ea01cd64
Revert "Upgrade libuv to 9c2dd6bea970b2376696aba070bdfc2873843cfb"
...
This reverts commit 4b60e87afe .
Event loop ref count broken.
2011-05-19 17:50:13 -07:00
Alexandre Marangone
6c28fcf661
(char *) casting for all strings args to kstat function to avoid warnings
...
Fixes #1071 .
2011-05-19 14:53:31 -07:00
Alexandre Marangone
5d9dc1c6d5
Adding os.totalmem() and os.freemem() for SunOS
2011-05-19 14:53:07 -07:00
Fedor Indutny
21724ecaec
Share SSL context between server connections
...
Fixes #1073 .
2011-05-19 14:45:42 -07:00
Ryan Dahl
6461af1baa
Fix buffer test
2011-05-19 12:41:17 -07:00
Ryan Dahl
5e409c2f1a
makeFastBuffer should not segfault but rather throw on non-buffer
2011-05-19 12:13:48 -07:00
Ryan Dahl
4b60e87afe
Upgrade libuv to 9c2dd6bea970b2376696aba070bdfc2873843cfb
2011-05-19 10:37:51 -07:00
Ryan Dahl
3ac0ada758
Merge branch 'v0.4'
2011-05-19 10:34:42 -07:00
David Trejo
f4e69e44ff
readline docs
2011-05-18 21:13:49 -07:00
David Trejo
68d840b47d
readline docs
2011-05-18 21:12:15 -07:00
Ryan Dahl
85934bcf2a
Remove libev/macos kqueue override - goes in libuv
2011-05-17 14:55:26 -07:00
Ryan Dahl
63c0d71213
Changes for job bullets
2011-05-17 13:25:25 -07:00
Ryan Dahl
0271b785a1
fork: Use utf8 for channel encoding
2011-05-17 10:51:30 -07:00
Ryan Dahl
85bc8d02fa
Merge branch 'v0.4'
...
Conflicts:
src/node_crypto.cc
2011-05-16 19:29:02 -07:00
Ryan Dahl
103a450d3a
Remove 'binary' encoding assert - add tests
...
Don't write large characters to buffers with binary encoding. You will be
silently injured.
2011-05-16 15:01:33 -07:00
isaacs
249361cab7
Close #1054 More clear documentation for module system
2011-05-16 23:30:43 +02:00
Ryan Dahl
e83c6959db
Disable compression with OpenSSL.
...
This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.
2011-05-16 10:33:19 -07:00
koichik
d4f82ea590
Fix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"
...
Fixes #1038
2011-05-16 10:21:16 -07:00
Brian White
e505a1215c
Add reading/writing of floats and doubles from/to buffers
...
Code for readIEEE754/writeIEEE754 is from jspack: http://code.google.com/p/jspack/
2011-05-15 18:39:07 -07:00
koichik
80c2fe9456
Fix event listener leak check timing
...
Fixes #1041 .
2011-05-14 14:43:00 -07:00
koichik
56aa2fd4c3
Fix doc - missing dns.resolveNs() and dns.resolveCname()
...
Fixes #1039 .
2011-05-14 14:36:58 -07:00
Felix Geisendörfer
9d717f6bef
Update http.ServerRequest docs
...
The documentation for 'end' was wrong, and 'close' now has an `err`
parameter.
2011-05-14 14:21:41 -07:00
Felix Geisendörfer
e7ac6d8fcd
Error argument for http.ServerRequest 'close'
...
Problem: It was not possible to detect the reason for a premature
connection termination in http requests.
This patch provides a new `err` argument to the 'close' event which
can be inspected to differentiate between a timeout and a client
actively terminating the connection.
Also contains tests for this new behavior for http and https.
2011-05-14 14:15:31 -07:00
Felix Geisendörfer
1fde5f51b4
Make https 'timeout' events bubble up
...
Also adds a test case for it.
2011-05-14 13:38:04 -07:00
Ryan Dahl
91bd144d2c
check_tick_watcher to use libuv
2011-05-13 07:09:28 -07:00
Ryan Dahl
a46c63bae7
prepare_tick_watcher to use libuv
2011-05-13 07:06:20 -07:00
Ryan Dahl
17c88db158
move tick_spinner on libuv
2011-05-13 06:59:33 -07:00
Ryan Dahl
efca334be2
Integrate libuv into build system
2011-05-13 00:54:00 -07:00
Ryan Dahl
9a3dd754be
Add trademark stuff to homepage
2011-05-11 13:40:42 -07:00
Ryan Dahl
337c48db5f
Rename spawnNode to fork
2011-05-11 13:32:40 -07:00
Ryan Dahl
7ea7094314
Improve spawnNode docs
2011-05-11 12:31:35 -07:00
Ryan Dahl
9e26dab150
child_process.spawnNode
...
For making easy worker processes.
2011-05-11 02:24:48 -07:00
isaacs
307f39ce9e
Fix a url regression
...
The change for #954 introduced a regression that would cause
the url parser to fail on special chars found in the auth
segment. Fix that, and also don't create invalid urls when
format() is called on an object containing an auth member
containing '@' characters or delimiters.
2011-05-10 13:57:25 -07:00
Ryan Dahl
11beac70e2
Docs: server.pause() server.address() socket.address()
2011-05-09 10:49:27 -07:00
Trevor Burnham
31ed87b0a9
Documenting require.main, fixing #997
2011-05-09 10:29:09 -07:00
isaacs
205b9beb6b
Merge branch 'v0.4'
...
Conflicts:
lib/tls.js
lib/url.js
src/node_version.h
test/simple/test-buffer.js
test/simple/test-url.js
2011-05-07 20:38:32 -07:00
Ryan Dahl
110f06578d
Agent socket errors bubble up to req only if req exists
...
Fixes #836 .
2011-05-07 12:30:58 -07:00
Marcel Laverdet
c2b5ea218c
Attempt to connect to debug process more than once
...
The debugger would give up after only 100ms but on my system this
timeout isn't enough. The startup process is now modified to try 6
times every 50ms instead.
Fixes #1010 .
2011-05-06 20:53:40 -07:00
Ryan Dahl
5ab3ea3955
Point changelog to correct branch
...
Fixes #1002 . Thanks cjavapro.
2011-05-06 16:05:04 -07:00
Ryan Dahl
55bff5bab9
TLS: simplify logic
2011-05-06 17:06:36 -07:00
Nathan Rajlich
72824d8d2d
Make sure 'ARCH' get's defined with the CMake build system.
...
Fixes #1004 .
2011-05-06 16:03:39 -07:00
Ryan Dahl
c33790262b
Added docs for fs.fsync and fs.fsyncSync
...
Thanks baudehlo. Fixes #1009 .
2011-05-06 16:02:22 -07:00
Håvard Stranden
9f0b1a9bc6
Add Diffie-Hellman support to crypto module
...
Fixes #573
2011-05-06 14:36:04 -07:00
Ryan Dahl
00aee73692
Add docs for buffer.fill()
2011-05-06 13:42:55 -07:00
Konstantin Käfer
5e1b7cadb4
Add Buffer::fill method to do memset
...
Fixes #477 .
2011-05-06 13:39:12 -07:00
Ryan Dahl
fc8afd45c7
Fix crash in debugger
2011-05-05 16:52:05 -07:00
Ryan Dahl
ad487d3226
Add on('error') to http request example
...
for indexzero
2011-05-05 15:40:55 -07:00
Ryan Dahl
c409aab397
Assert, Debug output in normal default build
2011-05-04 21:41:01 -07:00
Ryan Dahl
75a0cf970f
cleartextstream.destroy() should destroy socket.
...
This fixes a critical bug see in MJR's production. Very difficult to build a
test case. Sometimes HTTPS server gets sockets that are hanging in a
half-duplex state.
2011-05-02 15:03:50 -07:00
Robert Mustacchi
9812e31e8b
Add reading/writing of C integers to buffers
2011-05-01 14:02:33 -07:00
Ben Noordhuis
82bc25d5ad
Remove oprofile flags in wscript.
...
V8 3.1.5 (commit 550f73a ) dropped oprofile support so don't pass
prof=oprofile to scons.
See http://codereview.chromium.org/6474037/
Fixes #998 .
2011-05-01 08:00:34 -07:00
Ryan Dahl
8d88c00b77
Merge branch 'v8-3.1' into v0.4
2011-04-30 11:38:55 -07:00
Ryan Dahl
eb57d1b9b1
Upgrade V8 to 3.1.8.14
2011-04-30 11:38:25 -07:00
koichik
fcc04e67c8
Fix SlowBuffer.write() with 'ucs2' throws ReferenceError.
2011-04-28 04:57:00 -04:00
koichik
1343ee8d54
Doc improvements.
2011-04-28 04:54:28 -04:00
isaacs
7c6f0147df
Better stream.pipe() tracking.
...
This commit does three things:
1. Uses an exposed counter rather than a hidden array for tracking dest
streams that may have multiple inputs. This allows for significantly
faster lookups, since the counter can be checked in constant time rather
than searching an array for the dest object. (A proper O(1) WeakMap
would be better, but that may have to wait for Harmony.)
2. Calls the 'end' event logic when there is an 'error' event on the
source object (and then throws if there are no other error listeners.)
This is important, because otherwise 'error' events would lead to
memory leaks.
3. Clean up the style a bit. Function Declarations are not allowed
within blocks in ES strict. Prefer Function Declarations to Function
Expressions, because hoisting allows for more expressive ordering of
logic.
Downside: It adds "_pipeCount" as part of the Stream API. It'll work
fine if the member is missing, but if anyone tries to use it for some
other purpose, it can mess things up.
2011-04-27 22:08:21 -07:00
Ryan Dahl
8a03cf7a7b
Fix docs for process.arch
2011-04-27 11:49:24 -04:00
isaacs
a7ce79124e
Add arch/platform to os module
2011-04-26 20:04:32 -07:00
Nathan Rajlich
b1be5409bd
Implement process.arch to get a String of the current processor architecture, with docs.
2011-04-26 19:56:10 -07:00
isaacs
bbffd9e502
Close #983 Better JSON.parse error detection
...
Previous pattern would only catch ILLEGAL, not { or other
known-but-unexpected JSON tokens.
2011-04-26 09:48:28 -07:00
Mark Cavage
a2328dc73c
Add support for Unix Domain Sockets to HTTP
...
fixes #979 .
2011-04-25 16:52:31 -07:00
George Miroshnykov
68c8a69f4c
Close #962 : Fixed typo in vm.runInNewContext docs.
...
EDIT: Also added another typo fix to this commit. --isaacs
2011-04-25 13:45:58 -07:00
isaacs
8df6f9e544
Close #974 Properly report traceless errors.
...
Also, tests for the same.
2011-04-25 12:22:18 -07:00
isaacs
8fd1c68f06
A test that running 100 stream pipes in parallel is ok
2011-04-22 19:33:23 -07:00
Ryan Dahl
0325a21ff3
Correct attribution
2011-04-22 19:04:43 -07:00
Ryan Dahl
621b024b6e
Bump bounds on #897 test - was too small for slow machines
2011-04-22 17:50:40 -07:00
Ryan Dahl
1f470b68d6
Now working on v0.4.8
2011-04-22 17:49:56 -07:00
Ryan Dahl
c85455a954
bump version to v0.4.7
2011-04-22 17:06:25 -07:00
Ryan Dahl
c8e447ee63
Fix timeouts with floating point numbers bug
...
fixes #897 .
2011-04-22 16:38:29 -07:00
Ryan Dahl
3ce5e6fe5e
Use better ports on the home page
2011-04-22 16:01:34 -07:00
Robert Mustacchi
ed657e9d46
Add loadavg for SunOS
2011-04-21 19:52:01 -07:00
Tim Baumann
6c7c4aeab6
Don't overwrite an user-specified repl.writer
2011-04-21 12:26:27 -07:00
Wade Simmons
d00739ce56
make it possible to do repl.start('', stream)
2011-04-21 12:20:50 -07:00
isaacs
0b3ecc05a6
Close #955 Change ^C handling in REPL
...
Press with text on the line: Cancels
Press on a bare line: Print a message
Press again on a bare line: Exit
2011-04-21 12:17:21 -07:00
Nebu
934c82b8b8
Partially documented the readline module.
2011-04-21 11:42:40 -07:00
isaacs
efca5f8e78
docs for chown/chmod
2011-04-20 16:04:46 -07:00
isaacs
3935adced0
GH-853 fs.lchown and fs.lchmod
2011-04-20 16:04:39 -07:00
isaacs
5cfac21852
GH-853 fs.fchmod and fs.fchown
2011-04-20 16:04:33 -07:00
isaacs
90802d628d
Close #954 URL parsing/formatting corrections
...
1. Allow single-quotes in urls, but escape them.
2. Add comments about which RFCs we're following for guidance.
3. Handle any invalid character in the hostname portion.
4. lcase protocol and hostname portions, since they are
case-insensitive.
2011-04-20 15:44:34 -07:00
Fedor Indutny
c9b40da368
OpenSSL NPN in node.js
...
closes #926 .
2011-04-19 11:32:26 -07:00
Ryan Dahl
9e6498d5fa
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-04-18 18:58:16 -07:00
Ryan Dahl
d3d35ec3ca
add docs for console object
2011-04-18 16:52:53 -07:00
Ryan Dahl
cbdd92e184
Add community link on homepage
2011-04-16 13:55:03 -07:00
Ryan Dahl
da9b3340eb
Add covhtml.js tool
2011-04-15 00:12:19 -07:00
Ryan Dahl
b4ff36a41b
Add --cov code coverage option
2011-04-14 23:42:08 -07:00
Ryan Dahl
ed316ae350
Docs: some encodings contains multibyte chars.
...
fixes #888
2011-04-14 15:11:35 -07:00
koichik
74d94b0dd1
Fix docs - Move module's description to right position
2011-04-14 14:40:50 -07:00
Felix Geisendörfer
80711b0ff9
Feature: WriteStream#bytesWritten property
...
Implemented a new property for writable file streams that keeps track
of the bytes written (not queued). This helps when you are piping
another stream to a file, and would like to know how big the file is
without having to issue another stat call.
closes #930
2011-04-14 14:26:46 -07:00
Felix Geisendörfer
6c5b31bd80
Fix: Multiple pipes to the same stream were broken
...
When creating multiple .pipe()s to the same destination stream, the
first source to end would close the destination, breaking all remaining
pipes. This patch fixes the problem by keeping track of all open
pipes, so that we only call end on destinations that have no more
sources piping to them.
closes #929
2011-04-14 14:12:01 -07:00
Ryan Dahl
8417870f51
Don't emit error on ECONNRESET - just close
...
Fix #670
2011-04-14 10:42:57 -07:00
Ryan Dahl
61100788ad
Now working on v0.4.7
2011-04-13 22:03:48 -07:00
Ryan Dahl
58002d56bc
Bump to v0.4.6
2011-04-13 21:20:05 -07:00
Ryan Dahl
bb621f7c2e
CryptoStream.write returns false when queue > 128kb
...
Previously the return value of write was dependent on if it was paused or
not which was causing a strange error demoed in the previous commit.
Fixes #892
2011-04-13 20:32:46 -07:00
Ryan Dahl
050bbf0bc4
TLS use RC4-SHA by default
2011-04-13 18:43:08 -07:00
Theo Schlossnagle
e2d9018535
SSL_OP_CRYPTOPRO_TLSEXT_BUG
...
fixes #873
2011-04-13 18:35:56 -07:00
Theo Schlossnagle
d6f5b8a2a6
allow setting of ciphers in credentials
...
fixes #873
2011-04-13 18:35:39 -07:00
Theo Schlossnagle
2a88dd3bc1
TLS: Add secureOptions flag
...
Also, secureOptions flag was added (and passed through) and allows
the context to have all supported SSL_OP_* set via createCredentials.
All SSL_OP_ flags (outside of ALL) have been added to constants.
2011-04-13 18:25:33 -07:00
Ryan Dahl
598792ba91
Merge branch 'v0.4'
...
Conflicts:
src/platform_sunos.cc
test/simple/test-os.js
2011-04-14 01:11:21 +00:00
Theo Schlossnagle
d0e84b0088
Pass secureProtocol through on tls.Server creation
...
The secureProtocol option to building the SSL context was not being properly
passed through in the credentials in the tls code. This is fixed.
2011-04-13 17:49:50 -07:00
Scott McWhirter
90348a616d
Add os.cpus() and os.uptime() support for sunos
2011-04-13 17:42:54 -07:00
Ryan Dahl
2f98451561
Revert "Add os.cpus() and os.uptime() support for sunos"
...
Cherry-pick fail. Breaks linux. Will land again shortly.
This reverts commit e8cf98c841 .
This reverts commit d953856d87 .
This reverts commit 752bbd6b42 .
2011-04-13 17:31:09 -07:00
Scott McWhirter
e8cf98c841
Add os.cpus() and os.uptime() support for sunos
2011-04-14 00:18:19 +00:00
Ryan Dahl
296ff04cdc
Test to demonstrate #892
2011-04-13 12:49:13 -07:00
Brian White
ac1da4b407
Add remoteAddress and remotePort for client TCP connections
...
https://groups.google.com/d/topic/nodejs-dev/Asr87_YFSkg/discussion
2011-04-13 10:24:28 -07:00
koichik
9533e879f0
Fix Buffer.write() with UCS-2 should not be write partial char
...
closes #916 .
2011-04-13 09:55:49 -07:00
Felix Geisendörfer
301f53c2aa
Allow omission of end option for range reads
...
Problem: Sometimes it is useful to read a file from a certain position
to it's end. The current implementation was already perfectly capable
of this, but decided to throw an error when the user tried to omit
the end option. The only way to do this, was to pass {end: Infinity}.
Solution: Automatically assume {end: Infinity} when omitted, and remove
the previous exception thrown. Also updated the docs.
closes #801 .
2011-04-13 09:46:28 -07:00
Ryan Dahl
af96447016
Modify text about buffer.write and partial chars
...
Fixes GH-913.
2011-04-13 01:27:00 -07:00
Nick Campbell
425b57bedc
Lowercase protocol and hostname since casing isn't significant.
...
Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com >
2011-04-13 01:10:47 -07:00
Jakub Lekstan
81cbd42cf5
Fixes the circular reference in vm modules.
...
Fixes the circular reference problem. Closes GH-822.
2011-04-12 15:51:57 -07:00
Ryan Dahl
9b3b37e498
Add docs about Buffer._charsWritten
...
Fixes GH-907.
2011-04-12 15:21:04 -07:00
Abe Fettig
83727a4c86
Fix bug where http response.readable was never set to false
...
Closes GH-867.
2011-04-12 14:55:18 -07:00
Felix Geisendörfer
bc8489580c
Allow to remove all EventEmitter listeners at once
...
This patch adds support for calling EventEmitter#removeAllListeners
with no parameters in order to remove all listeners as once.
See discussion: https://groups.google.com/forum/#!topic/nodejs-dev/Mcyal1ThTHY
Closes GH-889.
2011-04-12 14:47:16 -07:00
Ryan Dahl
0f47f63746
Fix doc - no setBodyEnocoding anymore
...
Thanks Frederic. Closes GH-859.
2011-04-11 17:30:36 -07:00
koichik
682b66c0c1
Auto completion of built-in debugger suggests prefix match rather than partial match.
2011-04-11 17:28:28 -07:00
koichik
ca028f4b37
Fix docs: There were 2 descriptions of 'request' event.
2011-04-11 17:27:24 -07:00
Scott McWhirter
d953856d87
Remove extra kstat_open
2011-04-11 17:03:50 -07:00
Scott McWhirter
752bbd6b42
Add os.cpus() support for sunos
2011-04-11 17:03:50 -07:00
Ryan Dahl
d2298d225c
Add documentation around module.exports and scope of global objects
...
Closes GH-852.
2011-04-11 17:01:25 -07:00
Ben Weaver
d63a551f86
Update how REPLServer uses contexts
...
* Always use `this.context` or `self.context`.
* Move `resetContext` to `REPLServer.createContext`.
* Add `REPLServer.resetContext`, memoize `context` here.
* Memoize `exports.repl` in `start`.
Closes GH-851.
2011-04-11 16:52:23 -07:00
Ryan Dahl
6b5a7033bb
Merge branch 'v8-3.1' into v0.4
2011-04-11 16:08:10 -07:00
Ryan Dahl
0b1920b202
Upgrade v8 to 3.1.8.10
2011-04-11 16:07:54 -07:00
Ryan Dahl
9ccf0e527f
Don't error on ENOTCONN from shutdown()
2011-04-11 15:33:24 -07:00
Ryan Dahl
bfa9db9dd6
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
test/simple/test-buffer.js
2011-04-03 23:42:56 -07:00
Ryan Dahl
dcc2dd5e1f
Add example to sha1 docs
2011-04-03 01:09:00 -07:00
George Stagas
3002c01f40
Changed script to vm and corrected order to match index
2011-04-02 02:35:44 -07:00
George Stagas
21e3b668cb
Added favicon.ico
2011-04-02 02:35:23 -07:00
Ryan Dahl
ffb3ee6084
Remove reference to CommonJS in documentation
2011-04-01 22:18:23 -07:00
Ryan Dahl
61d0b5af87
Now working on version v0.4.6
2011-04-01 19:06:41 -07:00
Ryan Dahl
787a343b58
Bump version to v0.4.5
2011-04-01 18:00:43 -07:00
isaacs
7ee8c5676b
Modify futimes test to allow ENOSYS
2011-04-01 17:41:42 -07:00
isaacs
6d85da185c
Closes GH-721 Set default host header properly
...
However, this test is failing for some quite unrelated issue.
Getting some odd "socket hangup" crashes, and only the first request
ever makes it to the server.
2011-04-01 17:40:41 -07:00
isaacs
e1a72f0e2e
Closes GH-535 Immediate pause/resume race condition
...
Calling resume() immediately after calling pause() would trigger
a race condition where it would try to read() from a file
descriptor that was already being read from, causing an EBADF
2011-04-01 17:40:19 -07:00
isaacs
4d64f36338
Closes GH-310 Format slashes properly
2011-04-01 17:40:19 -07:00
Ryan Dahl
a7254f3df9
Revert "Disable compression with OpenSSL."
...
This reverts commit 362785f704 .
2011-04-01 12:38:42 -07:00
Ryan Dahl
f2dd8dd2b9
Fix test/message/undefined_reference_in_new_context
...
Broke after 75db199 .
2011-04-01 12:36:58 -07:00
Ryan Dahl
362785f704
Disable compression with OpenSSL.
...
This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.
2011-04-01 09:49:25 -07:00
Ryan Dahl
4877279efa
Add timers to globals section
...
Closes GH-864.
2011-04-01 09:19:08 -07:00
Ryan Dahl
5c35dff419
Don't load root certs for each SSL context
2011-03-31 23:40:19 -07:00
Ryan Dahl
ad861e1354
Merge branch 'v8-3.1' into v0.4
2011-03-31 10:07:59 -07:00
Ryan Dahl
6631983dd1
Upgrade V8 to 3.1.8.8
2011-03-31 10:07:48 -07:00
Ryan Dahl
ed74db01f3
process.stderr.write should return true
2011-03-30 15:53:07 -07:00
Ryan Dahl
6394ba28c8
Add test for circular refs in deepEquals
...
Closes GH-207.
2011-03-30 10:18:58 -07:00
Ryan Dahl
75db1995b6
Don't conflict with V8's Script class
...
Closes GH-203.
2011-03-30 10:06:25 -07:00
Jorge Chamorro Bieling
e35b2d9617
docs: fs.read/write() cb()s now receive buffer
2011-03-29 12:23:42 -07:00
Ryan Dahl
038306a6c3
Closes GH-843. Fix SlowBuffer.prototype.slice
2011-03-29 10:47:14 -07:00
Ryan Dahl
1768c72135
Add doc note about STARTTLS
2011-03-29 09:58:50 -07:00
Ryan Dahl
c0b461d9a1
Increase TLS pool size for perf increase
2011-03-28 17:37:14 -07:00
Ryan Dahl
98b56636c0
Revert "Alphabetize the table of contents for the API docs"
...
This reverts commit a66e45693c .
2011-03-28 17:36:50 -07:00
Ryan Dahl
e9a1dd7930
Typo in docs
...
Thanks to Anatoliy Chakkaev for pointing it out.
Closes GH-841.
2011-03-28 15:59:43 -07:00
Brian White
a66e45693c
Alphabetize the table of contents for the API docs
2011-03-28 15:56:39 -07:00
Ryan Dahl
2f2c9d47fd
Remove strange unicode output in docs
2011-03-28 15:55:45 -07:00
David Trejo
6788ad413f
See the <doc> section are now links to <doc>
...
Closes GH-839.
2011-03-28 15:53:17 -07:00
Ryan Dahl
978a50c500
Remove exterraneous line
2011-03-28 15:46:36 -07:00
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
...
Closes GH-814.
Closes GH-827.
2011-03-28 15:28:55 -07:00
Mikeal Rogers
2a65d29625
Fix listener leak in stream.pipe()
2011-03-28 11:19:44 -07:00
Ryan Dahl
73ebea7a4d
Now working on v0.4.5
2011-03-26 02:00:11 -07:00
Ryan Dahl
25122b986a
Bump version to v0.4.4
2011-03-26 01:48:02 -07:00
Ryan Dahl
77044ed5fa
Turn off strictaliasing on solaris
2011-03-26 01:42:08 -07:00
Ryan Dahl
cbcb7fb019
Merge branch 'v8-3.1' into v0.4
2011-03-25 12:02:51 -07:00
Ryan Dahl
c8ee19a618
Upgrade V8 to 3.1.8.5
2011-03-25 12:02:38 -07:00
Arnout Kazemier
53bec1c862
Added support for removing .once listeners
...
Closes GH-806.
2011-03-25 11:51:29 -07:00
Ryan Dahl
0fb44a2f93
Add jobs.nodejs.org link
2011-03-23 19:24:09 -07:00
Ryan Dahl
69c3e1961b
Remove asciiSlice from docs
2011-03-23 15:02:11 -07:00
Zachary Scott
2b2736153d
clean up whitespace in examples
2011-03-22 14:39:30 -07:00
Zachary Scott
67913a0232
writable stream api has destroySoon() for exiting after data queue has been drained
2011-03-22 14:38:59 -07:00
Trevor Burnham
5e78f57087
Doc fix for fs.write
...
Closes GH-808
Closes GH-811
2011-03-22 14:34:25 -07:00
Trevor Burnham
f0d0fcc4aa
Clarifying that writeFile replaces existing file
2011-03-22 14:33:23 -07:00
Trevor Burnham
3ec391ba36
Correcting typo in docs: 'deprecated', not 'depreciated'
2011-03-22 14:33:23 -07:00
Ryan Dahl
4cc0a0878f
Better ifdef for futimes
2011-03-22 20:19:42 +00:00
isaacs
7bff70268a
signage warning, and add v8::namespace
2011-03-22 13:16:45 -07:00
Ryan Dahl
7a8c729830
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-03-22 13:12:07 -07:00
Ryan Dahl
8b33a1d8e4
Guard failed buffer constructions.
...
Thanks to Jeremy Barnes for pointing it out.
2011-03-22 13:10:53 -07:00
Ryan Dahl
f63120be78
Fix solaris build
2011-03-22 20:07:18 +00:00
Ryan Dahl
391f087981
Fix setsid in tty.open
...
Thanks to Leen Besselink for pointing this out.
Closes GH-815.
2011-03-22 12:02:35 -07:00
Ryan Dahl
24f9bf4180
expose https.Agent
2011-03-22 11:24:00 -07:00
Ryan Dahl
d7a86ff05e
Fix GH-819. Drop out if connection destroyed before connect()
2011-03-21 14:48:26 -07:00
Ryan Dahl
7e28630f5e
Fix GH-820. CryptoStream.end shouldn't throw if not writable
...
This matches the behavior of net.Socket
2011-03-21 14:36:49 -07:00
Ryan Dahl
4198de280f
Add video to index.html
2011-03-20 18:07:29 -07:00
Ryan Dahl
99068639d9
add demo to home page
2011-03-19 20:28:31 -07:00
Ryan Dahl
c8f5bf88e1
Use feedburner instead of wordpress
2011-03-18 15:49:26 -07:00
Ryan Dahl
4ae5e085ff
Now working on v0.4.4
2011-03-18 15:19:12 -07:00
Ryan Dahl
c095ce1a1b
bump version to v0.4.3
2011-03-18 14:25:20 -07:00
Ryan Dahl
5b161b09a3
Merge branch 'v8-3.1' into v0.4
2011-03-18 14:24:37 -07:00
Ryan Dahl
53dc74e12f
Upgrade V8 to 3.1.8.3
2011-03-18 14:22:52 -07:00
Ryan Dahl
aeed966fe0
Don't call GetMemoryUsage every 5 seconds
2011-03-18 11:39:44 -07:00
koichik
5ccdff48f3
Document 'ucs2' encoding for Buffer
2011-03-18 11:23:37 -07:00
Aaron Heckmann
a4dad95be3
EventEmitter#once only takes instanceof function
2011-03-18 11:18:40 -07:00
Brian White
52b9ede6db
Add helpful error message for setuid/setgid when user/group id does not exist
2011-03-18 11:15:02 -07:00
Ryan Dahl
602a4637bf
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-03-18 11:11:43 -07:00
Dean McNamee
f67e8f243c
Export more functions for initializing and starting node.
...
For greater flexibility in controlling node's initialization and startup, the
following new functions are exported.
- node::Init()
- node::SetupProcessObject()
- node::Load()
- node::EmitExit()
These are some of the major steps involved in node::Setup(). Exporting these
functions allows an embedding program to write a replacement for node::Start(),
and to have access to the node process object after it's created.
2011-03-18 11:11:25 -07:00
Dean McNamee
4a6f4511c8
Don't override explicit openssl paths with pkg-config results.
2011-03-18 11:11:10 -07:00
Ryan Dahl
66570c1964
Fix double free of parser on error in http.Agent.
...
Thanks to Stéphan Kochen for the fix and Maurice Fonk for reproducing the
bug.
Closes GH-784.
Closes GH-803.
2011-03-18 10:42:43 -07:00
Ryan Dahl
975d020286
Fix gcc version checking for aliasing features
2011-03-18 10:01:45 -07:00
Ryan Dahl
af923154e2
hello.txt should be stored in tmpdir
2011-03-18 09:14:15 -07:00
Ryan Dahl
f10150bc6a
Don't use https for blog.nodejs.org
2011-03-17 13:49:32 -07:00
Ryan Dahl
c02db3229e
Link to Node blog
2011-03-17 13:38:44 -07:00
Ryan Dahl
b368a3b438
Remove bad assert in GetInterfaceAddresses
2011-03-17 12:49:47 -07:00
Daniel Ennis
911cbd0cef
Add support for file descriptor type detection.
...
setImplementationMethods checks the type of a socket and defines different
behavior based on the type, so auto detect it if type not implicitly
specified.
2011-03-17 10:35:47 -07:00
Ryan Dahl
19e53512b8
os.getNetworkInterfaces()
2011-03-16 16:34:12 -07:00
Ryan Dahl
6111c17a0e
correct hexSlice end
2011-03-15 11:42:23 -07:00
isaacs
3c9fb3ec1a
Fix invalid end handling for SlowBuffer#hexSlice
2011-03-15 11:39:11 -07:00
Ryan Dahl
4a9f2de956
Allow script to be read from stdin
2011-03-15 10:50:24 -07:00
Ryan Dahl
59f7232a30
Simplify startup function in src/node.js
2011-03-15 10:35:49 -07:00
Ryan Dahl
566c67b758
Working on v0.4.3-pre - oops
2011-03-15 02:53:59 +00:00
Ryan Dahl
61fdfcb137
Fix comment in node_provider.d
2011-03-15 02:50:52 +00:00
Ryan Dahl
ab190d38b7
Fix buffer.toString('hex')
2011-03-14 18:24:28 -07:00
Ryan Dahl
3c0dd8196a
Fix test-process-uptime.js test
2011-03-14 17:50:24 -07:00
Ryan Dahl
247d880113
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-03-14 17:45:15 -07:00
Ryan Dahl
55048cdf79
Update copyright headers
2011-03-14 17:37:05 -07:00
Ryan Dahl
36e75b7351
Fix HTTP agent disconnection problem
...
https://groups.google.com/forum/#!topic/nodejs-dev/V5fB69hFa9o
Closes GH-787.
2011-03-14 14:47:41 -07:00
Felix Geisendörfer
9d4c5a12f4
Crypto update should only accept strings / buffers
...
I have seen a lot of people trying to pass objects to crypto's update
functions, assuming that it would somehow serialize the object before
hashing.
In reality, the object was converted to '[object Object]' which was
then hashed, without any error message showing.
This patch modifies the DecodeBytes function (used exclusively by
crypto at this point) to complain when receiving anything but a
string or buffer.
Overall this should be a less-suprising, more robust behavior.
2011-03-14 13:16:31 -07:00
Ryan Dahl
2a05fe784d
Do not use defineGetter in src/node.js for better crankshaft perf
...
See: https://groups.google.com/d/topic/nodejs/xJqpp1_s6is/discussion
2011-03-14 12:48:37 -07:00
Theo Schlossnagle
e3925b741c
TLS: Finer locks on _cycle.
...
Data being sent out of order.
2011-03-14 12:05:25 -07:00
Ryan Dahl
2e40328c82
Extend OpenSSL expiration dates
2011-03-14 11:30:21 -07:00
koichik
414fa4abae
Better type checks for fd in net.js
2011-03-11 16:34:12 -08:00
koichik
113b1e6e0c
Fix GH-746 process.stdin.destroy() breaks http server
2011-03-11 16:33:07 -08:00
Theo Schlossnagle
2a61e1cd49
without this the server will not advertise support for client certs
...
Closes GH-774.
2011-03-11 16:14:39 -08:00
Ryan Dahl
12c02b378d
Use pthread_kill for V8/Solaris sampling
2011-03-11 03:08:42 +00:00
Ryan Dahl
6802c90d1f
Sample correct registers on Solaris
...
http://codereview.chromium.org/6676019/
2011-03-11 03:06:43 +00:00
Ryan Dahl
97853e07de
Use default backend for __sun (event ports)
2011-03-11 03:04:25 +00:00
Ben Noordhuis
594642b31d
Buffer::Length(Buffer*) should not invoke itself recursively.
...
Closes GH-759.
2011-03-10 14:06:01 -08:00
Ryan Dahl
9a8e843ca3
Document options for https.request
...
Closes GH-768.
2011-03-10 13:34:50 -08:00
Ryan Dahl
e14aa64591
Fix V8 runtime profiler for solaris
2011-03-10 12:48:49 -08:00
koichik
4e047d32b0
Document net.Socket() constructor
2011-03-10 10:57:47 -08:00
Ryan Dahl
62f06fb885
CryptoStream.prototype.destroySoon shouldn't die if not writable
2011-03-09 10:53:06 -08:00
Ryan Dahl
161f7aacf7
Add missing v8:: namespace prefix
2011-03-09 10:07:25 -08:00
Tom Hughes
2c185a9dfd
Use higher resolution clock for uptime on Linux (if available).
2011-03-09 09:16:11 -08:00
Tom Hughes
74954ce7d8
Add string class that uses ExternalAsciiStringResource.
...
Change the natives to use this class instead of creating completely new
strings. Reduces memory usage by about 1 MB.
2011-03-08 13:56:41 -08:00
Tony Huang
502900c0bc
add path.relative
2011-03-08 11:03:21 -08:00
Ryan Dahl
81d3de7e6d
setMaxListeners should initialize _events
2011-03-07 13:16:00 -08:00
Tom Hughes
7a272d92e3
cmake: explicitly disable fdatasync when building for OSX.
...
This ensures that the check_function_exists() for fdatasync in the
libeio CMakeLists.txt is not run, since that fails on some versions of
OSX (http://public.kitware.com/Bug/view.php?id=10044 ).
2011-03-07 10:47:29 -08:00
Tom Hughes
cf78ce59b3
Add process.uptime().
2011-03-07 10:45:25 -08:00
koichik
db6ea10948
Correct some links
2011-03-07 10:17:54 -08:00
koichik
07426ef29c
Document allowHalfOpen for net.createServer()
2011-03-07 10:17:22 -08:00
Andreas Reich
5e91042fcb
Don't decrease server connection counter again if destroy() is called more than once
...
Test: Anders Conbere <aconbere@gmail.com >
Fix: Andreas Reich <andreas@reich.name >
Closes GH-431.
Closes GH-502.
2011-03-04 15:45:12 -08:00
Ryan Dahl
39280e1b57
Bump version to v0.4.2
2011-03-02 22:10:26 -08:00
Ryan Dahl
fbe36a7ca9
Revert "Closes GH-85 Emit error rather than throwing."
...
This reverts commit f3d364122d .
Landed in master instead.
2011-03-02 22:10:16 -08:00
isaacs
11a06fe1e4
Closes GH-85 Emit error rather than throwing.
...
Since "error" events will throw when unhandled anyhow, it makes no sense
to throw from an EventEmitter's method, especially for such a minor
misdemeanor as attempting to write to a non-writable stream.
2011-03-02 22:09:39 -08:00
Ryan Dahl
ca8be39b9e
Disable test-http-agent2.js for the moment
...
Still broken.
2011-03-02 21:21:29 -08:00
Bert Belder
b3884c574b
Autodetect no-strict-aliasing, propagate toolchain option to SCons
...
BUG=v8:884
2011-03-02 21:06:17 -08:00
Ryan Dahl
14475c77a6
Upgrade V8 to 3.1.8
2011-03-02 21:04:37 -08:00
Tom Hughes
cf7b680db9
newline should also be treated as "enter" key.
2011-03-02 21:00:06 -08:00
Ben Noordhuis
1d5ff15a46
fs.utimes() and fs.futimes() support.
2011-03-02 20:35:45 -08:00
koichik
452df69964
Correct net.createServer() API docs
2011-03-02 12:10:36 -08:00
koichik
4e7c37b87c
Fix fs.WriteStream.end(data, [encoding]) throws TypeError
2011-03-01 10:49:20 -08:00
Ryan Dahl
4ab5476e89
SIGUSR1 should break the VM without delay
2011-03-01 09:59:17 -08:00
Ryan Dahl
5f95d9a75d
Remove -Werror from V8
2011-02-28 12:58:15 -08:00
isaacs
bc8e9b340d
Closes GH-734 Do the setuid() after chdir()
2011-02-28 12:37:59 -08:00
Bert Belder
4a34692903
Autodetect no-strict-aliasing, propagate toolchain option to SCons
...
BUG=v8:884
2011-02-28 11:30:07 -08:00
Ryan Dahl
6442cbef20
Upgrade V8 to 3.1.7
2011-02-28 11:29:33 -08:00
Ryan Dahl
a14bb04c05
tty.setWindowSize should use the correct function
...
Thanks to Matthew Woolman
2011-02-28 11:19:10 -08:00
Felix Geisendörfer
0304f1fc22
Expose errno with a string for dns/cares
...
This is to mirror the behavior introduced in
aa95e5708f .
Closes GH-727.
2011-02-28 09:54:16 -08:00
isaacs
d664bf376d
Closes GH-711 URL parse more safely
...
This does 3 things:
1. Delimiters and "unwise" characters are never included in the
hostname or path.
2. url.format will sanitize string URLs that are passed to it.
3. The parsed url's 'href' member will be the sanitized url, which may
not match the argument to url.parse.
2011-02-27 17:17:40 -08:00
isaacs
3599c71dae
Closes GH-690 node_modules folders should be highest priority
2011-02-27 17:14:16 -08:00
isaacs
a48f73d0d3
Closes GH-232 Make the repl's global the right thing
2011-02-27 17:13:52 -08:00
isaacs
f3d364122d
Closes GH-85 Emit error rather than throwing.
...
Since "error" events will throw when unhandled anyhow, it makes no sense
to throw from an EventEmitter's method, especially for such a minor
misdemeanor as attempting to write to a non-writable stream.
2011-02-27 17:08:14 -08:00
isaacs
2cfe7b847d
Closes GH-184 Clear require cache on repl .clear
2011-02-27 17:07:08 -08:00
koichik
0a51a6d3ac
Fix process.stdout.end() throws ENOTSOCK error.
2011-02-27 13:06:08 -08:00
Ryan Dahl
8838e14ac0
Merge branch 'v0.4'
2011-02-25 16:48:48 -08:00
Ryan Dahl
f918e57f8b
Support dtrace for debug build
2011-02-25 16:48:19 -08:00
Russell Haering
7276ff9822
http: fix missing 'drain' events
2011-02-24 17:39:59 -08:00
Ryan Dahl
ea9f5b110a
Add 'close' and 'aborted' events to Agent responses
...
Closes GH-722.
2011-02-24 17:16:13 -08:00
Ryan Dahl
360885a7e9
deprecate http.cat
2011-02-24 17:06:46 -08:00
Ryan Dahl
839fb8e19b
typos
2011-02-24 16:36:43 -08:00
Nathan Rajlich
a9a252fda9
Read up the prototype of the 'env' object.
...
Closes GH-713.
2011-02-24 16:36:23 -08:00
Aria Stewart
8a50f23fd3
Add support for specifying the libdir
...
Some OSes use "lib64" rather than "lib", and this lets them override
in waf to accomplish this.
Closes GH-712.
2011-02-24 16:28:45 -08:00
Aria Stewart
fd713e1dc7
libeio and http_parser build with PIC code
...
Fix building as a shared library
Closes GH-708.
2011-02-24 16:19:43 -08:00
Felix Geisendörfer
66601f13d9
Do not cache modules that throw exceptions
...
If a module throws an exception on load, it should not be cached.
This patch shows the problem in a test case and also fixes it.
See: https://groups.google.com/forum/#!topic/nodejs-dev/1cIrvJcADbY
Closes GH-707
Closes GH-710
2011-02-24 16:14:04 -08:00
Ryan Dahl
a2f498a5ef
Revert "Add extra debug print statement to tls.js"
...
This reverts commit 340291c085 .
sometimes circular. would break node_g tests.
2011-02-24 15:59:40 -08:00
Ryan Dahl
1f50d711b2
Fix memleak in vm.runInNewContext
...
Closes GH-704.
2011-02-24 15:46:55 -08:00
Bert Belder
df15472d34
Autodetect no-strict-aliasing, propagate toolchain option to SCons
...
BUG=v8:884
2011-02-24 13:47:14 -08:00
Ryan Dahl
e33e7d1a37
Upgrade V8 to 3.1.6
2011-02-24 13:14:59 -08:00
Felix Geisendörfer
2680522d3a
Fix ReadStream bufferSize docs
...
The default is 64kb buffer, not 4kb.
Closes GH-702.
2011-02-24 12:46:17 -08:00
Felix Geisendörfer
06ac129903
Document existence of fd property for ReadStream
...
Closes GH-194.
Closes GH-701.
2011-02-24 12:44:21 -08:00
Felix Geisendörfer
f423ec90fc
In addition to 'aborted' emit 'close' from incoming requests
...
Closes GH-160.
2011-02-24 12:41:51 -08:00
Ryan Dahl
5287703cce
Pragma HTTP header comma separation
...
Closes GH-715, GH-716.
2011-02-24 12:02:22 -08:00
Ryan Dahl
b309192ffd
Use default backend for __sun (event ports)
2011-02-23 17:04:21 -08:00
Ryan Dahl
45adc907c9
ry/node -> joyent/node
2011-02-23 16:38:34 -08:00
Ryan Dahl
340291c085
Add extra debug print statement to tls.js
2011-02-23 16:38:30 -08:00
cloudhead
a91b140963
fix process.on edge case with signal event
...
When adding a listener for a signal event, removing it, and
adding it back again, it triggers a condition with an
undefined variable.
2011-02-23 12:57:05 -08:00
Ryan Dahl
0248c87ec7
improve hello-world example on website
2011-02-23 12:56:50 -08:00
Ryan Dahl
ab144f4843
Add TODO item
2011-02-23 04:43:13 -08:00
Ryan Dahl
47f5fd01e1
Add example to TTY documentation
2011-02-20 13:53:40 -08:00
Ryan Dahl
df215a67d4
Document path.existsSync()
...
Closes GH-677.
2011-02-20 13:11:55 -08:00
Ryan Dahl
4ed6688010
Add V8 options to man page
2011-02-19 20:56:20 -08:00
Ryan Dahl
7dad30afe9
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-02-19 19:26:56 -08:00
isaacs
0aa1a8a005
Closes GH-695 Add 'hex' encoding to Buffer
2011-02-19 19:24:23 -08:00
Ryan Dahl
e5a472229b
Now working on v0.4.2
2011-02-19 19:06:10 -08:00
Ryan Dahl
e8aef84191
Bump version to v0.4.1
2011-02-19 18:45:34 -08:00
Ryan Dahl
c2a62951f6
TLS sockets should not be writable after 'end'
...
Closes GH-694.
2011-02-19 18:25:15 -08:00
Ryan Dahl
c72ae27be1
test-tls-securepair-server: don't shutdown stdout
2011-02-19 16:56:56 -08:00
isaacs
8b9dbdad27
Closes GH-687 Don't read fs read stream if not open
2011-02-19 16:38:21 -08:00
Brian White
1efac74958
Fix os.cpus() on cygwin
2011-02-19 15:14:07 -08:00
Ryan Dahl
98515742b7
Merge branch 'v0.4'
2011-02-18 14:01:34 -08:00
Ryan Dahl
1fce3f0ef8
Add startup memory script to benchmarks
2011-02-18 14:01:04 -08:00
Ryan Dahl
ebfc90b505
Remove test-http-eof-before-eom - wasn't testing anything important
2011-02-18 11:30:52 -08:00
Ryan Dahl
26e580bbc4
Use console.error in test-timers
...
In attempt to understand buildbot failures.
2011-02-18 11:20:45 -08:00
Tom Hughes
3313ff1d1b
cmake: dtrace support.
2011-02-18 10:45:25 -08:00
Tom Hughes
9d49c93cb5
cmake: Add gdbjit and oprofile options.
2011-02-18 10:45:17 -08:00
Tom Hughes
de2686c3e1
cmake: cleanup.
2011-02-18 10:45:04 -08:00
Tom Hughes
8bedde464f
cmake: Fix mac snow leopard build.
2011-02-18 10:44:58 -08:00
Tom Hughes
6a594fed96
cmake: set pre and post memcheck commands.
...
We need to clear out and re-create the tmp directory when running
valgrind just like for the normal test run.
2011-02-18 10:44:36 -08:00
isaacs
f8defa3e09
package.json main as indexed subdir
...
Closes GH-686.
2011-02-18 10:43:06 -08:00
Ryan Dahl
aac5cbe025
HTTP Agent sockets should not reconnect on error
...
Closes GH-684.
2011-02-18 10:40:09 -08:00
Ryan Dahl
9b0c7618c5
HTTP Agent should not die on evil server
...
Closes GH-680.
2011-02-18 00:42:07 -08:00
Matt Ranney
ab969bfaf8
Add failing test for broken HTTP responses with extra bytes.
...
For GH-680.
2011-02-18 00:08:05 -08:00
Ryan Dahl
15a6aa7500
Add more broken tests
2011-02-17 21:06:16 -08:00
Ryan Dahl
7e4f755073
Install node.d in the correct place
2011-02-17 11:07:19 -08:00
Bert Belder
25ce5016f4
Fix test runner bug on windows
2011-02-17 10:52:28 -08:00
Bert Belder
874321298b
Make libev work on MinGW again
2011-02-17 10:47:04 -08:00
Bert Belder
a5e67ad9e7
Autodetect no-strict-aliasing, propagate toolchain option to SCons
...
BUG=v8:884
2011-02-17 10:46:38 -08:00
Ryan Dahl
7f78e5857f
Move test-tls-throttle to pummel
2011-02-16 18:12:08 -08:00
Ryan Dahl
19b4c27ebf
TLS: Make _cycle reentrant.
2011-02-16 18:10:53 -08:00
Ryan Dahl
89bfa419a5
Make test-http-curl-chunk-problem more portable
...
Use 'openssl sha1' instead of 'shasum'
2011-02-16 13:17:19 -08:00
Ryan Dahl
e0e52f930e
Remove artificial timeout from test-https-large-response
2011-02-16 12:22:48 -08:00
Ryan Dahl
470ebe249f
Upgrade libev to 4.4
2011-02-16 12:07:58 -08:00
Bert Belder
b1664daeb9
V8 Cygwin support
2011-02-16 12:04:44 -08:00
Ryan Dahl
550f73ae3e
Upgrade V8 to 3.1.5
2011-02-16 10:38:49 -08:00
Bert Belder
3ef6433255
MinGW: OpenSSL support
2011-02-15 20:15:46 -08:00
Ryan Dahl
c365f56061
https was missing 'end' event sometimes
...
Closes GH-671.
2011-02-15 17:13:53 -08:00
Tj Holowaychuk
42a369620f
Fixed null signal preservation
...
Closes GH-674.
2011-02-15 16:35:50 -08:00
Ryan Dahl
60ad3aa917
Disable test-tls-large-push, taking too long
2011-02-15 14:06:23 -08:00
Felix Geisendörfer
e56ee67e13
Refactor fs.open parameter handling
...
Improvements:
* Removes an unnecessary variable
* Avoids having two variables with the same name
* Avoids re-declaring an existing parameter
* Removes an unnecessary ternary operator
* Avoid an inline short-circuit expression for greater clarity.
2011-02-15 13:57:54 -08:00
Felix Geisendörfer
aabdd5d045
Correct fs.open API documentation
...
The fact that the mode parameter is optional for fs.open and
fs.openSync was not documented.
2011-02-15 13:57:41 -08:00
Felix Geisendörfer
29b0dc4ec8
Fix: fs.open callback did not fire
...
Problem: Omitting the mode parameter causes the provided callback
parameter to never fire. This was originally fixed in 6078c37b and
later broken in 5f2e9093 .
Solution: Overwriting the value of a parameter also overwrites the
reference in the arguments object. This patch works arround this
fact by not touching the mode parameter until a reference to the
callback has been established.
2011-02-15 13:50:59 -08:00
Bert Belder
a293f90db4
Improve V8 support for Cygwin
...
Should re-enable crankshaft; can build w/ snapshot again.
2011-02-15 12:29:59 -08:00
Ryan Dahl
77ae87d367
default to port 80 for http.request
2011-02-15 12:08:26 -08:00
Ryan Dahl
0474ce6790
Revert "buffer.toString() shouldn't include null values"
...
This reverts commit 909a5b39d2 .
Will fix inside V8's String::New instead.
2011-02-15 12:07:43 -08:00
Ryan Dahl
ad7c2a8938
escape chars on man page
2011-02-14 18:37:43 -08:00
Ryan Dahl
daeb5c9e8f
fix doc
...
thanks Toshihiro
2011-02-14 18:35:36 -08:00
Ryan Dahl
bd094103d7
Add script for running V8 benchmarks
2011-02-14 17:26:54 -08:00
Richard Rodger
b11d78b386
Fix for DNS fail in HTTP request
...
Closes GH-653.
2011-02-14 16:36:23 -08:00
Ryan Dahl
909a5b39d2
buffer.toString() shouldn't include null values
2011-02-14 14:27:02 -08:00
Ryan Dahl
f11e730444
Working on v0.5.0
2011-02-14 14:27:00 -08:00
isaacs
f07041e6cd
Make the repl respect node_modules folders.
...
This is important so that in the future, this will work:
$ cd ~/dev/js/some-project
$ npm install redis
$ node
> require.resolve('redis')
'/Users/isaacs/dev/js/some-project/node_modules/redis/index.js'
2011-02-14 13:43:22 -08:00
Tj Holowaychuk
fe838611f6
Fixed field merging with progressive fields on writeHead()
2011-02-14 13:40:31 -08:00
Ryan Dahl
c6712ced20
Add newline to platform-cygwin.cc
2011-02-14 09:36:28 -08:00
Ryan Dahl
5ceefec820
Add http client to v0.4 announcement
2011-02-14 09:36:08 -08:00
Ryan Dahl
485ce139fd
Now working on v0.4.1
2011-02-14 09:36:02 -08:00
Ryan Dahl
eb155ea6f6
Bump version to v0.4.0
2011-02-10 02:40:11 -08:00
Tim Caswell
b09c5889be
Add support for mutable/implicit headers for http.
...
This works for both ServerResponse and ClientRequest.
Adds three new methods as a couple properties to to OutgoingMessage objects.
Tests by Charlie Robbins.
Change-Id: Ib6f3829798e8f11dd2b6136e61df254f1564807e
2011-02-10 02:31:41 -08:00
Theo Schlossnagle
01a864a29d
TLS: CRL support
...
Needs more tests.
2011-02-10 00:49:15 -08:00
Mikeal Rogers
634e7236f7
Add 'pipe' event
2011-02-09 23:04:35 -08:00
Bert Belder
583f2e5999
Follow-up fix for v8 cygwin build
2011-02-09 21:55:59 -08:00
Bert Belder
fd013d17a2
V8 cygwin support
2011-02-09 19:13:31 -08:00
Ryan Dahl
67e352e4b1
fix verifier.verify() docs
...
Thanks Sitelier. Closes GH-651.
2011-02-09 19:07:19 -08:00
Ryan Dahl
e9257b859d
New DTrace probes from CA team
2011-02-09 18:50:26 -08:00
Ryan Dahl
778fb859c6
New keys, agent1-cert.pem was expired
2011-02-09 18:30:47 -08:00
Ryan Dahl
8cd07bb273
TLS: handle cert chains
2011-02-09 17:51:05 -08:00
Ryan Dahl
43bc1d7ec8
Edit module docs
2011-02-09 17:48:22 -08:00
isaacs
ff39d413a3
Document module loading
2011-02-09 17:34:21 -08:00
Bert Belder
35e32225d1
Workaround for V8 bug 884
...
See http://code.google.com/p/v8/issues/detail?id=884
2011-02-09 14:53:15 -08:00
isaacs
81b4d45354
Better assert in the node_modules tests
2011-02-09 14:35:08 -08:00
isaacs
46513483cd
node_modules module lookup, +docs and test.
2011-02-09 14:24:22 -08:00
Ryan Dahl
dafd6d9137
TLS: Don't give up if you can't write 0 bytes
2011-02-09 13:27:23 -08:00
Ryan Dahl
a0702b54d1
Upgrade V8 to 3.1.2
2011-02-09 10:24:26 -08:00
Ryan Dahl
a48a075535
better debug messages in net and tls
2011-02-09 10:23:26 -08:00
Ryan Dahl
56ab929c55
Remove unused parameter from crypto::Handle*Error
2011-02-09 01:30:31 -08:00
Bert Belder
8d70294c31
Fix fs.realpathSync on windows
2011-02-08 21:24:30 -08:00
Bert Belder
36846f9b6b
Windows: child process fixes
2011-02-08 21:21:39 -08:00
Ryan Dahl
519dc2c114
tls: split bio errors from ssl errors
2011-02-08 21:15:55 -08:00
isaacs
9bed5dcb2c
Support caching for realpath, use in module load
...
This adds support for a cache object to be passed to the
fs.realpath and fs.realpathSync functions. The Module loader keeps an
object around which caches the resulting realpaths that it looks up in
the process of loading modules.
This means that (at least as a result of loading modules) the same files
and folders are never lstat()ed more than once. To reset the cache, set
require("module")._realpathCache to an empty object. To disable the
caching behavior, set it to null.
2011-02-08 18:02:59 -08:00
Ryan Dahl
9de5043b50
tls: only emit data after 'secure' event
2011-02-08 17:29:33 -08:00
Bert Belder
38d8cd60ea
Don't make unnecessary getcwd calls from path.resolve
2011-02-08 14:30:24 -08:00
Ryan Dahl
6b50a9f5f4
(won't) fix test-next-tick-ordering
2011-02-07 21:15:58 -08:00
Ryan Dahl
448e0f4394
tls fixes
2011-02-07 21:11:43 -08:00
Bert Belder
61af4207da
Fix dns on windows
2011-02-07 15:30:17 -08:00
Ryan Dahl
3ec030535c
stderr should be EventEmitter even if it doesn't emit anything
2011-02-07 15:14:21 -08:00
isaacs
2e6a263e29
Closes GH-609 Support array-ish args to Buffer ctor
...
Any array-ish thing (whether a Buffer, an Array, or just an object with
a numeric "length") is interpreted as a list of bytes.
2011-02-07 14:13:18 -08:00
isaacs
5f2e90934e
Support octal strings for modes
...
This allows the various fs utilities and process.umask to be used in
ECMAScript 5 Strict Mode, where the octal literal format is verboten,
without requiring users to litter their code with a bunch of parseInt
calls.
2011-02-07 14:05:06 -08:00
Ryan Dahl
57fa247f53
Closes GH-645. Document tty.getWindowSize
2011-02-07 13:46:15 -08:00
Konstantin Käfer
9e101f2b01
UCS-2 support
...
Closes GH-644.
2011-02-07 13:35:06 -08:00
Ryan Dahl
bf8f4aa966
Impove fs.WatchFile doc
2011-02-07 13:11:03 -08:00
Russell Haering
e6ede31554
http: fix buffer writes to outgoing messages
2011-02-07 12:59:25 -08:00
Daniel Gröber
71a8a3b78c
cmake fixes
...
Closes GH-640.
2011-02-07 12:52:20 -08:00
Ryan Dahl
a98d0717e8
Remove incorrect doc about node_modules
2011-02-07 12:50:05 -08:00
isaacs
da2f4b2dc4
support for package.json
...
This adds basic support for situations where there is a package.json
with a "main" field. That "main" module is used as the code that is
loaded when the package folder is required.
2011-02-07 11:00:22 -08:00
koichik
45c0faf399
corrected small typos
2011-02-07 10:52:19 -08:00
Mikeal Rogers
2b03ba5917
http: agent takes options instead of host, port pair
2011-02-05 02:35:44 -08:00
Ryan Dahl
0da96cca59
typo
2011-02-04 23:05:25 -08:00
Ryan Dahl
30f24bb2df
Now working on v0.4.0
2011-02-04 19:54:18 -08:00
Ryan Dahl
9493b7563b
Bump version to v0.3.8
2011-02-04 19:35:43 -08:00
Ryan Dahl
4733d0b1f0
http: handle aborts
2011-02-04 18:07:00 -08:00
Ryan Dahl
c783aefb0f
http-parser: Error on EOF errors
2011-02-04 18:07:00 -08:00
Ryan Dahl
e42c74e141
Upgrade http-parser
2011-02-04 18:03:26 -08:00
Bert Belder
f99fc29e62
Fix mingw build
2011-02-04 14:49:50 -08:00
Bert Belder
6329633a3e
Windows: open files in binary mode
2011-02-04 14:43:41 -08:00
Ryan Dahl
aa95e5708f
Expose errno with a string.
2011-02-04 14:41:51 -08:00
Ryan Dahl
1a7830a92a
Fix debug flag in timers.js
2011-02-04 09:00:21 -08:00
Ryan Dahl
c10caca34c
Style
2011-02-03 16:58:05 -08:00
isaacs
2f1f22ab26
module: define functions only once.
2011-02-03 14:23:28 -08:00
Bert Belder
8ee9c53c77
Fix problem with libev/select on windows.
...
Patch by Marc Lehmann.
This fix should be included in the next libev release.
2011-02-03 14:05:51 -08:00
Bert Belder
d8d627e2d4
Revert "Workaround for libev handle caching bug on windows"
...
This reverts commit 25d0e38048 .
2011-02-03 14:05:40 -08:00
Ryan Dahl
bc23ec8d05
Add process.stderr stream
2011-02-03 14:03:44 -08:00
Ryan Dahl
f6e5b8986f
Clean up
2011-02-03 12:28:20 -08:00
Ryan Dahl
97f7c06451
TLS: fix throttling
...
Re-enable test-https-large-response.js
Closes GH-614.
2011-02-03 12:20:19 -08:00
Ryan Dahl
3e58696c07
TLS: Simplify error handling
2011-02-02 15:39:03 -08:00
Ryan Dahl
41b4ec7952
TLS: flush buffer before destroy
...
Also disable test-https-large-response.js. Covered by
test/simple/test-tls-throttle.js
2011-02-02 15:34:21 -08:00
Ryan Dahl
e6f14d6df5
(suck, blow) -> (pull, push)
2011-02-02 14:51:53 -08:00
Ryan Dahl
ee092f62ca
Upgrade V8 to 3.1.1
2011-02-02 11:44:25 -08:00
isaacs
f86ec1366f
Closes GH-619 Make require.main be the main module
2011-02-02 11:18:34 -08:00
Ryan Dahl
807fca6803
TLS: Set ssl.receivedShutdown after each read
...
Closes GH-613.
2011-02-01 14:40:17 -08:00
Ryan Dahl
2ff593ad23
TLS: better error reporting at binding layer
...
Closes GH-612.
2011-02-01 14:14:50 -08:00
Jorge Chamorro Bieling
ff7fc093a1
Longer nexttick ordering test
...
Closes GH-604.
2011-02-01 10:23:03 -08:00
Joe Walnes
df6e497793
dgram: setMulticastTTL, setMulticastLoopback and addMembership.
...
These are options needed for real-world multicasting.
Implementation notes:
- POSIX only.
- IPv4 only (IPv6 multicast is a tricky beast).
- Didn't update tests, because it can't effectively be demonstrated on
localhost only.
2011-02-01 10:16:48 -08:00
Ryan Dahl
3e5b568504
TLS: Add _pendingBytes()
2011-01-31 17:29:11 -08:00
Ryan Dahl
33e8e3d799
Add simpler failing tls throttle test
2011-01-31 16:38:05 -08:00
Ryan Dahl
45b30a879b
tls: superficial clean up
2011-01-31 16:37:29 -08:00
Bert Belder
9526fef626
Workaround for V8 bug 884
...
See http://code.google.com/p/v8/issues/detail?id=884
2011-01-31 13:26:46 -08:00
Ryan Dahl
0634e3a8bc
Upgrade V8 to 3.1.0
2011-01-31 13:19:50 -08:00
Ryan Dahl
c501785112
Make availability of UDP bindings more apparent
2011-01-31 11:20:05 -08:00
Ryan Dahl
9f3a20c76d
net: Add hook for when writeQueue changes
2011-01-31 11:01:59 -08:00
Ryan Dahl
ef123600ce
Add artificial timeout to broken test-https-large-response
2011-01-31 10:44:08 -08:00
Ryan Dahl
6ede26cb9c
Add socket.bufferSize
2011-01-31 10:41:52 -08:00
Tim Caswell
845df3cd2e
Slightly throttle https large body test
2011-01-28 14:35:20 -08:00
Ryan Dahl
fda70b8b90
getaddrinfo exists on windows
2011-01-28 13:40:41 -08:00
Ryan Dahl
43d818a19c
Fix version
2011-01-28 13:09:01 -08:00
Ryan Dahl
192d2e0803
REPL: disable colors in windows for now
2011-01-28 12:58:19 -08:00
Bert Belder
88947dc4f0
Workaround for V8 bug 884
...
See http://code.google.com/p/v8/issues/detail?id=884
2011-01-28 12:53:09 -08:00
Ryan Dahl
7eaa956bae
Upgrade V8 to 3.0.12
2011-01-28 01:57:00 -08:00
Ryan Dahl
97375c475e
Now working on v0.3.8
2011-01-27 21:11:56 -08:00
Ryan Dahl
d8579c6afd
Bump version to v0.3.7
2011-01-27 20:07:54 -08:00
Ryan Dahl
286389202f
Fix pummel/text-exec
2011-01-27 20:07:53 -08:00
Ryan Dahl
b6c66f735b
Revert "Use html5 spec stylesheet for docs"
...
This reverts commit 6dbf49110b .
2011-01-27 19:55:52 -08:00
Ryan Dahl
eb565e1ce2
Simplify website
2011-01-27 19:52:56 -08:00
Ryan Dahl
895968d8f8
Add test-https-large-response.js
2011-01-27 19:27:25 -08:00
Ryan Dahl
df5d5d6342
Fix option parsing in tls.connect()
2011-01-27 19:25:08 -08:00
Ryan Dahl
cb06abe1e5
Helpful error when child_process.exec hit maxBuffer
2011-01-27 17:45:17 -08:00
Ryan Dahl
1f041fe73e
debugger: prevent crash when backtrace doesn't come back
2011-01-27 17:44:42 -08:00
Ryan Dahl
fbb74784b5
Remove more process.assert
2011-01-27 17:02:25 -08:00
Ryan Dahl
bfb6a67d60
Another fix for process.assert
2011-01-27 16:59:28 -08:00
Ryan Dahl
f71e4d8b43
Fix process.assert problem
...
Introduced in f9f0e5c75c
2011-01-27 16:55:54 -08:00
Ryan Dahl
f9f0e5c75c
Pre-process out assert()
2011-01-27 16:38:49 -08:00
Ryan Dahl
6e53cf8b3f
Fix links
2011-01-27 16:24:02 -08:00
David Trejo
3a05a6eaca
newcomer resources in README
...
Closes GH-579.
2011-01-27 16:20:31 -08:00
Greg Hughes
1a5e513084
Fix style issues with ext_key_usage patch
...
Closes GH-586.
2011-01-27 16:16:22 -08:00
Ryan Dahl
4ea6916974
Correct process.kill doc
...
Thanks Kevin. Closes GH-518.
2011-01-27 14:37:45 -08:00
Ryan Dahl
97e13748fa
Typos
...
Closes GH-557.
Closes GH-539.
2011-01-27 14:28:47 -08:00
Ryan Dahl
8f23583d10
A few spelling fixes.
...
Thanks Bjarki. Closes GH-561.
2011-01-27 14:24:10 -08:00
Ryan Dahl
3d4a0211b6
Fix arg order of fs.linkSync in docs
...
Thanks Pierre. Closes GH-571.
2011-01-27 14:22:17 -08:00
Greg Hughes
6c32e155d3
Add ext_key_usage to getPeerCertificate
2011-01-27 14:06:40 -08:00
isaacs
6cdeb3b3fd
A module ID with a trailing slash must be a dir.
...
require('./foo/') should not try to load './foo.js'. It should only
look for ./foo/index.js
Closes GH-588
2011-01-27 14:02:43 -08:00
Ali Farhadi
36ef5643c3
Fixing bug in http request default encoding.
2011-01-26 12:18:25 -08:00
Ali Farhadi
c70dd70301
Adding callback parameter to Socket's setTimeout method.
2011-01-26 12:13:03 -08:00
Ryan Dahl
129217a4e9
Increase timeout on test-repl to 5 seconds
...
Hopefully wont get failures on buildbot slaves.
2011-01-25 17:35:08 -08:00
Ali Farhadi
910a859b9c
Adding test for many keep-alive connections
2011-01-25 17:20:25 -08:00
Ryan Dahl
5ad00f82c6
debugger: Don't crash when evaling buffer
2011-01-25 15:50:12 -08:00
Ryan Dahl
72bef516dc
Revert "Preprocess out assert()"
...
This reverts commit 8bd7e4fad8 .
2011-01-25 15:26:19 -08:00
Carter Allen
5ad93ab573
Fix tests when spaces are in path
2011-01-25 12:56:35 -08:00
Ryan Dahl
8bd7e4fad8
Preprocess out assert()
2011-01-25 12:53:44 -08:00
Ryan Dahl
39ff40e5a2
Use old http.Client
...
This is meant as a path for upgrading to the new http.request() API.
http.Client will be disappearing in the future.
2011-01-25 12:13:20 -08:00
Ryan Dahl
72dd8778b9
Fix undefined_reference_in_new_context
2011-01-24 22:40:06 -08:00
Daniel Ennis
52f93185c7
Adding support for require-like initialization of node,
...
so `node foo`
will load one of:
./foo.js
./foo.node
./foo/index.js
./foo/index.node
Test cases added.
Ensured no conflict with native names.
2011-01-24 21:33:30 -08:00
Ryan Dahl
4c5e570706
Upgrade V8 to 3.0.10
2011-01-24 20:55:18 -08:00
Bert Belder
07f3274ac4
Readline: fixes, more key bindings
...
- Made backward/forward more convenient
- More key bindings that windows users are used to
- Fix delete-word-right
- Duplicate code cleanup
2011-01-24 20:43:50 -08:00
isaacs
430a7f1bed
Support pastes and meta-backspace
2011-01-24 20:42:52 -08:00
Bert Belder
f9fea12555
Fix windows build
2011-01-24 20:37:15 -08:00
Ryan Dahl
068b733583
Land Cantrill's DTrace patch
...
only works on solaris
2011-01-24 18:59:06 -08:00
Felix Geisendörfer
91cc2d8c4b
Restructure src/node.js startup code
...
This patch introduces a logical structure and sequence for the
bootstrap code found src/node.js.
2011-01-24 14:52:25 -08:00
Ryan Dahl
cc5e9130bb
fs.open should set FD_CLOEXEC
2011-01-24 11:57:21 -08:00
Ryan Dahl
9e976abad9
lint
2011-01-24 10:55:30 -08:00
Bert Belder
f263b29141
Windows: better net support
2011-01-24 10:35:41 -08:00
Bert Belder
25d0e38048
Workaround for libev handle caching bug on windows
...
The windows socket api uses handles, not fds. Libev caches the handle
associated with an fd, and uses this handle when updating the (also cached)
handle set that goes into select(). When an fd is closed and subsequently
re-used before the event loop returns to libev, libev fails to detect
properly that the handle changed. And even if it does, the cached handle of
the closed socket is overwritten by the new handle, so by the time libev
tries to update the select fdset it has forgotten which handle to remove
from it. This is solved by a simple hook ev_fd_closed that makes it clear
its caches before the fd is re-used.
2011-01-24 10:34:18 -08:00
Ryan Dahl
555184663a
windows compat: undefined_reference_in_new_context test
2011-01-23 15:32:07 -08:00
Ali Farhadi
d81afcb3a6
Fixing bug in http request's end method.
2011-01-23 15:22:42 -08:00
Felix Geisendörfer
5a49f96505
Move commonjs module system into lib/module.js
...
This de-couples NativeModule from the module system and completes the
main objective of this refactoring.
2011-01-23 14:53:17 -08:00
Mikeal Rogers
8d37f80f4b
Expose agent in http and https client.
2011-01-23 12:02:43 -08:00
Ryan Dahl
7892918353
Now working on v0.3.7
2011-01-21 18:26:05 -08:00
Ryan Dahl
bb3e71466e
Bump version to v0.3.6
2011-01-21 18:18:37 -08:00
Ryan Dahl
6703a7f1e0
Add https docs to toc
2011-01-21 18:18:32 -08:00
Ryan Dahl
76afea90cf
Fix test-http-exceptions
...
Agent: Each time an http req is sent to a socket, _cycle to try to dispatch
another. Problem became apparent in 4612b0 when we wait for connecting
sockets.
2011-01-21 17:49:01 -08:00
Ryan Dahl
4612b07604
Fix test-http-allow-req-after-204-res
...
Agent queue waits for connecting sockets.
2011-01-21 17:39:48 -08:00
Ryan Dahl
7dfbccf9bd
Add test-https-agent
2011-01-21 15:56:27 -08:00
Ryan Dahl
68f2aa2715
http: agent should cycle on close
2011-01-21 14:55:29 -08:00
isaacs
49275524a5
Fix for meta keys in a weird iTerm state.
2011-01-21 13:51:59 -08:00
isaacs
d40af91b30
Windows line endings. s/\r//g
2011-01-21 13:51:49 -08:00
Bert Belder
8da7202d0b
Fix meta+character keys on mac
2011-01-21 13:51:19 -08:00
Ryan Dahl
b9574b995f
Expose http.getAgent
2011-01-21 13:47:27 -08:00
Ryan Dahl
db8736ad93
Add https.get()
2011-01-21 13:21:01 -08:00
Ryan Dahl
e65f6b4ce1
Initial pass at https client
2011-01-21 13:13:02 -08:00
Ryan Dahl
86e687086b
waf: display oprofile and gdbjit options for all platforms
...
was breaking mac
2011-01-20 19:07:19 -08:00
Ryan Dahl
6eca6b1ec0
Merge branch 'http_agent'
2011-01-20 18:38:13 -08:00
Ryan Dahl
a86747603c
Fix test-http-upload-timeout
...
Cannot just close the connection or client will error.
2011-01-20 18:24:00 -08:00
Ryan Dahl
7a16e2a2a0
test-http-client-reconnect-bug: hang up should be error.
2011-01-20 18:19:30 -08:00
Ryan Dahl
0866ecaf3f
...
2011-01-20 18:10:15 -08:00
Ryan Dahl
032f80efea
Docs for new http API
2011-01-20 18:10:15 -08:00
Ryan Dahl
f465949516
hacky work around socket hangups on http requests
2011-01-20 18:10:15 -08:00
Ryan Dahl
d89454e5d4
Backport client 'upgrade' events
2011-01-20 18:10:15 -08:00
Ryan Dahl
4125822bed
all errors go to req object
2011-01-20 18:10:15 -08:00
Ryan Dahl
105c35b9fd
http.Client shims
2011-01-20 18:10:15 -08:00
Ryan Dahl
e576d4ec79
Add parser to agent
2011-01-20 18:10:15 -08:00
Ryan Dahl
60aea96f84
first pass at http refactor for TLS
2011-01-20 18:10:15 -08:00
Ryan Dahl
ae30af44cf
Disable gdbjit by default
2011-01-20 18:04:09 -08:00
Bert Belder
a763a4f4d9
Fix memory corruption bug on Windows
2011-01-20 01:41:16 +01:00
Bert Belder
8ca0b9a3c5
Fix ev_async misuse in node_child_process_win32.cc
2011-01-20 01:40:55 +01:00
kmillikin@chromium.org
7c2869046e
Fix an assertion failure in the full code generator.
...
We hit an assertion failure when we tried to record the AST ID of
the (shared) .arguments variable proxy more than once. This was hit
when we had multiple calls to the same parameter in a function that
used the arguments object. The fix is to not visit the subexpressions
of the (shared) property access expression.
BUG=1060
Review URL: http://codereview.chromium.org/6368007
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@6404 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-01-20 01:39:32 +01:00
Ryan Dahl
ba80d4d8a9
Transfer data gathering responsibility to readline
...
Fixes non-raw REPL/Debugger on Posix.
2011-01-19 11:46:16 -08:00
Ryan Dahl
d4127717ac
Fix tab on posix tty
2011-01-19 11:33:42 -08:00
Ryan Dahl
6e9f746a46
wscript: style
2011-01-19 11:18:12 -08:00
Ryan Dahl
5895df4d0e
Compile gdbjit in by default on linux
2011-01-19 11:17:25 -08:00
Bert Belder
a61066ea1b
Workaround for V8 bug 884
...
See http://code.google.com/p/v8/issues/detail?id=884
2011-01-19 11:06:49 -08:00
Ryan Dahl
b8f006ef72
Upgrade V8 to 3.0.9
2011-01-19 11:06:13 -08:00
Bert Belder
e6e6e87463
Windows: fix window size getter bug
2011-01-18 23:22:38 -08:00
Bert Belder
f0bf325495
Update TODO.win32
2011-01-18 23:22:38 -08:00
Bert Belder
4475b76535
Readline: use symbolic key names instead of ascii control codes
2011-01-18 23:22:38 -08:00
Bert Belder
8c9b2d1066
Readline: use tty methods instead of control sequences
2011-01-18 23:22:38 -08:00
Bert Belder
0b5bf70bff
Use tty.ReadStream and tty.WriteStream for stdio when appropriate
2011-01-18 23:22:38 -08:00
Bert Belder
87d898929f
Implement tty.ReadStream and tty.WriteStream
2011-01-18 23:22:38 -08:00
Bert Belder
4fddca09f1
New stdio functions to aid new readline interface
2011-01-18 23:22:38 -08:00
Bert Belder
b0eed65584
Windows: watcher for tty events
2011-01-18 23:22:38 -08:00
Ryan Dahl
4f8dd28f7e
wscript chooses win32 source files, not cpp
2011-01-18 23:22:38 -08:00
Ryan Dahl
cb14236bb4
Use common.PORT not 8000
2011-01-18 22:27:12 -08:00
Ryan Dahl
39535d74df
move test-exec to pummel - too slow
2011-01-18 22:25:38 -08:00
Alexis Sellier
66b418d6f3
make 'readyState' available to CryptoStream
2011-01-18 22:22:50 -08:00
Ryan Dahl
2f6cb66009
Add setEncoding to CryptoStream
2011-01-18 18:30:12 -08:00
Ryan Dahl
4d0416caf6
Add setNoDelay to cryptostream
2011-01-18 17:56:52 -08:00
Ryan Dahl
b22b5e341b
listen/bind errors should close net.Server
2011-01-18 16:22:43 -08:00
Ryan Dahl
2ec4cd5525
factor linklist code into own file
2011-01-18 14:26:32 -08:00
Bert Belder
b8879d64dd
Remove completed TODO.win32 items
2011-01-18 04:58:33 +01:00
Bert Belder
6ad629895d
Make child_process.kill always work on windows
2011-01-18 04:58:32 +01:00
Bert Belder
bb3bf091d4
Fix several child process bugs on windows
2011-01-18 04:58:32 +01:00
Bert Belder
5087c62f18
Fix detection of socket errors
2011-01-18 04:58:31 +01:00
Bert Belder
2ce0961de1
Improve error reporting on windows
2011-01-18 04:58:30 +01:00
Bert Belder
0eb4c2157d
Define winsock error numbers
2011-01-18 04:58:30 +01:00
Bert Belder
c99962e4cd
Misc. cleanups
...
casts, unused vars, function ordering, /* within comment, etc.
2011-01-18 04:58:29 +01:00
Bert Belder
e0f47be9d0
Clean up the way windows headers are included
...
Plus make inclusion order a little more consistent in general
2011-01-18 04:58:11 +01:00
Bert Belder
43d75952ff
Windows: get rid of most NO_IMPL related macros
2011-01-18 04:49:54 +01:00
Bert Belder
dc99aa0c8c
Windows: implement missing stdio methods
2011-01-18 04:49:54 +01:00
Bert Belder
b70f8aec84
Workaround for V8 bug 884
...
See http://code.google.com/p/v8/issues/detail?id=884
2011-01-18 04:49:42 +01:00
Ryan Dahl
86bf3309bf
docs: style
2011-01-17 13:35:30 -08:00
Ryan Dahl
a51063c13c
docs: Add note about global scope
2011-01-17 13:35:11 -08:00
Bert Belder
595509bb4c
Fix v8 build on windows
...
reported to v8 in http://codereview.chromium.org/6056006/
2011-01-17 12:28:48 -08:00
Ryan Dahl
cf2e4f44af
Upgrade V8 to 3.0.8
2011-01-17 11:32:56 -08:00
Ryan Dahl
082a4b6033
Now working on v0.3.6
2011-01-16 15:28:01 -08:00
Ryan Dahl
b622bc6305
Bump version to v0.3.5
2011-01-16 15:12:28 -08:00
Felix Geisendörfer
0263f01475
Fix test-require-cache-without-stat.js
...
This path adds an additional cache to the module system for caching the
location of previously required modules. Since it is embedded in the
loop that iterates over all require.paths, this patch also handles the
case where require.paths is being modified.
The patch also cleans up some code around it.
See: https://groups.google.com/forum/#!topic/nodejs-dev/QGGlrvLDHVs
2011-01-16 14:52:55 -08:00
Felix Geisendörfer
f39fdf2610
Isolate native module system again
...
See: 2e5dfafcb0 (commitcomment-239719)
2011-01-16 14:51:21 -08:00
Ryan Dahl
c3b0d133aa
Add built-in module loading to test-require-cache-without-stat
2011-01-16 14:34:39 -08:00
Ryan Dahl
f35773ad07
Add broken test for require cache working
...
require is caching the compiled code but still stating the filenames.
https://groups.google.com/d/topic/nodejs-dev/QGGlrvLDHVs/discussion
2011-01-16 01:21:40 -08:00
Ryan Dahl
d9087c10ad
style
2011-01-16 00:33:16 -08:00
Ryan Dahl
9bcfc0745c
Revert "Implement os.isWindows"
...
This reverts commit 9e31e0837e .
Use process.platform == 'win32'
2011-01-13 20:32:36 -08:00
Ryan Dahl
496be457b6
Allow third party hooks before main module load
...
Just put a file lib/_third_party_main.js into the build directory and take
it from there.
2011-01-13 16:30:29 -08:00
Ryan Dahl
860e7a7a5f
debugger: don't hang on ^d and ^c
2011-01-13 16:04:33 -08:00
Ryan Dahl
4fa712c48f
debugger: error out without script
...
TODO:
debug> run script.js
2011-01-13 15:29:53 -08:00
Ryan Dahl
53f29d86c0
debugger: add uncaughtException handler to kill child
2011-01-13 15:18:20 -08:00
Ryan Dahl
0fa3f2febd
debugger: Correctly eval arrays and numbers
2011-01-13 13:59:35 -08:00
Ryan Dahl
533797a607
debugger: full scope evals
2011-01-13 13:32:16 -08:00
Ryan Dahl
d87ab5450b
debugger: Better backtraces
2011-01-13 13:32:16 -08:00
Ryan Dahl
7df8a05129
debugger: primative object inspection
2011-01-13 13:32:16 -08:00
Ryan Dahl
cb71a7dab3
debugger: take help message from commands
2011-01-13 13:32:16 -08:00
Ryan Dahl
29f48d48e5
A few more list clean ups
2011-01-13 02:22:09 -08:00
Ryan Dahl
09994438e5
Expose link-list from timers.js; add tests
2011-01-13 02:10:09 -08:00
Ryan Dahl
4e1e6a2d15
debugger: Don't break on handle === 0
2011-01-12 16:43:05 -08:00
Felix Geisendörfer
f5fbb707b2
Fix NODE_PATH, was broken after cleanup
2011-01-12 16:07:36 -08:00
Felix Geisendörfer
f61277ecb0
Always init module paths
...
The previous cleanup patch broke module loading in the the REPL by
not initializing require.paths.
2011-01-12 16:07:07 -08:00
Felix Geisendörfer
2e5dfafcb0
Cleanup node module system code
2011-01-12 13:32:06 -08:00
Ryan Dahl
5f5201db2f
Fix test-net-connect-buffer
...
Change to end() behavior in 33c339 was breaking it. end() should wait for
connection before dumping. Changed test-net-connect-timeout to use destroy()
instead.
2011-01-12 13:29:45 -08:00
Ryan Dahl
5f795efd4e
net: Timeouts should work before DNS resolution
2011-01-12 12:59:58 -08:00
Ryan Dahl
33c33949b2
Add test for connection timeouts
...
Also make socket.end() destroy connection if still trying to connect.
Previously was ignoring.
2011-01-12 10:57:03 -08:00
Ryan Dahl
72589b60ad
debugger: Only display basename of scripts
2011-01-12 10:33:10 -08:00
Ryan Dahl
1b63bd16ed
tab completion for commands in debugger
2011-01-12 10:32:48 -08:00
Ryan Dahl
fc634cd92c
Upgrade c-ares to 1.7.4
2011-01-11 18:19:22 -08:00
Ryan Dahl
86160a8807
NODE_DEBUG=timer instead of bitflags
2011-01-11 16:53:05 -08:00
Ryan Dahl
82e9da9fb7
Allow one extra ms in timer diff
...
Fixes sporadic test-next-tick-ordering.js failures
2011-01-11 16:51:09 -08:00
Ryan Dahl
7c0f453b7c
Add delay into test-debugger-client
2011-01-11 16:30:01 -08:00
Ryan Dahl
8e461673c4
Put a little delay into test-tls-securepair-client.js
...
Avoids race. openssl s_server is a terrible program.
2011-01-11 15:37:58 -08:00
Bert Belder
b9540c28e9
Libev windows fixes
2011-01-11 14:48:07 -08:00
Ryan Dahl
6dbf49110b
Use html5 spec stylesheet for docs
2011-01-11 14:32:42 -08:00
Ryan Dahl
464f5d4e13
Merge branch 'vanilla-libeio'
...
Conflicts:
deps/libeio/config.h.in
2011-01-11 14:13:06 -08:00
Ryan Dahl
b8d63c10cd
Upgrade libeio
2011-01-11 14:09:17 -08:00
isaacs
435ece5058
child_process: Support setting uid/gid by name
2011-01-11 13:54:51 -08:00
Ryan Dahl
b92329667f
Fix spelling mistakes
2011-01-11 10:18:46 -08:00
isaacs
6f5d95de6d
child_process: Add gid/uid flags to spawn config
...
This is mostly working, but not completely ideal for two reasons.
1. Rather than emitting an error on the ChildProcess object when the
setgid/setuid fails, it is simply printing the error to stderr and
exiting. The same happens with the cwd, so that's not completely
terrible.
2. I don't have a good test for this. It fails with an EPERM if you try
to change the uid or gid as a non-root user.
2011-01-11 10:02:58 -08:00
Ryan Dahl
b7419dfaad
Upgrade libev to 4.3
2011-01-11 08:47:18 -08:00
Bert Belder
01148265cb
Improve path.resolve documentation
2011-01-10 18:05:15 -08:00
Ryan Dahl
320a56b89d
Bump size of bench histogram to 100ms
2011-01-10 18:00:21 -08:00
Ryan Dahl
b9cfd9527a
getWindowSize/setWindowSize
2011-01-10 17:25:48 -08:00
Ryan Dahl
63bd237892
typo setuid -> setsid
2011-01-10 17:15:17 -08:00
Ryan Dahl
907e569980
Fix expired keys
2011-01-10 16:30:26 -08:00
Ryan Dahl
1f38046b51
tty.open() returns stream instead of slaveFD
...
Also is run in its own session.
2011-01-10 16:25:15 -08:00
Ryan Dahl
202dd8387f
Add setsid option to child_process
2011-01-10 16:24:49 -08:00
Ryan Dahl
9da75f39d9
Print error when EventEmitters get too many listeners
2011-01-10 13:48:35 -08:00
Ryan Dahl
e1f4b3f009
debugger: implement 'list'
2011-01-08 19:10:17 -08:00
Ryan Dahl
5342e3e925
expose module wrapper to native modules
2011-01-08 19:09:33 -08:00
Ryan Dahl
5580907c58
debugger: fix 'scripts' command
...
path.split() no longer available
2011-01-08 18:20:39 -08:00
Ryan Dahl
318b1a0a03
Now working on v0.3.5-pre
2011-01-08 16:19:07 -08:00