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
Ryan Dahl
73f53e12e4
Bump version to v0.3.4
2011-01-08 15:46:07 -08:00
Mihai Călin Bazon
0853730c35
realpath files during module load
2011-01-07 13:00:19 -08:00
Ryan Dahl
2e76cd382f
TLS: Forward errors to cleartext
...
But only after control has been inverted.
2011-01-07 10:58:13 -08:00
Ryan Dahl
08bec7ab0a
Remove debugger statement from http_simple.js
...
results in slow bench
2011-01-06 18:07:50 -08:00
Ryan Dahl
5a05992155
Lint
2011-01-06 16:06:27 -08:00
Bert Belder
1ac133ea6f
Replace string magic + path.join by path.resolve
...
Because path.resolve is more elegant and windows-safe.
2011-01-06 15:39:51 -08:00
Bert Belder
dea2331377
Rework fs.realpath, primordal windows compatibility
2011-01-06 15:38:50 -08:00
Bert Belder
7c731ec9dd
Path.resolve, path module windows compatibility
...
Removes path.normalizeArray() and path.split()
2011-01-06 15:36:25 -08:00
isaacs
48334dc0b1
Fix regression introduced in fe804d9b
...
It breaks argv[0] on posix systems, and makes it so that npm can't
determine whether node was run from an explicit location, or via "node",
so the configs default improperly.
If on windows, don't do this behavior. On posix, go back to the old
behavior.
2011-01-06 14:39:06 -08:00
Ryan Dahl
b6dafc1a47
Allow for two streams in REPL
...
Towards windows compatibility.
2011-01-06 13:42:32 -08:00
Ryan Dahl
22561dfbcf
Joyent link goes to no.de
2011-01-06 11:05:19 -08:00
Ryan Dahl
3770462ee3
Fix process.platform
2011-01-05 19:05:59 -08:00
Ryan Dahl
bb7bf58cc7
Update TODO items
2011-01-05 11:59:04 -08:00
Ryan Dahl
4e108ef9b6
Remove legacy TLS api from docs
2011-01-05 11:55:24 -08:00
Ryan Dahl
b62152bc84
Rename net.Stream to net.Socket
2011-01-05 11:53:56 -08:00
Bert Belder
af15b4e45a
Remove path module dependency from url module
...
Now the path module can be adapted to support windows paths without breaking
the url module. It also allows the undocumented keepBlanks flag to be
removed from path.join and path.normalizeArray.
2011-01-05 11:27:22 -08:00
Bert Belder
9ddfcfecca
Remove keepBlanks flag from path functions
2011-01-05 11:17:38 -08:00
Bert Belder
9e31e0837e
Implement os.isWindows
2011-01-04 18:38:58 -08:00
Ryan Dahl
468042fc84
Add C++ Buffer migration tips
2011-01-04 17:23:48 -08:00
Bert Belder
fe6f363837
Revert "realpath files during module load"
...
This reverts commit 131546e733 .
Doesn't work on windows, coming back soon.
2011-01-04 17:04:00 -08:00
Bert Belder
b7b0c92ac1
Don't attempt to capture SIGUSR1
2011-01-05 00:45:01 +01:00
Bert Belder
3c330b05b1
Merge branch 'master' of git://github.com/ry/node
...
Conflicts:
src/node.cc
src/node.js
2011-01-05 00:41:59 +01:00
Mihai Călin Bazon
131546e733
realpath files during module load
2011-01-04 12:24:17 -08:00
Ryan Dahl
cda4d56bcf
Implement WriteStream.destroySoon
2011-01-04 11:39:12 -08:00
Ryan Dahl
bc1d758408
net.js: Check that readWatcher exists before pause, resume
2011-01-04 11:25:36 -08:00
Ryan Dahl
2957382991
Implement new stream method, destroySoon
...
Still missing on fs.WriteStream
2011-01-04 11:22:19 -08:00
Ryan Dahl
73f4ec51fd
hack for ending https connections
2011-01-04 10:36:05 -08:00
Ryan Dahl
94f8368cf9
First pass at new https server
2011-01-03 15:51:05 -08:00
Ryan Dahl
e4dd5cd6fd
NODE_DEBUG uses strings instead of bitflags
2011-01-03 15:41:58 -08:00
Ryan Dahl
d040f1d19d
debugger: use correct handle handle
2011-01-03 13:21:28 -08:00
Ryan Dahl
282cce1ea5
debugger: don't display whole path of scripts
2011-01-03 12:58:19 -08:00
Ryan Dahl
6593a96373
Merge branch 'debugger'
2011-01-03 10:27:16 -08:00
Ryan Dahl
2b5b128cba
Now working on v0.3.4-pre
2011-01-02 18:57:22 -08:00
Ryan Dahl
57544ba1c5
Bump version to v0.3.3
2011-01-02 18:33:49 -08:00
Ryan Dahl
feb77eab65
Fix REPL for named functions
...
add some tests.
2011-01-02 18:27:14 -08:00
Bert Belder
c3ffbf219c
Fix the OS module for win32
2011-01-02 23:44:43 +01:00
Bert Belder
33118df8f9
Merge remote branch 'origin/master'
...
Conflicts:
src/node_net.cc
src/node_os.cc
2011-01-02 22:57:32 +01:00
Ryan Dahl
b5637170b1
Fix openssl version check
2011-01-02 12:37:27 -08:00
Ryan Dahl
7e831bfba1
Disable TLS tests when node doesn't have OpenSSL.
2011-01-02 01:54:19 -08:00
Ryan Dahl
cd1ec27268
Add openssl version to process.versions
2011-01-02 01:44:42 -08:00
Ryan Dahl
1345103c3a
Fix typos
2011-01-02 01:13:27 -08:00
Ryan Dahl
2e3e95ee89
add process.stdin
2011-01-01 21:54:46 -08:00
Ryan Dahl
c82fe30ca1
repl.js style
2011-01-01 21:41:07 -08:00
Ryan Dahl
29626d8731
Syntax error hack for modules.
2011-01-01 21:14:24 -08:00
Ryan Dahl
8b352bdc5d
Add '{a:1}' to REPL tests
2011-01-01 21:14:06 -08:00
Ryan Dahl
00974df3e5
Allow for evaling statements in REPL too
2011-01-01 21:05:23 -08:00
Ryan Dahl
b45698e676
Improve how REPL commands are evaled
...
Before:
> {a: 1}
1
> (function() {
... // foo
... return 1;
... })();
...
Now:
> {a: 1}
{ a : 1 }
> (function() {
... // foo
... return 1;
... })();
1
>
2011-01-01 17:54:48 -08:00
Ryan Dahl
ce5ddacaf4
Fix solaris build
...
Stub out new platform functions.
2011-01-01 17:43:59 -08:00
Ryan Dahl
8f5f213a6f
Revert "Add optional filters to stream.pipe()"
...
This reverts commit 24aded078f .
2011-01-01 16:41:39 -08:00
Ryan Dahl
1c7cd4aac3
Make syntax error display optional
...
Fixes GH-543
2011-01-01 16:38:31 -08:00
Ryan Dahl
40f29dd48a
Lint node_script.cc
2011-01-01 13:41:04 -08:00
Ryan Dahl
5b81897cf6
Update links for v0.2.6 on website
2010-12-30 21:07:42 -08:00
Sami Samhuri
e5a47c8ce1
use util.inspect to format objects and arrays printed to the console
2010-12-30 19:14:30 -08:00
Daniel C
ca8cc71bd0
EventEmitter.prototype.once should "return this;"
2010-12-30 18:58:43 -08:00
Ryan Dahl
916f567d23
debugger: a little bit of doc
2010-12-30 18:50:10 -08:00
Ryan Dahl
af6662d5e5
debugger: Prompt before quitting
2010-12-30 18:50:07 -08:00
Ryan Dahl
7b9a2f29b4
debugger: Don't prompt until child is killed
2010-12-30 18:07:19 -08:00
Ryan Dahl
aea568b04a
Fix some errors in debugger tests
2010-12-30 17:53:53 -08:00
Ryan Dahl
294bcb33e6
debugger: Fix some parser issues
...
Wouldn't handle events if it got backed up.
2010-12-30 17:33:07 -08:00
Ryan Dahl
62e0ca05a6
debugger: Disable/Enable raw mode for child
2010-12-30 15:46:47 -08:00
Ryan Dahl
0946474b5c
debugger: Clean ups, bug fixes
2010-12-30 13:25:49 -08:00
Ryan Dahl
866201bd74
debugger: add 'kill' command
2010-12-30 12:35:13 -08:00
Ryan Dahl
a3c4e17c2a
debugger: repeat command functionality
2010-12-30 11:54:49 -08:00
Ryan Dahl
074af67dd3
debugger: don't display node's internal scripts
2010-12-30 11:53:55 -08:00
Ryan Dahl
d4859a55bc
Wrap up debugger in one class
...
just for better readablity
2010-12-30 11:17:12 -08:00
Ryan Dahl
109f845e49
debugger: style
2010-12-30 10:34:33 -08:00
Ryan Dahl
9244a64b59
debugger: Print error if executing command that requires being connected
2010-12-30 10:31:36 -08:00
Ryan Dahl
2a7e7b1c46
start debug agent on SIGUSR1
2010-12-30 10:20:21 -08:00
Ryan Dahl
481329ee7c
debugger: clean up
2010-12-30 10:18:25 -08:00
Ryan Dahl
f484cbf4c7
Debugger: better maintance of script list
2010-12-30 10:02:42 -08:00
Ryan Dahl
bb400d5697
debugger: Work towards interactive restart
2010-12-30 01:35:20 -08:00
Ryan Dahl
e33d0de129
debugger: Clean up child
2010-12-30 01:35:13 -08:00
Ryan Dahl
90e55c3357
Rather have the debugger be parent process
2010-12-30 01:35:13 -08:00
Ryan Dahl
50c1c1e12d
add 'info breakpoints'
2010-12-30 01:35:12 -08:00
Ryan Dahl
74cc021ec2
highlight current script
2010-12-30 01:35:12 -08:00
Ryan Dahl
080daf9ddd
debugger: 'scripts' command was conflicting with 's'
2010-12-30 01:35:12 -08:00
Ryan Dahl
0adc6b29bd
Start on frame zero - don't do extra break
2010-12-30 01:35:12 -08:00
Ryan Dahl
0c928b124c
debugger: Clean up a few commands
2010-12-30 01:35:12 -08:00
Ryan Dahl
8874c51d04
Disable OPOST
...
Helps when sharing a tty with non-raw mode processes
2010-12-30 01:35:12 -08:00
Ryan Dahl
3be4f097a3
Debugger: Fix some output
2010-12-30 01:35:12 -08:00
Ryan Dahl
b5aed43f04
Add better breakpoint text
2010-12-30 01:35:12 -08:00
Ryan Dahl
0dcbe3f74a
Fork out to debugger on debugger statements
...
Also implement continue in Client.
2010-12-30 01:35:12 -08:00
Ryan Dahl
4e81cf7def
Debugger client emits ready after recving initial res
2010-12-30 01:35:11 -08:00
Ryan Dahl
a8417c128e
Add more debugger tests
2010-12-30 01:35:11 -08:00
Ryan Dahl
8e96b8ab9b
keep track of current frame. eval works for global scope
2010-12-30 01:35:11 -08:00
Ryan Dahl
797aa97e19
Fix test-debugger-client
2010-12-30 01:35:11 -08:00
Ryan Dahl
8d82ec2130
Add beginning of build-in debugger
...
+ test-debugger-client (which is currently broken)
2010-12-30 01:35:11 -08:00
Ryan Dahl
0df804b9e7
start debug agent on SIGUSR1
2010-12-30 01:35:10 -08:00
Ryan Dahl
e3ce73a214
Add ability to ask question from readline
2010-12-30 01:35:01 -08:00
Tom Hughes
54b1f8028a
Free (ref-counted) private key.
2010-12-24 23:50:33 -08:00
Brian White
8275d7cd34
Fix Cygwin compatibility in the os module
2010-12-23 09:52:04 -08:00
Kai Chen
b2fd88ef7a
correct some inline links in api document
2010-12-22 19:49:04 -08:00
Tom Hughes
ae8262a176
cmake: Add toolchain file for cross-compiling.
2010-12-22 16:12:49 -08:00
Tom Hughes
e03fae1447
cmake: Fix OpenSSL detection and node crypto compilation.
2010-12-22 16:12:39 -08:00
Daniel Gröber
1f7026e2a0
cmake: add -lutil
2010-12-22 16:12:18 -08:00
Brian White
d75c338dd6
Add more functionality to the os module
2010-12-22 11:01:25 -08:00
Tom Hughes
0d58353d66
Don't access buffer data before initializing it.
...
Prevents valgrind from complaining and still tests that buffer data is
treated as unsigned.
2010-12-22 10:33:46 -08:00
Tom Hughes
b38f4712c4
Fix memory leak in node_crypto.cc.
...
Both HexDecode and unbase64 allocate buffers, which weren't being freed.
2010-12-22 10:32:20 -08:00
Tom Hughes
4b555091e4
Fix memory corruption with unnamed AF_UNIX sockets.
...
AF_UNIX sockets can have a pathname, be unnamed, or abstract (Linux
only). If an unnamed socket is returned by getsockname, getpeername, or
accept, sun_path should not be inspected.
2010-12-22 10:29:28 -08:00
Ryan Dahl
d02131d206
Add 'make test-valgrind'
2010-12-22 10:24:47 -08:00
Ryan Dahl
4227e9d79d
process.kill coerces args to integers
2010-12-21 15:41:22 -08:00
Oleg Slobodskoi
23cf938e4f
fix assert.throws
2010-12-21 12:41:57 -08:00
Ryan Dahl
d793fcaabd
Add toolchain=gcc to V8 build for Sun
2010-12-21 12:02:51 -08:00
Theo Schlossnagle
b202483e47
The following error can be thrown from accept on ECONNABORT. Instead, it should be ignored.
...
net:1100
if (e.errno != EMFILE) throw e;
^
Error: ECONNABORTED, Software caused connection abort
at IOWatcher.callback (net:1098:24)
at node.js:773:9
2010-12-21 10:46:58 -08:00
Ryan Dahl
1a894b39b3
Upgrade V8 to 3.0.4
2010-12-21 10:24:08 -08:00
Bert Belder
86518c3b11
Port GetHostName
2010-12-21 00:17:12 +01:00
Bert Belder
2d8ab90613
Revert "Performance-killing bug workaround for V8 on mingw"
...
This reverts commit 9a9edb0e8e .
2010-12-20 23:52:38 +01:00
Bert Belder
0b76321308
Update TODO.win32
2010-12-20 23:51:33 +01:00
Bert Belder
a6f2082b33
Fixes to child process
2010-12-20 23:51:32 +01:00
Bert Belder
d1bf9cf1f8
After building overwrite existing ./node(_g)?.exe
2010-12-20 23:51:32 +01:00
Bert Belder
0a2f1cb334
Child processes
2010-12-20 23:51:31 +01:00
Bert Belder
0b96c5bc3b
Make using winsock extension functions possible
2010-12-20 23:51:30 +01:00
Bert Belder
2655269911
Make select work on >64 FDs on windows
2010-12-20 23:51:30 +01:00
Bert Belder
bd62203d13
Support for non-overlapped sockets
...
By default windows creates sockets with the WSA_FLAG_OVERLAPPED flag set.
Because child processes don't expect to have overlapped stdio (it never happens)
it won't work with them.
2010-12-20 23:51:29 +01:00
Bert Belder
d66cf5f32c
Work around intermittent mkdir failures in testcfg.py
2010-12-20 23:51:28 +01:00
Bert Belder
fe804d9bc7
_Partial_ backslash support in node.js argv directory munging
...
Doesn't do it when node is started from another drive using a drive-relative path.
E.g:
d:
cd nodejs
c:
d:node.exe d:test.js
2010-12-20 23:51:27 +01:00
Bert Belder
9be07f7fe1
_Partial_ fix for backslash path separator support in path.js
...
Needs review & tests
2010-12-20 23:51:27 +01:00
Bert Belder
ad41e778b4
Port socketerror
2010-12-20 23:51:26 +01:00
Bert Belder
dd3308851d
Fix connect bug
2010-12-20 23:51:25 +01:00
Bert Belder
4a2cb07808
Fix whitespace errors introduced by porting efforts
2010-12-20 23:51:25 +01:00
Bert Belder
a6aca21ced
Updating todo.WIN32
2010-12-20 23:51:24 +01:00
Bert Belder
6d266219cc
Add more stuff to TODO.win32
2010-12-20 23:51:23 +01:00
Bert Belder
e047ec340d
Update TODO.win32
2010-12-20 23:51:22 +01:00
Bert Belder
4eea3e45bd
make test somewhat works
2010-12-20 23:51:21 +01:00
Bert Belder
3c3d1d31c5
Better way of getting rid of symlinks
...
Windows, especially msysgit, doesn't like 'em
2010-12-20 23:51:21 +01:00
Bert Belder
e85733a80b
Update TODO.w32
2010-12-20 23:51:20 +01:00
Bert Belder
46dc393ff1
node_net: IsIP and CreateErrnoException just work
2010-12-20 23:51:19 +01:00
Bert Belder
a807ac6660
Bugfixes, more consistency in node_net error handling
2010-12-20 23:51:18 +01:00
Bert Belder
2d39e1341c
Make node_net Connect work
2010-12-20 23:51:18 +01:00
Bert Belder
cecc351303
Make node_net Shutdown work on windows
2010-12-20 23:51:17 +01:00
Bert Belder
0580f9a9bf
Add todo file for windows port
2010-12-20 23:51:16 +01:00
Bert Belder
bea5e6eff6
Re-enable stat watchers on windows
...
This reverts commit b8a99f94167a25f63ae096d9d5e2cc9cf70cecef.
2010-12-20 23:51:16 +01:00
Bert Belder
967b7b0d8c
Libeio should use correct stat/fstat as well
2010-12-20 23:51:15 +01:00
Bert Belder
f48c36f74f
Use unicode and bigfile aware stat/fstat
2010-12-20 23:51:14 +01:00
Bert Belder
1361e87e80
Fix error reporting and EAGAIN handling bug in net Write
...
Clarify some comments as well
2010-12-20 23:51:14 +01:00
Bert Belder
b0f048e970
Remove stray file
2010-12-20 23:51:13 +01:00
Bert Belder
03a74efb16
Don't break the linux build
2010-12-20 23:51:12 +01:00
Bert Belder
8b9f7c6eb2
Make Read and Write in node_net.cc actually work on sockets
2010-12-20 23:51:12 +01:00
Bert Belder
13fb6f7fa1
Make Socket, Bind, Listen, Accept work for windows
2010-12-20 23:51:11 +01:00
Bert Belder
51300f36d6
Make SetNonBlock and SetSockFlags work on FDs instead of sockets
...
However, don't use _get_osfhandle in Close()
2010-12-20 23:51:10 +01:00
Bert Belder
6e522fb27b
Use the c-ares pton/ntop hack in node_net.cc as well
2010-12-20 23:51:10 +01:00
Bert Belder
9f9332963a
wscript: use "node.exe" and avoid symlinks on windows
2010-12-20 23:51:09 +01:00
Bert Belder
9a9edb0e8e
Performance-killing bug workaround for V8 on mingw
...
When V8 on mingw generates a _compiled_ call stub for an external api callback, it fucks up the stack.
It doesn't set the stack pointers properly. Could be due to subtly different calling conventions?
This patch disables the simple_api_call optimization. It hurts performance.
2010-12-20 23:51:08 +01:00
Bert Belder
3216f08b6d
Ignore eclipse project files
2010-12-20 23:51:07 +01:00
Bert Belder
1d0193a733
Wafadmin: don't even think about using msvc
2010-12-20 23:51:07 +01:00
Bert Belder
f37cc8720b
On windows, link with Winsock and WinMM
2010-12-20 23:51:06 +01:00
Bert Belder
6f08fdbcca
Backslashes in paths wreak havoc
2010-12-20 23:51:05 +01:00
Bert Belder
d56e1a3fcd
No -rdynamic and -pthread flags when building with mingw
2010-12-20 23:50:47 +01:00
Bert Belder
276b0b174e
Always use statically linked c-ares on windows; fix build
...
On win32 CARES is always static, so we can call internal functions like ares_inet_pton et al.
CARES_STATICLIB must be defined or gcc will try to make DLL stub calls
2010-12-20 23:50:46 +01:00
Bert Belder
3947269f97
Mingw32 has no inet_pton/inet_ntop; import them from c-ares (hack)
2010-12-20 23:50:45 +01:00
Bert Belder
d7de459b80
Use ares_socket_t instead of int for sockets
2010-12-20 23:50:45 +01:00
Bert Belder
6e54f416ad
Fix header files for node_cares.cc
2010-12-20 23:50:44 +01:00
Bert Belder
1937c5e3c1
On windows, there's no support (yet) for chown and symlink functions
2010-12-20 23:50:43 +01:00
Bert Belder
51c6867280
On windows, stat() doesn't give you block (size) info
2010-12-20 23:50:43 +01:00
Bert Belder
f9a74a2327
On windows, mkdir() doesn't take a mode parameter
2010-12-20 23:50:42 +01:00
Bert Belder
8fc3bac868
Fix fsync/fdatasync for windows
2010-12-20 23:50:41 +01:00
Bert Belder
fae7b81589
On windows use eio__pread and eio__pwrite (hack)
2010-12-20 23:50:41 +01:00
Bert Belder
c7f0341d88
Include windows.h in node_file.cc
2010-12-20 23:50:40 +01:00
Bert Belder
a85a776268
Most of node_net is not yet available on windows
2010-12-20 23:50:39 +01:00
Bert Belder
7a1917d86f
Make SetNonBlock and SetSockFlags work on mingw
2010-12-20 23:50:39 +01:00
Bert Belder
cbf73fcccd
Fix headers for node_net.cc
2010-12-20 23:50:38 +01:00
Bert Belder
cd921c2c62
S_IFLNK, S_IFSOCK and SIGCHLD are not available on windows
2010-12-20 23:50:37 +01:00
Bert Belder
81b26dc555
Stat watchers don't work on windows yet
2010-12-20 23:50:37 +01:00
Bert Belder
b4510d57dc
There is no child process support for windows yet
2010-12-20 23:50:36 +01:00
Bert Belder
6d1af51de6
Fix header files for node_buffer.cc
2010-12-20 23:50:35 +01:00
Bert Belder
30bab52741
Disable node.cc functions that are not supported on windows
2010-12-20 23:50:35 +01:00
Bert Belder
dcc3508890
There's no SIGCHLD on windows
2010-12-20 23:50:34 +01:00
Bert Belder
4a42e408d2
Properly intialize winsock
2010-12-20 23:50:33 +01:00
Bert Belder
a177d60e2b
Fix headers for node.cc
2010-12-20 23:50:33 +01:00
Bert Belder
ae8906e7d1
Add errno.h to platform_win32.cc
2010-12-20 23:50:32 +01:00
Bert Belder
518fa2e29a
node_stdio stub for windows
2010-12-20 23:50:31 +01:00
Bert Belder
b85c4c445b
Macros for warning about unimplemented APIs
2010-12-20 23:50:30 +01:00
Bert Belder
8a3132a406
Avoid WCHAR string conversion warning
2010-12-20 23:50:30 +01:00
Bert Belder
0b54514a86
errno is reserved; use errorno
2010-12-20 23:50:29 +01:00
Bert Belder
63bff5434d
No implementation for OS::GetExecutablePath and OS::GetMemory yet
2010-12-20 23:50:28 +01:00
Bert Belder
e98a06d90f
Make winapi_perror public
2010-12-20 23:50:28 +01:00
Bert Belder
dae9752973
Stub out platform_win32.h
2010-12-20 23:50:27 +01:00
Bert Belder
62af617f84
Dynamically link with pthreads-w32
...
Adds some explanation what would need to be done to link pthreads statically
2010-12-20 23:50:26 +01:00
Bert Belder
13699c1b33
V8: Don't attempt to build w/ snapshot, doesn't seem to work on mingw32
2010-12-20 23:50:26 +01:00
Bert Belder
2463dbb3fd
Fix v8 build on mingw32
2010-12-20 23:49:56 +01:00
Jeremy Martin
6f726cf8c7
url.parse(url, true) defaults query field to {}
2010-12-20 13:48:44 -08:00
Ryan Dahl
8db0bbe0dc
Add callback to CryptoStream.write
2010-12-20 11:08:51 -08:00
Ryan Dahl
fca713eba4
Add doc for Buffer.isBuffer
2010-12-18 18:44:04 -08:00
Ryan Dahl
41d73e02a2
cleartext.socket always exists
2010-12-18 16:38:32 -08:00
Ryan Dahl
bb27885251
TLS: check we're not disconnected before Cleartext blow
2010-12-18 15:34:10 -08:00
Ryan Dahl
3cf2cbf904
Parse issuer and subject from CryptoStream.getPeerCertificate
2010-12-18 11:26:54 -08:00
Ryan Dahl
24aded078f
Add optional filters to stream.pipe()
2010-12-17 13:56:47 -08:00
Ryan Dahl
a8f666ebb8
Now working on v0.3.3-pre
2010-12-17 10:10:23 -08:00
Ryan Dahl
4bb914bde9
Bump version to v0.3.2
2010-12-17 09:51:48 -08:00
Ryan Dahl
d1f36accbf
Remove toJSON usage - it was removed from V8
2010-12-17 09:50:41 -08:00
Ryan Dahl
7d425a0a16
Upgrade V8 to 3.0.3
2010-12-17 09:47:55 -08:00
Brian White
9eaf2329e7
Fix compilation on OpenBSD and FreeBSD
...
While it compiles fine on FreeBSD, at least on amd64 node dies with:
"CALL_AND_RETRY_0 allocation failed - process out of memory"
2010-12-17 09:06:31 -08:00
Ryan Dahl
d0beac70f4
Revert "Simplify next tick logic by looping around ev_loop"
...
This reverts commit 241ea7e595 .
Fixes GH-511: https://github.com/ry/node/issues/issue/511
2010-12-16 18:41:13 -08:00
Jorge Chamorro Bieling
e530507cb1
Add failing test for GH-511
2010-12-16 18:41:13 -08:00
Brian White
6d75c06e64
Add os module to repl's built-in lib list
2010-12-16 17:37:00 -08:00
Ryan Dahl
2dc17e93ee
Add oprofile patch to repo
2010-12-16 14:25:02 -08:00
Ryan Dahl
02aae22397
Add solaris patch file
2010-12-16 14:22:50 -08:00
Ryan Dahl
c9d3a81db0
Patch V8 to compile on solaris
2010-12-16 14:05:13 -08:00
Ryan Dahl
033ab7ebb6
Add 5 sec timeout to test-tls-securepair-client
...
This test is broken for people who don't have OpenSSL 1.0.0 - but it's just
a bug in OpenSSL. Add this timeout so that it doesn't take super long to run
the tests.
2010-12-16 12:23:38 -08:00
Ryan Dahl
c6406f9e57
Apply V8 r5951 to fix Mac build
...
From f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001
From: erik.corry@gmail.com <erik.corry@gmail.com @ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Date: Wed, 8 Dec 2010 16:23:25 +0000
Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough
and then trimming it when the length is known. This way we only have to
traverse the input once.
Review URL: http://codereview.chromium.org/5556012
2010-12-16 12:10:54 -08:00
Ryan Dahl
ea700a8851
Upgrade V8 to 3.0.2
2010-12-16 11:52:08 -08:00
Ryan Dahl
632da2a393
Add callback paramenter to socket.connect()
2010-12-15 15:57:41 -08:00
Ryan Dahl
c4161f32f5
Add callback to socket.write()
2010-12-15 15:47:02 -08:00
Ryan Dahl
c970968ee6
better option parsing for socket.write()
2010-12-15 15:15:27 -08:00
Ryan Dahl
1dad95a3a9
Print 'make clean' commands
2010-12-13 22:13:51 -08:00
Ryan Dahl
7d73779446
Make oprofile work
2010-12-13 22:12:46 -08:00
Ryan Dahl
1d78159e8f
Upgrade V8 to 3.0.1
2010-12-13 22:12:14 -08:00
isaacs
3d0627dc6a
link windows/cygwin build to the wiki docs
...
Suggested by temp01 in IRC.
http://irc.npmjs.org/node.js/2010-12-12#NODE-JS-2010-12-12T18-59-36-270Z
18:59:36 temp01: I feel like the build section on nodejs.org should link
there
19:11:18 isaacs: temp01: yeah, that'd be helpful
2010-12-13 21:01:36 -08:00
Felix Geisendörfer
e27418ca3f
Prefer require.cache over native module cache
...
This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.
The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.
2010-12-13 17:58:24 -08:00
Ryan Dahl
a59483bd1d
TLS: server should die on junk
2010-12-11 02:45:38 -08:00
Ryan Dahl
c9e5cfcc34
Random doc fixes
2010-12-11 02:32:48 -08:00
Ryan Dahl
5bdcec67f0
Add docs for tls.connect()
2010-12-11 02:26:48 -08:00
Ryan Dahl
e3d1808ef0
Rename node::SecureStream to node::crypto::Connection
...
node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)
2010-12-11 02:13:29 -08:00
Ryan Dahl
6636bfaa0a
TLS: Simplify code from suck and blow
2010-12-11 01:42:55 -08:00
Ryan Dahl
66767edf12
Add CryptoStream.destroy()
2010-12-11 01:21:25 -08:00
Ryan Dahl
953561ab06
Factor out CryptoStream.end; support data on end()
2010-12-11 01:18:45 -08:00
Ryan Dahl
4f2ab03e97
Fix typo
2010-12-11 00:56:58 -08:00
Brian White
f1762ff815
Add os module and getHostname
2010-12-11 00:51:20 -08:00
Ryan Dahl
dc65cbd2e9
Factor out some _cycle functionality into Cleartext and EncrypteStreams
2010-12-10 22:29:46 -08:00
Ryan Dahl
70baeba8a9
Add receivedShutdown() binding
2010-12-10 22:09:46 -08:00
Ryan Dahl
d4f1ab00d2
Add EncryptedStream and CleartextStream classes
...
Towards half-closed secure sockets.
2010-12-10 18:25:23 -08:00
Ryan Dahl
8ef683dead
Rename the securepair test to be prefixed with tls
2010-12-10 18:03:39 -08:00
Ryan Dahl
c444293be9
Start a simple TLS client verification test
2010-12-10 18:02:58 -08:00
Ryan Dahl
32e8692b06
Apply V8 r5951 to fix Mac build
...
From f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001
From: erik.corry@gmail.com <erik.corry@gmail.com @ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Date: Wed, 8 Dec 2010 16:23:25 +0000
Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough
and then trimming it when the length is known. This way we only have to
traverse the input once.
Review URL: http://codereview.chromium.org/5556012
2010-12-10 11:22:12 -08:00
Ryan Dahl
5138992f3c
Add some verification code to tls.connect()
2010-12-09 02:46:57 -08:00
Ryan Dahl
a473b8dafb
Move getPeerCertificate and getCipher to CryptoStream
2010-12-09 02:31:22 -08:00
Ryan Dahl
2ca63c8f79
Initial implementation of tls.connect()
...
Seems to work checkout test/disabled/tls-client.js
Type "GET /" after connected.
2010-12-09 00:38:12 -08:00
Ryan Dahl
137c361517
pair.cleartext, pair.encrypted now instances of tls.CryptoStream
2010-12-09 00:10:27 -08:00
Ryan Dahl
5a87bd168d
Remove doc references to readyState
2010-12-08 16:04:21 -08:00
Ryan Dahl
a3c91c216f
Simplify the net.Server example in docs
2010-12-08 13:46:02 -08:00
Ryan Dahl
9a7fb3c988
Add tls.Server docs
2010-12-08 13:22:12 -08:00
Ryan Dahl
dac4d486ec
Accept Buffers as well as strings for addCert, addKey
2010-12-08 13:21:50 -08:00
Ryan Dahl
0ea0b921b7
TLS: emit 'secureConnection' instead of two events
2010-12-08 12:05:19 -08:00
Ryan Dahl
a952231640
remove old todo
2010-12-08 11:55:13 -08:00
Ryan Dahl
bb46b63e33
test-tls-server-verify: add ca2 test case
2010-12-08 11:55:04 -08:00
Ryan Dahl
13b14300b9
TLS: emit 'end' on both streams
2010-12-08 11:51:41 -08:00
Ryan Dahl
a0c55dfe09
TLS: don't use events when control hasn't been inverted
2010-12-08 11:46:19 -08:00
Ryan Dahl
0ec57ea34c
Some TLS clean ups
2010-12-08 11:27:17 -08:00
Ryan Dahl
5d60b06b76
Add 'make test' to test/fixtures/keys/Makefile
2010-12-07 17:13:51 -08:00
Ryan Dahl
6bc9b2ef92
clients without certs are unauthed.
2010-12-07 16:51:23 -08:00
Ryan Dahl
ee5366a410
Fix CNs for agent keys; can't be the same as CA's CN
...
Also add makefile for easy tweaking.
2010-12-07 16:36:10 -08:00
Ryan Dahl
c30f113712
Upgrade V8 to 3.0.0
2010-12-07 13:56:11 -08:00
Ryan Dahl
5b8c62f7d1
Add broken, but detailed TLS verify test
...
Plus a bunch of keys.
2010-12-07 11:53:41 -08:00
Ryan Dahl
180dfca03f
Pretty error message messes up if readFileSync in main module fails.
...
TODO test/message test for this.
2010-12-07 11:29:20 -08:00
Ryan Dahl
0b0faceb19
Move securepair stuff into tls.js
2010-12-05 18:19:18 -08:00
Ryan Dahl
5bca100afe
Server must not request cert.
2010-12-05 18:13:20 -08:00
Oleg Efimov
093dfaf801
GJSLint all tests, only 3 long lines left in test-url.js
...
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
2010-12-05 15:42:41 -08:00
Oleg Efimov
0665f0271e
GJSLint all simple tests exclude http-*, url, path
2010-12-05 15:41:58 -08:00
isaacs
47c40bf18d
test-fs-realpath: Put junk in tmp, not fixtures.
...
Prevents test/fixtures/cycles/folder/cycles from being created every time
the tests are run.
2010-12-05 15:28:15 -08:00
isaacs
dc2b4b2a81
test-fs-realpath: move absDir fetching to separate function
2010-12-05 15:27:01 -08:00
isaacs
6525c04522
test-fs-realpath: lint
2010-12-05 15:26:48 -08:00
Oleg Efimov
0ce9cbab29
GJSLint continue
2010-12-05 09:28:18 -08:00
Oleg Efimov
e76cd53431
Small site fix for image borders and nodejs-dev maillist URL
2010-12-04 18:47:32 -08:00
Ryan Dahl
02cc39f221
Check for global leaks in all tests
2010-12-04 16:36:21 -08:00
Ryan Dahl
92789b16e5
Fix global leaks
2010-12-04 16:36:21 -08:00
Ryan Dahl
a0159b4b29
Fix global leaks
2010-12-04 15:58:50 -08:00
Ryan Dahl
fbdff52b44
Fix global leaks in test-buffer.js
2010-12-04 13:40:21 -08:00
Ryan Dahl
5a21138e37
fix global leak
2010-12-04 13:39:28 -08:00
Anders Conbere
e9c7195471
Reworks the two functions traverser and findModulePath into a more readable form.
...
This is not the supposed end of these changes, but a first change that
should make future changes easier to reason about.
2010-12-04 13:20:01 -08:00
Devin Torres
8c6a7b5de4
Use more color in the repl, loosely inspired by TextMate's SunBurst theme
2010-12-03 16:07:20 -08:00
Anders Conbere
c4f8f871c9
adding module tests for .js and bare files
...
Currently the module tests don't cover the cases for when a user
requires a file with a request that includes the extension, and for a
request to a file with no extensions.
ex.
require("./a.js") // not tested
require("./foo") // (not tested with trying to load a file named ./foo)
2010-12-03 16:00:10 -08:00
Sean Braithwaite
fcc38129a3
Check buffer length using string length
...
+ Utf8Length is really slow but has the same semantics in this case
2010-12-03 15:55:03 -08:00
Ryan Dahl
c70acbb1a3
implement openpty for sun
2010-12-03 20:49:25 +00:00
Brian White
e41e078159
Make sure REPL doesn't get borked when invalid REPL keywords are entered
2010-12-03 09:57:36 -08:00
Brian White
e4bca19843
Fix tty changes for OSX
2010-12-03 09:29:48 -08:00
Ryan Dahl
a0e9a510b0
Introduce require('tty')
...
You may need to reconfigure after this commit due to the new library.
2010-12-02 18:06:43 -08:00
Oleg Efimov
c0d69a4883
GJSLint part of tests
2010-12-02 17:49:23 -08:00
Ryan Dahl
d3532a4bf2
Fix indention in 'make test-message'
2010-12-02 17:01:18 -08:00
Ryan Dahl
33685fee48
Add configure flag for oprofile
2010-12-02 16:57:16 -08:00
Ryan Dahl
da96e07bbe
fix global leak
2010-12-02 16:45:34 -08:00
Ryan Dahl
712c74fc7a
test-securepair-client: handle broken stdout packets
2010-12-02 16:38:23 -08:00
Ryan Dahl
ea9006a5bc
print warning on process.ENV
2010-12-02 15:59:35 -08:00
Ryan Dahl
558e5ba2b0
lint util.js and src/node.js
2010-12-02 12:27:26 -08:00
isaacs
7c57eb2aec
lint url.js
2010-12-02 11:46:32 -08:00
Oleg Slobodskoi
c5c1dc5dda
docs for assert.throws
2010-12-02 11:07:47 -08:00
Tom Hughes
e681abe5cb
cmake: solaris fixes.
2010-12-02 10:36:10 -08:00
Tom Hughes
cf1811a6d3
cmake: Add valgrind support.
2010-12-02 10:36:02 -08:00
Tom Hughes
b46f10a11f
cmake: Add coverage support.
2010-12-02 10:35:39 -08:00
Micheil Smith
a1138c6f2a
Cleanup Makefile for JSLint, CPPLint
2010-12-02 09:21:02 -08:00
Ryan Dahl
dd53ceebe4
lint
2010-12-01 20:59:06 -08:00
Ryan Dahl
e232f6e735
more lint
2010-12-01 20:28:28 -08:00
Brian White
ddbaeef1b3
Fix executable path on FreeBSD.
2010-12-01 20:28:17 -08:00
Ryan Dahl
09329cbb04
more lint
2010-12-01 17:43:30 -08:00
Ryan Dahl
f22c248e4c
more lint
2010-12-01 17:29:11 -08:00
Ryan Dahl
ac58d3a665
Import cpplint.py
...
make cpplint
make jslint
make lint
2010-12-01 17:01:25 -08:00
Ryan Dahl
11ea8da9c3
lint child_process.js
2010-12-01 16:56:03 -08:00
Ryan Dahl
db78043d52
lint
2010-12-01 16:42:31 -08:00
Ryan Dahl
a128451004
Import Google's closure_linter
...
Run with 'make lint'
2010-12-01 16:42:26 -08:00
Ryan Dahl
08d8116f6b
style
2010-12-01 13:43:05 -08:00
Ryan Dahl
cd48649c61
Require without .js in test-repl
2010-12-01 13:40:28 -08:00
Ryan Dahl
d8f2880ca4
New TLS server API
2010-12-01 13:00:17 -08:00
Ryan Dahl
ec1589875c
Stop watcher before calling .set() in Stream.prototype.resume
2010-12-01 12:52:34 -08:00
Ryan Dahl
127f17a0ea
Remove should_verify from C++ - to handle in JS land
2010-12-01 12:47:49 -08:00
Ryan Dahl
c5d32b3c64
add todo
2010-12-01 12:32:37 -08:00
Ryan Dahl
5dab4be53c
Remove useless shouldVerify assignments
2010-12-01 11:31:22 -08:00
Ryan Dahl
89e398f075
Better array check in Cert Authority list
2010-12-01 11:23:25 -08:00
Ryan Dahl
855210ce0b
add shouldVerifyPeer param to SecurePairs
2010-12-01 09:27:13 -08:00
Ryan Dahl
28a86c3e56
Remove unnecessary call to X509_STORE_free
2010-12-01 09:27:13 -08:00
Ryan Dahl
504a80dc6d
Rename VerifyPeerError to VerifyError
2010-12-01 09:26:59 -08:00
Ryan Dahl
1fe450c62c
fix typo
2010-11-30 23:06:57 -08:00
Ryan Dahl
09229820e7
Add promotejs
...
Over 2 months late -- this is how much I procrastinate. -_-
2010-11-30 23:00:37 -08:00
Michael W
5f3464cf4e
fixed timers, whoops.
...
Fixes issue https://github.com/ry/node/issues/issue/481
2010-11-30 22:33:29 -08:00
Ryan Dahl
355936dcde
Implement SecureContext destructor
2010-11-30 18:19:54 -08:00
Ryan Dahl
ea540c94f8
Better verify info
2010-11-30 18:19:54 -08:00
Ryan Dahl
4b947310b2
Move root certs out of JavaScript
2010-11-30 18:19:54 -08:00
Ryan Dahl
09157369b3
style
2010-11-30 18:19:54 -08:00
Ryan Dahl
e15e214747
Fix test-child-process-cwd.js on Joyent servers
...
It's symlinked to /usr/bin so this test fails.
2010-11-30 19:53:51 +00:00
Ryan Dahl
7286b79521
Upgrade V8 to 2.5.9.1
2010-11-30 11:37:43 -08:00
Ryan Dahl
486c74e72b
Revert "Default to TLSv1"
...
This reverts commit 97970b05fe .
2010-11-30 11:33:05 -08:00
Ryan Dahl
70188499b0
Lazy load console object
2010-11-30 11:18:02 -08:00
Ryan Dahl
81afb54c0a
Fix comment
2010-11-30 11:04:31 -08:00
Ryan Dahl
db98d6e4e0
Remove assert in verify_peer; add comments
2010-11-30 10:55:04 -08:00
Bert Belder
5ea2a61596
win: Duplicate platform_cygwin.cc into platform_win32.cc
2010-11-29 23:49:29 -08:00
Bert Belder
fa94d55f87
win: C-ares build config for win32
2010-11-29 23:48:58 -08:00
Bert Belder
4a329af418
win: Waf doesn't detect sys/select.h on mingw, but its there for sure
2010-11-29 23:48:34 -08:00
Bert Belder
4c16dd7c5c
win: Make libev use send instead of write for sockets
...
It looks like MINGW doesn't like to write() to sockets.
If wrong, revert this patch
2010-11-29 23:47:48 -08:00
Bert Belder
4476ce04dc
win: Export eio__pread and eio__pwrite so node_file can use it
2010-11-29 23:46:46 -08:00
Bert Belder
d1d4695474
win: Fix wscript for libeio on windows
2010-11-29 23:46:40 -08:00
Bert Belder
5a36d1b86f
win: Make libeio build on windows
2010-11-29 23:46:35 -08:00
Bert Belder
99ba903d46
win: Define __POSIX__ constant when the platform is POSIX-y
2010-11-29 23:46:30 -08:00
Bert Belder
9032bfce59
win: Symlink to jsmin.py doesn't work on windows
2010-11-29 23:46:17 -08:00
Ryan Dahl
aed0ba3211
buffer.copy targetStart defaults to 0
2010-11-29 19:59:01 -08:00
Ryan Dahl
6d7242b485
Document defaults for buffer.copy()
2010-11-29 19:52:47 -08:00
Ryan Dahl
a326eebac8
Put tools/ into PYTHON_PATH
2010-11-29 19:46:00 -08:00
Michael W
645c3b3713
Fixed: clearTimeouts calling multiple times
...
When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.
2010-11-29 18:17:13 -08:00
Travis Swicegood
22cf5a24db
Simplify execution from "big if statement"
...
This code is functionally equivalent, but in a simpler form. Now new
parameters to `execFile` do not require `exec` to be refactored.
2010-11-29 17:46:46 -08:00
Travis Swicegood
e514f575f3
Remove cruft that dealt with env parameter
...
Originally added in commit 078a48a9 , this code dealt with an optional
env parameter that was passed to `exec`. The parameter was removed, but
this code was left. As it serves no purpose, removing it.
2010-11-29 17:43:27 -08:00
Ryan Dahl
1dbbaa7fa0
Add test to show ECONNREFUSED works
2010-11-29 17:36:59 -08:00
Jeremy Martin
144b2a5338
Fix number of args emitted by EventEmitter during "fast case" (lte 3 args)
2010-11-29 17:25:50 -08:00
Oleg Slobodskoi
02083412eb
assert.throws can now accept as RegExp
...
makes validation of errors more flexible
2010-11-29 17:22:36 -08:00
Travis Swicegood
86727b15f3
fix a typo in comment
...
fixes issue 464
2010-11-29 17:07:30 -08:00
Evan Larkin
bc02d47b21
Fix variable leak.
...
Fixes issue 461
2010-11-29 17:07:25 -08:00
Ryan Dahl
711196cafa
Don't call exit() from the signal handler
...
Fixes issue #457
2010-11-29 16:19:28 -08:00
Ryan Dahl
3fceb491d4
Style
2010-11-29 16:19:28 -08:00
Ryan Dahl
b6face1dce
Remove unnecessary variable def
2010-11-29 15:04:39 -08:00
Ryan Dahl
735b9d50a3
Simplify state transitions in http.Client
...
Fixes new bug shown in test-http-allow-req-after-204-res.js pointed out by
Tom Carden <tom.carden@gmail.com >.
2010-11-29 14:21:51 -08:00
Ryan Dahl
85827bde34
Avoid cascading EADDRINUSE test failure
...
See note in test-securepair-client.js
2010-11-29 14:21:51 -08:00
Ryan Dahl
6057747e9e
Improve HTTP debug messages
2010-11-29 13:53:35 -08:00
Ryan Dahl
1db59afb75
style
2010-11-29 08:57:40 -08:00
Ryan Dahl
7a7feb8cd3
Add note about EADDRINUSE to docs
2010-11-29 00:20:21 -08:00
Ryan Dahl
105501c195
test-fs-realpath: Don't ceate things in /tmp; use tmpDir
2010-11-29 00:10:37 -08:00
Ryan Dahl
97970b05fe
Default to TLSv1
2010-11-28 23:24:32 -08:00
Ryan Dahl
bf89872306
style
2010-11-28 23:20:59 -08:00
Ryan Dahl
be2457aaca
Use SSL_MODE_RELEASE_BUFFERS by default.
2010-11-28 21:03:41 -08:00
Ryan Dahl
8012f2cb7a
Add some TODO items
2010-11-28 18:41:53 -08:00
Ryan Dahl
102b1d999d
Add simple securepair client test
2010-11-28 18:40:50 -08:00
isaacs
a52f59b437
Use a proper tty test.
2010-11-27 11:36:34 -08:00
Tom Hughes
6285fac232
Allocations with new[] must be freed with delete[].
...
See http://valgrind.org/docs/manual/mc-manual.html#mc-manual.rudefn
2010-11-24 12:53:28 -08:00
Tom Hughes
7fcfb7b981
Fix memleak in ChildProcess:Spawn().
2010-11-24 12:51:46 -08:00
Ryan Dahl
73318fa09d
Upgrade V8 to 2.5.8
2010-11-24 01:03:06 -08:00
Nikhil Marathe
fa8ffaf9b2
cmake: Install v8 headers include/node
2010-11-23 23:33:20 -06:00
Nikhil Marathe
1b6b090cdc
Use CMake's standard way to find Python.
...
Rather than have the python literal string, use CMake's find_package
to find actual python executable. This is more useful if you have
both Python 2 and 3 installed. CMake currently only supports python 2
and so will automatically find that version
2010-11-23 23:33:20 -06:00
Tom Hughes
14e6b07f63
cmake: Add cdash support.
2010-11-23 23:33:20 -06:00
Tom Hughes
342b8b2ed2
cmake: fix debian package description.
2010-11-23 23:33:20 -06:00
Daniel Gröber
ea29cb4e46
cmake cleanup
...
* Removed useless include_directories
* Print ssl library path in build summary
* ExternalProject also exists on 2.8.0
* include pummel tests when testing with ctest
* Moved tests.cmake to test/CMakeList.txt
* Removed inconsistent, unnecessary condition in else
2010-11-23 23:33:19 -06:00
Tom Hughes
a530c23d96
cmake: Add wrapper Makefile and README.
2010-11-23 23:33:19 -06:00
Ryan Dahl
b57c1f51b9
Saner, yet still ugly, fix to displaying syntax errors
2010-11-23 18:46:13 -08:00
Ryan Dahl
a6f6532dfb
Fix test-securepair-server
2010-11-23 18:30:52 -08:00
isaacs
a2b3c865c9
Correct reference to "process.Module"
2010-11-23 14:09:59 -08:00
Wade Simmons
03e5da8429
Fix ErrnoExceptions that have the wrong syscall name
2010-11-23 14:09:16 -08:00
Ryan Dahl
4f32a59307
Fix buffer.slice(0, 0)
2010-11-23 12:20:22 -08:00
Ryan Dahl
f123a1ab40
hack to display syntax errors. FIXME
2010-11-22 17:55:04 -08:00
Tom Hughes
446beebd79
Add cmake build support.
...
Squashed commit of ca128f7dcd with
contributions from Mark Constable (markc@renta.net ) and Daniel Gröber
(darklord@darkboxed.org ).
2010-11-22 13:32:49 -08:00
isaacs
b52b4196ab
Fix problem with requireNative not exporting 'module' object
...
Broke require('constants'). Add unrelated test which breaks it.
2010-11-22 11:55:31 -08:00
Ryan Dahl
12554380d5
Add support for SSDP methods -_-
2010-11-21 21:44:23 -08:00
Ryan Dahl
d695486185
Upgrade http-parser
2010-11-21 21:39:14 -08:00
Ben Noordhuis
b64791c7e4
Fix c-ares bug: reply to a CNAME query
...
doesn't contain addresses, causing ares_parse_a_reply() to bail out with
ARES_ENODATA.
2010-11-21 20:54:53 -08:00
Ben Noordhuis
611dffabb6
Support CNAME lookups in DNS module.
2010-11-21 20:53:57 -08:00
Jorge Chamorro Bieling
6aa92d5289
Apple's threaded write()s bug
...
fixes test/simple/test-fs-sir-writes-alot.js on mac
2010-11-21 20:44:48 -08:00
Ryan Dahl
7b2f5ab7f8
Fix mac build
2010-11-21 20:33:04 -08:00
Ben Noordhuis
f0b8cc6a94
require() should work with node --eval.
...
with tests
Fix module path resolve bug. Normally the module path is taken from
realpath(__filename) but with eval there is (of course) no filename
2010-11-21 20:24:26 -08:00
Nikhil Marathe
7a3971e433
Use sys.executable to call python
2010-11-21 19:27:23 -08:00
Ben Noordhuis
80b5a52217
Fix compiler warnings.
2010-11-21 19:11:05 -08:00
Ben Noordhuis
a87172f9b2
Compile with -Wno-unused-parameter -D_FORTIFY_SOURCE=2
2010-11-21 19:07:27 -08:00
Marco Rogers
5749f91814
Docs for util.inherits
2010-11-21 19:03:23 -08:00
Herbert Vojčík
3422263414
requireNative made independent on module system
2010-11-21 18:17:44 -08:00
Ryan Dahl
f6479f2fb6
Print deprecation warning on process.compile
2010-11-21 15:22:08 -08:00
Ryan Dahl
a16b3c3148
Use runInNewContext instead of process.compile
2010-11-21 15:16:02 -08:00
Ryan Dahl
b1088d6bd2
Load 'path' module with requireNative
...
(now that requireNative does not depend on path module)
2010-11-21 15:07:38 -08:00
Ryan Dahl
bb6d468dd8
requireNative doesn't depend on rest of module system
2010-11-21 15:06:20 -08:00
Silas Sewell
11b2ee7632
Various doc tweaks (2-spaces vs tabs, EOL-whitespace, repl prompt, "world" vs "World", etc...)
2010-11-21 14:33:09 -08:00
Ryan Dahl
c11f3f8b0f
simplify lazy constant loading
2010-11-21 14:20:22 -08:00
Ryan Dahl
6063ea62df
fix style in path.js
2010-11-21 14:15:46 -08:00
Ryan Dahl
5890272538
Print friendly error message when main module is ENOENT
2010-11-21 13:58:47 -08:00
Ryan Dahl
c321e9893d
stream.pipe should remove listeners on dest close
2010-11-20 23:08:45 -08:00
Ryan Dahl
2320497992
Revert "Merge branch 'writev'"
...
This reverts commit cd9515efd9 , reversing
changes made to df46c8e698 .
Too slow. Needs more work.
2010-11-20 20:55:15 -08:00
Ryan Dahl
794e7be4f8
Revert "Actually don't need to limit sendmsg size on unix - seems okay."
...
This reverts commit 464ced4a86 .
2010-11-20 20:45:30 -08:00
Ryan Dahl
d42098651b
Revert "fd_to_send needs to be cleared if *any* data was sent"
...
This reverts commit a93634007a .
2010-11-20 20:45:22 -08:00
Marco Rogers
118b88e44f
update repl to distinguish JSON.parse SyntaxErrors from the rest
2010-11-20 20:36:14 -08:00
Ryan Dahl
56074d1056
Inline Buffer::Length and Buffer::Data
2010-11-20 00:04:22 -08:00
Ryan Dahl
a93634007a
fd_to_send needs to be cleared if *any* data was sent
2010-11-19 23:05:13 -08:00
Ryan Dahl
464ced4a86
Actually don't need to limit sendmsg size on unix - seems okay.
2010-11-19 22:52:20 -08:00
Ryan Dahl
15d5378684
Add failing test for TLS server
2010-11-19 13:28:13 -08:00
Ryan Dahl
d722c8df73
Add some comments to securepair
2010-11-19 13:02:14 -08:00
Ryan Dahl
7515360951
fix style for SecureStream::IsInitFinished
2010-11-19 12:58:00 -08:00
Ryan Dahl
cbdcc1d5f3
Upgrade V8 to 2.5.7
2010-11-19 10:49:09 -08:00
Nikhil Marathe
f11291a220
Added documentation for Stream.pipe
2010-11-19 10:09:01 -08:00
Ryan Dahl
9c29ac6feb
Fix style
2010-11-19 10:05:41 -08:00
Brian White
952bbb86b5
Fix OpenSSL SSL_library_init function check on OpenBSD.
2010-11-18 21:47:15 -08:00
Ryan Dahl
296802c641
Update TODO
2010-11-18 16:57:46 -08:00
Ryan Dahl
cd9515efd9
Merge branch 'writev'
2010-11-18 16:49:39 -08:00
Ryan Dahl
1f18648394
Fix typo
2010-11-18 16:47:38 -08:00
Ryan Dahl
2ba3c10d62
Only try to flush big buffers once
2010-11-18 16:47:38 -08:00
Ryan Dahl
849792e46b
Add todo about test-pipe.js and throwing on resume()
2010-11-18 16:47:38 -08:00
Ryan Dahl
544877d12e
Fix socket.end() problem on non-empty queue
2010-11-18 16:47:38 -08:00
Ryan Dahl
0b1214c16b
Fix a bug regarding queueSize, add asserts
2010-11-18 16:47:38 -08:00
Ryan Dahl
3884b4185a
Small clean ups
2010-11-18 16:47:38 -08:00
Ryan Dahl
02039c9b53
'connect' event may disconnect socket
2010-11-18 16:47:38 -08:00
Ryan Dahl
42357645cb
Dump after ev_loop
2010-11-18 16:47:38 -08:00
Ryan Dahl
d3fbe3e3d1
Emit drain and stop IOWatcher even on empty buffer
2010-11-18 16:47:38 -08:00
Ryan Dahl
fa556a1425
Add callback to socket.write(), fix test-sendfds
2010-11-18 16:47:38 -08:00
Ryan Dahl
a6d8425382
make sure unix sockets are tagged correctly
2010-11-18 16:47:38 -08:00
Ryan Dahl
5d6a03c9fe
Don't append buckets of zero length
2010-11-18 16:47:38 -08:00
Ryan Dahl
10ff559ec3
Add IOWatcher.flush()
...
To be called if sockets get too much data. This is to force a flush before
the tick ends.
2010-11-18 16:47:37 -08:00
Ryan Dahl
7c3c5c6861
Maintain queueSize for each socket
2010-11-18 16:47:37 -08:00
Ryan Dahl
5a84461e46
Also do ondrain callback for socket (needed by http)
2010-11-18 16:47:37 -08:00
Ryan Dahl
e1250a3333
Reset _eof on socket reuse
2010-11-18 16:47:37 -08:00
Ryan Dahl
5ba0be6166
Don't send null data segments
2010-11-18 16:47:37 -08:00
Ryan Dahl
d74c506044
Support encoding
2010-11-18 16:47:37 -08:00
Ryan Dahl
dcc547d798
Dumper net.js integration
2010-11-18 16:47:37 -08:00
Ryan Dahl
913789da3e
IOWatcher::Dump(), writev
2010-11-18 16:47:31 -08:00
Ryan Dahl
df46c8e698
Rip out the old TLS implementation
2010-11-18 16:46:37 -08:00
Ryan Dahl
2a750bffcc
Add tests for querystring.unescapeBuffer
2010-11-18 16:22:14 -08:00
Oleg Efimov
8b980d729c
Fix line wrapping in docs. Add tics for constants in docs text.
2010-11-18 15:41:15 -08:00
Stéphan Kochen
57eb5cb9a0
Make SlowBuffer pass Buffer.isBuffer test.
2010-11-18 15:36:09 -08:00
Ryan Dahl
6ff12c425e
Add querystring.unescapeBuffer
2010-11-18 15:18:06 -08:00
Ryan Dahl
57d8172906
query-string unescape moved to js land
2010-11-18 15:12:31 -08:00
Ryan Dahl
2219c64a04
fix race in test-http-big-proxy-responses.js
2010-11-18 13:50:54 -08:00
Brian White
5908bdab9a
Make sure raw mode is disabled when exiting a terminal-based REPL.
2010-11-17 18:45:34 -08:00
Ryan Dahl
bce092aeb8
Remove leading comma examples
2010-11-17 18:25:14 -08:00
Micheil Smith
57de0b11db
Remove jQuery from project
2010-11-17 17:57:58 -08:00
Ryan Dahl
9f1b27bf76
Add doc TODOs
2010-11-17 17:50:00 -08:00
Micheil Smith
8d27393aa2
Generate Table of Contents at compile time.
2010-11-17 17:38:54 -08:00
Dan Søndergaard
8591057fa3
Better description of lstat(). Wrapped all lines.
2010-11-17 16:11:51 -08:00
Tim Cooijmans
d4b726a1a6
fix utils.inspect's detection of circular structures
2010-11-17 16:06:17 -08:00
Ryan Dahl
9da29a6109
Fix links
2010-11-17 14:51:06 -08:00
Ryan Dahl
241ea7e595
Simplify next tick logic by looping around ev_loop
...
This is also in preparation for the writev patch, which needs to dump
remaining data after ev_loop ends.
2010-11-17 13:22:11 -08:00
Ryan Dahl
17307e386e
Fix doc links
2010-11-17 09:39:26 -08:00
Ryan Dahl
c87b7b7c69
Now working on v0.3.2-pre
2010-11-17 09:31:51 -08:00
Ryan Dahl
ce9a54aa1f
Bump version to v0.3.1
2010-11-16 19:17:44 -08:00
Ryan Dahl
03fa258df7
Revert "Upgrade V8 to 2.5.6"
...
This reverts commit 564a48643b .
Breaks cygwin
2010-11-16 19:14:14 -08:00
Ryan Dahl
cea3a95f9f
Add ref to buffer during fs.write and fs.read
...
There was the possibility the buffer could be GCed while the eio_req was
pending. Still needs test coverage for the fs.read() problem.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/c11f8b683f37cef
2010-11-16 16:26:55 -08:00
Ryan Dahl
cf05257fb7
Test for server.listen() more carefully, fix bug
2010-11-16 15:33:21 -08:00
Ryan Dahl
a01e09502e
scp should copy the right dir
2010-11-15 22:25:09 -08:00
Ryan Dahl
9bf93de532
Update TODO
2010-11-15 22:18:52 -08:00
Ryan Dahl
84a5a69d9f
Fix doc links on index.html
2010-11-15 20:34:15 -08:00
Ryan Dahl
e5cc6388cb
Docs for server.address()
2010-11-15 20:26:46 -08:00
Ryan Dahl
90d1e47323
make doc improvements
2010-11-15 20:23:14 -08:00
Ryan Dahl
4144024e6b
Test and fix for self-assigned port from net.Server
2010-11-15 20:22:54 -08:00
Micheil Smith
939fba40fd
Better doc indexes, fix some links
2010-11-15 19:59:21 -08:00
Micheil Smith
ade8cf96e0
Build API page into build/doc; simplify doctool.
2010-11-15 19:49:52 -08:00
Ryan Dahl
879a9e0548
solaris -> sunos
2010-11-16 03:23:47 +00:00
Ryan Dahl
702a923da7
Fix docs for vm module
2010-11-15 19:21:56 -08:00
Ryan Dahl
473721979d
Print warning when using platform_none.cc
2010-11-16 03:19:01 +00:00
Ryan Dahl
00a1d61cc8
Fix OS::GetExecutablePath for platform_none
2010-11-16 03:06:18 +00:00
Ryan Dahl
8b1082825c
Rename require('javascript') to require('vm')
2010-11-15 18:37:27 -08:00
Ryan Dahl
183f6c2077
Add .node_moudles to lookup path again
2010-11-15 11:21:48 -08:00
Ryan Dahl
a375c6ae9a
Revert node_module lookup commits
...
Revert "Add ~/.node_modules as well as ~/.node_libraries"
This reverts commits
5e14c8bec0 .
b0adaff67e .
492fc0d752 .
2010-11-15 11:20:49 -08:00
Ryan Dahl
19ed02b286
Fix docs for 'javascript' module
2010-11-15 00:51:01 -08:00
isaacs
d39d3cec65
Make the javascript module API nodey.
...
Add a createScript function, and put stuff on exports instead of hiding
it in exports.Script.
2010-11-15 00:44:08 -08:00
Ryan Dahl
6b71e0b038
Remove RonnJS not used anymore
2010-11-15 00:43:53 -08:00
Ryan Dahl
0b7fb01e67
Remove old TODO
2010-11-14 23:44:34 -08:00
Ryan Dahl
d7e7161b27
Add small crappy manpage (please improve)
2010-11-14 23:12:43 -08:00
isaacs
9996b459e1
Implement new path.join behavior
...
1. Express desired path.join behavior in tests.
2. Update fs.realpath to reflect new path.join behavior
3. Update url.resolve() to use new path.join behavior.
2010-11-14 22:49:26 -08:00
Ryan Dahl
25eecd179b
Fix configure on x86
2010-11-14 22:46:26 -08:00
Micheil Smith
a6c3d7121b
Reworked and cleaned up documentation for Events
2010-11-14 13:52:34 -08:00
Micheil Smith
f9ad171085
Added documentation for which module to require to use the methods defined in that documentation
2010-11-14 13:52:34 -08:00
Micheil Smith
09e60aa435
A few changes to the style, specifically for h3 + h3
2010-11-14 13:52:34 -08:00
Micheil Smith
17595b5343
Various changes to Net Documentation, ammended style for API.
2010-11-14 13:52:31 -08:00
isaacs
589e27948b
writeFile fixes
...
writeFileSync could exhibit pathological behavior when a buffer could
not be written to the file in a single write() call.
Also, writeFile was not quite as optimized as it could be.
2010-11-14 01:43:30 -08:00
Ryan Dahl
d787a444c5
Use require('javascript') instead of process.binding('evals')
2010-11-13 15:19:15 -08:00
Ryan Dahl
bc0118e519
Remove process.compile from docs
2010-11-13 15:08:09 -08:00
Ryan Dahl
b842fbd602
Update gitignore for new docs
2010-11-13 15:02:18 -08:00
Ryan Dahl
320e0020a2
fix 'make doc'
2010-11-13 14:59:15 -08:00
Bert Belder
e129630e9e
Fix V8 build on Cygwin
2010-11-13 14:38:25 -08:00
Ben Noordhuis
5d80bdb6ae
Add --profile flag to configure script, enables gprof profiling.
2010-11-13 14:34:45 -08:00
Rasmus Andersson
e5a0fbe500
Added support for cross compilation and also fixed DEST_CPU to represent the canonical symbols dictated by v8
2010-11-13 14:29:59 -08:00
Ryan Dahl
de6e88c428
Fix segfault on test-crypto
...
Plus random cleanups. This code needs help.
2010-11-13 14:26:42 -08:00
Ryan Dahl
8e09b1e2e1
Simplify REPL displayPrompt
...
Now that we insert \r into the stream and aren't switching back and forth
between termios modes, not need to worry about when to display the prompt.
2010-11-12 14:39:42 -08:00
Ryan Dahl
564a48643b
Upgrade V8 to 2.5.6
2010-11-11 22:42:06 -08:00
Ryan Dahl
d4af8a6b6a
Add writeFilter when in the readline
...
Switch \n with \r\n for all strings printed out.
Necessary for writev patch.
2010-11-11 22:37:17 -08:00
Ryan Dahl
c7b24efd21
Move ev_loop out of javascript
2010-11-11 16:34:26 -08:00
Ryan Dahl
4b4d4afa0a
joyent-ize website
2010-11-11 16:34:11 -08:00
Ryan Dahl
06267f4d8d
Remove -e from echo in test. Non-portable
2010-11-10 22:32:26 -08:00
Ryan Dahl
d23643051e
Upgrade http-parser again
2010-11-10 22:12:47 -08:00
Ryan Dahl
8285f12864
Upgrade http-parser
2010-11-09 15:02:18 -08:00
Ryan Dahl
c6029c75a4
Remove util.print from docs
...
Use process.stdout.write()
2010-11-07 17:22:56 -08:00
Guillaume Tuton
07da49b095
Set FD_CLOEXEC flag on stdio FDs before spawning.
...
With regression test.
2010-11-07 13:07:14 -08:00
Ryan Dahl
a3750a9833
Remove unnecessary ref/unref in iowatcher cb
2010-11-05 17:38:02 -07:00
Ben Noordhuis
b4def4806c
Make writes to process.env update the real environment. Tests included.
2010-11-03 12:15:07 -07:00
Ryan Dahl
029180a93c
Install node-waf
2010-11-03 09:02:54 -07:00
Ryan Dahl
6ce007e89a
Remove warning in 'sys' - too aggressive
2010-11-02 21:20:28 -07:00
Ryan Dahl
515f006b6e
Add legacy methods to Buffer
2010-11-02 10:09:59 -07:00
Ryan Dahl
07812c47a4
Add test for http-buffer problem
...
Already fixed in 7e24a05cba
2010-11-01 18:23:13 -07:00
Ryan Dahl
97c9745063
Back to WAF
...
Too much instability right now. Hopefully we can revisit autoconf soon.
2010-11-01 16:51:20 -07:00
Ryan Dahl
41c1563584
Remove old buffer api
2010-11-01 14:59:30 -07:00
Ryan Dahl
f1391f33cd
Add missing require('fs')
2010-11-01 14:56:21 -07:00
Ryan Dahl
ea78d995e0
Upgrade V8 to 2.5.3
2010-11-01 14:10:35 -07:00
Ryan Dahl
fd725efa8f
Add execinfo to freebsd LINKFLAGS
2010-11-01 13:36:03 -07:00
Ben Noordhuis
7a7e88d44b
Fix 'undefined symbol' errors when loading native modules.
2010-11-01 12:57:28 -07:00
Oleg Efimov
6bf97808ee
Add node headers installation
2010-11-01 09:58:21 -07:00
Oleg Efimov
fac6db1b56
Add DESTDIR support to Makefile
2010-11-01 09:57:27 -07:00
Chandra Sekar S
2b08bacd56
Removed range read optimization as it doesn't work with libeio.
2010-11-01 08:28:57 -07:00
Ryan Dahl
2fa260cef6
Clean up 'make clean'
2010-10-31 19:31:31 -07:00
Ryan Dahl
ae802e3867
Improper use of CFLAGS
2010-10-30 17:03:26 -07:00
Ryan Dahl
7c90ff5d41
Add configure --enable-debug to make it build both
2010-10-30 16:11:30 -07:00
Ryan Dahl
5e11b8a937
De-indent dns.lookup
2010-10-30 13:31:51 -07:00
Ryan Dahl
9c2969253b
Make sure watcher.set() isn't being called when active
2010-10-30 12:52:53 -07:00
Ryan Dahl
016fdab43e
Fix argv[6] comment in node_file
2010-10-30 12:04:30 -07:00
Micheil Smith
98e7d3506f
Rewrite libeio After callback to use req->result instead of req->errorno for error checking
2010-10-30 11:45:43 -07:00
Ryan Dahl
ef9e716fd1
Delete libv8 in 'make clean'
2010-10-30 11:14:18 -07:00
Ryan Dahl
268bcbde7c
Upgrade V8 to 2.5.2
2010-10-30 11:13:37 -07:00
Ryan Dahl
ccdd979a69
Changes to compile on solaris
2010-10-30 11:03:42 -07:00
Ryan Dahl
7a48fd8455
Handle null values in clearTimeout
2010-10-29 00:00:43 -07:00
Ryan Dahl
fa7dcbec8b
Install node-waf
2010-10-28 19:43:36 -07:00
Ryan Dahl
9bea4c8d58
X the node-repl script
2010-10-28 19:41:44 -07:00
Micheil Smith
818e56d44b
Disable make manpage, this is broken and can prevent node from installing correctly.
2010-10-28 17:17:04 -07:00
Ryan Dahl
23927751eb
Fix make doc
2010-10-28 15:14:19 -07:00
Micheil Smith
a6f246b9f5
Removing the old doc templates, and doc javascript
2010-10-28 15:02:41 -07:00
Micheil Smith
c9f656baa9
More simplification of the templating & rendering.
2010-10-28 14:59:15 -07:00
Micheil Smith
d4f1e6a023
Added a single page version, moved index to be standard page.
2010-10-28 14:59:15 -07:00
Micheil Smith
c032350f64
Adding build tools & templates/assets
2010-10-28 14:59:15 -07:00
Micheil Smith
e190c9616e
Splitting documentation
2010-10-28 14:59:15 -07:00
Ryan Dahl
1eb547fec1
Lazy load modules in net.js
2010-10-28 13:15:53 -07:00
Ryan Dahl
5171da5a6c
Remove a little redundancy
2010-10-28 13:11:42 -07:00
Ryan Dahl
65dced730f
Handle one more onReadable call from crypto
...
MUST get rid of this calledByIOWatcher stuff. Hopefully will be able to when
securepair stuff lands.
2010-10-28 12:34:48 -07:00
Ryan Dahl
73cfda12bb
Abstract out a Server.prototype.pause method
2010-10-28 11:42:22 -07:00
Ryan Dahl
ad61d77fa3
Abstract out net.Server.prototype._rejectPending
...
Does the same timeout action for maxConnections as it does for EMFILE.
2010-10-28 11:33:35 -07:00
Jonas Pfenniger
74d0a077ec
Module-level EMFILE handling
...
All net servers now share the same dummy socket. The ulimit warning is
throttled for all servers.
2010-10-28 11:12:59 -07:00
Rasmus Andersson
899fffa395
Build system improvements: (cross compilation, libnode, etc)
...
- utilizing autoconf configure.guess to output canonical $target_{cpu,vendor,os}
- normalizing $target_cpu --> $arch according to v8 naming scheme
- normalizing $target_os --> $platform according to v8 naming scheme
- renamed c-ares platform-arch directories to represent v8 canonical names
- new targets in Makefile: libnode-{static,dynamic}[-debug]
- scons is symbolized as SCONS in Makefile for portability/flexibility.
- LINKFLAGS inherith from LDFLAGS ("magic" variable exported by autoconf and configure).
- When building on OS X, CFLAGS and LDFLAGS will contain appropriate -arch flag, set up by configure (instead of the Makefile).
- libv8.a make targets cleaned up with unison libv8_flags set of flags.
- the clean make target now cleans up libraries (libv8, libnode, etc).
- added config.guess, config.sub and install-sh (utilized by autoconf/configure)
2010-10-27 17:15:32 -07:00
isaacs
987cbbc191
Handle cyclic links smarter in fs.realpath
...
Rather than aborting in the face of *any* repeated link in a given path,
instead only abort if such a cycle actually makes a given path unresolvable.
Test for this by doing a normal stat. Still use the seenLinks object to
cache link contents so as to cut own a little bit on readlink calls.
Also add a pathological test that fails without the change to fs.js.
2010-10-27 17:02:42 -07:00
isaacs
4c514a723c
Let exit listeners know the exit code
2010-10-27 16:54:10 -07:00
Jorge Chamorro Bieling
fd70d30a9c
make "node --eval" eval in the global scope.
2010-10-27 16:52:53 -07:00
Ryan Dahl
67652ddf27
Refactor callbacks in net.Stream for fewer closures
2010-10-27 16:43:16 -07:00
Ryan Dahl
38dde9684f
Add extra anti-DoS tech to net.Server
2010-10-27 12:09:16 -07:00
Ryan Dahl
aeb9bed63e
Improve idle benchmarks
2010-10-27 02:52:49 -07:00
Ryan Dahl
ac54272218
Gracefully handle EMFILE
...
Implementing a tip from Marc Lehmann:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#The_special_problem_of_accept_ing_wh
Keep an extra FD around for every server. When you hit EMFILE, destroy that
FD, accept a connection, close it; in this way you can clear the connection
queue and let people know that you're overload.
No more timeout needed.
2010-10-27 02:12:25 -07:00
Tim-Smart
79ecc8e9b7
Style changes.
2010-10-26 18:47:46 -07:00
Ryan Dahl
bc47353bbe
Use the timer list for setTimeout
2010-10-26 14:53:18 -07:00
Ryan Dahl
79944006e2
Move setTimeout and friends into timers module
2010-10-26 14:53:17 -07:00
Ryan Dahl
5cc29b80f2
Move idle timers into its own module
2010-10-26 14:53:17 -07:00
Ryan Dahl
dcc4fffe4d
Add C++ API for constructing fast buffer from string
2010-10-26 13:43:58 -07:00
Ryan Dahl
d1e5fbdde4
Remove old TODOs
2010-10-26 11:33:18 -07:00
Ryan Dahl
72aee8216c
Fix permissions on http.js
2010-10-26 11:31:01 -07:00
Ryan Dahl
9bbc7e0bc7
Remove old todo
2010-10-26 01:10:32 -07:00
Ryan Dahl
2470d2ee92
allowHalfOpen disabled by default
...
Users too often would forget to add
socket.on('end', function () {
socket.end();
});
Which is a mistake. Therefore we default to this behavior and
only optionally let people handle the 'end' case themselves.
2010-10-26 01:10:18 -07:00
Ryan Dahl
a7b4af0ae5
create directories during configure
2010-10-25 19:52:58 -07:00
Ryan Dahl
5175864c0e
exec instead of sh a the configure.real script
2010-10-25 19:52:35 -07:00
Ryan Dahl
43022eabf7
more configure hackery
2010-10-25 18:33:15 -07:00
Ryan Dahl
eaba4fc2bf
Ignore configure.real
2010-10-25 18:24:48 -07:00
Ryan Dahl
5cf4ceff59
add configure
2010-10-25 18:21:45 -07:00
Ryan Dahl
583c07bf8b
fix style
2010-10-25 17:30:08 -07:00
Paul Querna
97977640bd
Set the readable variables on the read/write streams
...
and add more debug() calls to make it easier to see the flow
2010-10-25 17:28:21 -07:00
Paul Querna
1128c0bf67
Add SecurePair for handling of a ssl/tls stream.
2010-10-25 17:26:58 -07:00
Paul Querna
6ea61acf29
remove old todo.
2010-10-25 17:26:44 -07:00
Paul Querna
1ce4684a27
Centralize error handling in SecureStream
...
and add a start method, to kick off SSL handshaking, without writing a zero
byte buffer
2010-10-25 17:26:03 -07:00
isaacs
446d2ec19c
Add make install
2010-10-25 13:43:09 -07:00
Micheil Smith
8da020d39e
Update node_net.cc to make us of node_constants.cc
...
also affects dgram which uses a constant from node_net.cc
2010-10-25 12:14:47 -07:00
Paul Querna
9977831078
Add HAVE_OPENSSL flag to makefile
2010-10-25 10:28:14 -07:00
Ryan Dahl
7eed71f8bb
add todo about half-open connections
2010-10-24 20:11:47 -07:00
Ryan Dahl
fcd0c3ebc0
Remove test-base64-bigfile
...
Already tested in test/simple/test-buffer.js. Takes too long, uses too much
memory.
2010-10-24 19:21:12 -07:00
Ryan Dahl
15594eaf87
Replace WAF with make/autoconf
2010-10-24 18:39:36 -07:00
Ryan Dahl
bb85e7751f
Now working on v0.3.1
2010-10-23 16:01:37 -07:00
Ryan Dahl
1582cfebd6
bump version to 0.3.0
2010-10-23 16:00:15 -07:00
Ryan Dahl
477df1aaec
Revert "Add some failing tests for path.join"
...
This reverts commit 8c0e87f9c3 .
(Revert until fix comes)
2010-10-23 15:35:58 -07:00
Ryan Dahl
38f117cb6d
one more 'listening' race condition
2010-10-23 14:26:31 -07:00
Ryan Dahl
44234e9cc7
Fix a few 'listening' race conditions
...
in
test-net-timeout
test-http-client-parse-error
2010-10-23 14:13:04 -07:00
Ryan Dahl
0ac2ef924f
Do not spin on aceept() with EMFILE
...
When a server hit EMFILE it would continue to try to accept new connections
from the queue. This patch introduces a timeout of one second where it will
stop trying to accept new files. After the second is over it tries again.
This is a rather serious bug that has been effecting many highly concurrent
programs. It was introduced in 4593c0, version v0.2.0.
TODO: A test for this situation. Currently I test it like this
termA% cd projects/node
termA% ulimit -n 256
termA% ./node benchmark/idle_server.js
termB% cd projects/node
termB% ./node benchmark/idle_clients.js
And watch how the server process behaves.
2010-10-23 12:28:20 -07:00
Ryan Dahl
9bf2975f78
Make sure Error object on exec() gets killed member
...
Also default to SIGTERM for destruction when exceeding timeout or buffer on
exec()
2010-10-23 11:37:40 -07:00
Ryan Dahl
d9a5edb2b0
Fix test-net-eaddrinuse
2010-10-23 11:22:24 -07:00
Stéphan Kochen
dd52737476
Provide a C++ Buffer constructor for external storage.
...
In order to do this, buffer data management was moved out of the
JS entry-point New, and into Replace.
Secondly, the constructor makes an immediate call to Replace, and
in order for ArrayData calls to work, wrapping must already be set
up. Now, the constructor takes the wrappee as a parameter.
2010-10-22 16:52:14 -07:00
Stéphan Kochen
b3e60c7b25
Generalize Buffer::Copy to work with all unsigned byte external data.
2010-10-22 13:47:10 -07:00
Stéphan Kochen
d5e966154c
Simplify things by using *ArrayData everywhere.
2010-10-22 13:32:48 -07:00
Stéphan Kochen
d9b08d66d6
Remove old interface remains from Buffer.
...
These were all lacking implementation, so deprecating wouldn't help.
2010-10-22 13:32:31 -07:00
Ryan Dahl
b2969a9155
Don't call AtExit twice
2010-10-22 10:17:38 -07:00
Vitali Lovich
fb8830a64f
Fix parsing of linux memory
...
If process name contains a space, this parsing fails for no good reason.
2010-10-22 10:14:19 -07:00
Ryan Dahl
604f4fdf8c
Write write.txt into the tmpdir
2010-10-22 10:02:30 -07:00
Ryan Dahl
92c5634cbd
Remove a confusing sentence in the docs
2010-10-21 17:32:13 -07:00
Jorge Chamorro Bieling
99e19aa398
Remove unneeded function wrappers
2010-10-21 17:11:59 -07:00
Ryan Dahl
174a3a9a08
Upgrade libev to 4.00
2010-10-21 15:38:32 -07:00
Ryan Dahl
3b861db31d
Upgrade V8 to 2.5.1
2010-10-21 15:22:38 -07:00
Ryan Dahl
2629296c25
Add isatty for isaacs
2010-10-21 12:34:37 -07:00
Ryan Dahl
ceb5331a64
Force exit on SIGINT but still reset flags on stdio fds
...
Add test that one can ctrl+c out of a script spinning infinitely.
2010-10-21 12:28:04 -07:00
Ryan Dahl
33e45bbe46
Add incomplete R plot file
2010-10-20 21:28:49 -07:00
Ryan Dahl
6570cd99e5
Fix execFile timeouts, improve tests
...
It seems that a parent will not get a SIGCHLD if the child is killed by the
parent? It's unclear, so make 'exit' callback manually.
2010-10-20 19:20:52 -07:00
Ryan Dahl
5a98fa4809
ChildProcesses cannot be killed if pid is missing
2010-10-20 17:55:25 -07:00
Tom Hughes
78da9cb052
Add --max-stack-size flag.
...
v8 doesn't expose a command-line flag to set the stack size, so this
adds a new flag that node understands how to handle and uses v8's
ResourceConstraints API.
2010-10-20 15:57:13 -07:00
isaacs
5e14c8bec0
Add ~/.node_modules as well as ~/.node_libraries
2010-10-20 15:46:13 -07:00
isaacs
b0adaff67e
require looks in node_modules folders
...
for modules starting with the __dirname and moving up.
This makes it much easier to localize dependencies to a particular program.
2010-10-20 15:45:47 -07:00
isaacs
bfc6b51d95
The cwdRequire hack is no longer necessary with the require.resolve refactor.
2010-10-20 15:22:02 -07:00
isaacs
492fc0d752
Split out modulePaths and defaultPaths
...
This way, the "default" paths of ~/.node_libraries and {prefix}/lib/node are only checked *after* anything that the user has placed into the NODE_PATHS environ, or pushed onto require.paths.
This makes require.paths a much more effective write-target, albeit slightly less useful as a read-target. However, given the existence of require.resolve(), this is less of an issue -- if you want to know what a module ID will map to, just ask that question and get an authoritative answer from the loading machinery.
2010-10-20 15:21:33 -07:00
isaacs
b0aadbea6b
Docs for require.resolve
2010-10-20 15:20:04 -07:00
Ryan Dahl
8c0e87f9c3
Add some failing tests for path.join
2010-10-20 13:03:49 -07:00
Aaron Heckmann
bd8e4f656e
Prevents child_process.exec timeouts from throwing when the child was previously killed.
2010-10-20 12:46:51 -07:00
isaacs
226eff5104
Add require.resolve.
...
Also, hack the repl so that it works as expected there, too.
2010-10-20 12:12:07 -07:00
Ryan Dahl
3407dab07f
Remove old references to old 'stream' event
2010-10-20 11:10:43 -07:00
Nikhil Marathe
179a7f6ffa
Added documentation of EventEmitter.once
2010-10-20 11:09:40 -07:00
Ryan Dahl
a313f38c34
use bash instead of sh in http_simple_bench.sh
2010-10-18 17:48:49 -07:00
Ryan Dahl
1b2f6f9e29
Upgrade V8 to 2.5.0
2010-10-18 17:13:30 -07:00
Johan Euphrosine
5d400cfd3a
net listen should emit eaddrinuse error
2010-10-18 17:00:13 -07:00
Mark Nottingham
b14eeb3c1e
Fix expect/continue keepalive
2010-10-18 15:38:46 -07:00
Jorge Chamorro Bieling
c735b4663a
unbase64 skips over *any* illegal chars
2010-10-18 15:22:10 -07:00
Ryan Dahl
40f675b64b
Fix race conditions in test-http-upgrade-client2
2010-10-18 15:05:18 -07:00
Ryan Dahl
4adadc38f4
fix test-base64-bigfile for linux
2010-10-18 15:00:49 -07:00
Ryan Dahl
97255c2651
Fix test harness for Linux
...
Mostly just upgraded tools/test.py to the latest one that's in V8. But also
fixing the before and after hooks to preserve the test/tmp directory so that
running tests manually usually works.
2010-10-18 14:54:39 -07:00
Sami Samhuri
56df0cbf93
new api for defining repl commands
2010-10-18 13:46:54 -07:00
AJ ONeal
74c8b5fd08
./wscript: allow for cross-compiling of all three supported architectures
2010-10-18 11:39:56 -07:00
isaacs
25b5bc01a6
A big base64 file encoding/decoding test
...
Originally written to try to track down this bug report:
http://permalink.gmane.org/gmane.comp.lang.javascript.nodejs/13924
As it turns out, it's showing a completely different kind of failure. When
the file is base64 encoded with the native program, then decoded with node,
it doesn't match the original. Something's fishy.
2010-10-18 11:36:23 -07:00
Ryan Dahl
cf1db4f304
base64 decode should handle whitespace
2010-10-18 11:34:35 -07:00
Ryan Dahl
ccf2a04ea2
Install ev.h and eio.h
2010-10-17 22:57:40 -07:00
Peteris Krumins
a6ee3bac85
Add EventEmitter.prototype.once
2010-10-16 20:43:09 -07:00
Ryan Dahl
3cf4827ae0
Add idle connection test
2010-10-15 12:11:50 -05:00
Ryan Dahl
ff456b3886
Add 'make bench' script
2010-10-13 16:20:24 -07:00
Ryan Dahl
cdde22a27d
Improve benchmark/http_simple.js
2010-10-13 14:30:50 -07:00
Nathan Rajlich
9b1ff070e6
Upgrade http-parser with a fix for spaces in headers
2010-10-13 02:47:10 -07:00
Joshua Peek
73b29d79b9
Don't flush net writeQueue on end() if its still connecting
2010-10-13 02:37:53 -07:00
Ben Noordhuis
045bd4c7a4
Preliminary pkg-config support.
2010-10-13 01:49:33 -07:00
Ryan Dahl
6691aca229
Allow people to set backlog. Need a better API.
2010-10-13 01:47:29 -07:00
Tom Hughes
f61b110cf6
Add signal handlers so we clean up before exiting.
...
Add SIGTERM and SIGINT signal handlers so that we run the exit handlers
before exiting when getting these signals. Fixes an issue where we
couldn't run vi after CTRL+C'ing node because the stdin fd was left
non-blocking.
2010-10-12 14:01:58 -07:00
Ryan Dahl
0fcb3bd3a9
Add .js to native script's filename
2010-10-12 11:54:45 -07:00
Ryan Dahl
c4636a578c
Dynamically load native scripts
2010-10-12 11:49:41 -07:00
Ryan Dahl
901d5fd0d2
Don't require events in fs.js
2010-10-11 16:40:28 -07:00
Ryan Dahl
32aadd9400
fs.ReadStream and fs.WriteStream derive from stream.Stream
2010-10-11 16:39:40 -07:00
Ryan Dahl
8139bb24c1
Add destroy methods to HTTP messages
...
needs tests (particularly for pipeline situations)
2010-10-11 16:36:14 -07:00
Micheil Smith
372a7c9a3e
Migrated from sys.p to console.dir
2010-10-11 16:21:45 -07:00
Micheil Smith
d2c47b4f87
Removed deprecated methods from lib/path.js
2010-10-11 16:21:21 -07:00
Micheil Smith
a3604cf233
Removed deprecated methods from lib/net.js
2010-10-11 16:20:08 -07:00
Micheil Smith
0e1a581916
Removed deprecated methods from lib/http.js
2010-10-11 16:20:08 -07:00
Micheil Smith
7bfefb5250
Removed deprecated methods from lib/fs.js
2010-10-11 16:20:08 -07:00
Micheil Smith
83db91be41
Removed deprecated alias to lib/fs.js
2010-10-11 16:20:04 -07:00
Micheil Smith
c1aa8ea944
Removed deprecated events.Promise
2010-10-11 16:16:18 -07:00
Ryan Dahl
ee8522996a
Enable pipe test
2010-10-11 16:08:53 -07:00
Ryan Dahl
1879d8211d
Remove sys in new tests
2010-10-11 16:07:18 -07:00
Ryan Dahl
7e24a05cba
Fix test-http-buffer-sanity
2010-10-11 16:00:36 -07:00
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
2010-10-11 15:21:36 -07:00
Ryan Dahl
0a0e90dcca
Add broken test passing a buffer through http
2010-10-11 14:54:32 -07:00
Rasmus Andersson
50443f08e0
environ symbol fix for Mac OS X
2010-10-11 11:19:55 -07:00
Ryan Dahl
2944e03a03
Closer to a working pipe
2010-10-11 01:22:38 -07:00
Ryan Dahl
007881b648
No long have tcp module
2010-10-11 01:22:24 -07:00
Felix Geisendörfer
3cd09e7ba5
Stress test for http upload timeouts
...
This was meant to find a bug in setTimeout, but there doesn't seem to be
one. So this test can no help to prevent future regressions.
2010-10-11 00:25:48 -07:00
Ryan Dahl
1d3142a882
TCP clients should buffer writes before connection
2010-10-10 23:09:14 -07:00
Ryan Dahl
81ac0d5088
pipe-test fixes
2010-10-10 22:10:47 -07:00
Ryan Dahl
cdd1d675a7
Remove old tcp module
2010-10-10 20:57:33 -07:00
Ryan Dahl
393f0071e4
Improve pipe-test. Still not working
2010-10-10 20:18:47 -07:00
Ryan Dahl
8ab691726d
clean up options.end code - wasn't working
2010-10-10 20:16:21 -07:00
Micheil Smith
1af52d28ca
Changing http.js to use the same stream.Stream creation as net.js
2010-10-10 19:43:21 -07:00
Ryan Dahl
9d248f690a
Fix return in Buffer::New
2010-10-10 19:24:33 -07:00
Ryan Dahl
0cf03ab800
Add char* constructor for Buffer
2010-10-10 19:08:51 -07:00
Ryan Dahl
bc695475b9
Add Stream base class with stream.pipe
2010-10-10 17:27:03 -07:00
Ryan Dahl
fe74283e1d
Fix a few compiler warnings...
2010-10-09 16:04:38 -07:00
Ryan Dahl
a6017660d8
More clang fixes
2010-10-09 15:10:45 -07:00
Ryan Dahl
5dd08c6c71
Ugly fix for clang
2010-10-09 14:21:33 -07:00
Ryan Dahl
f23eb282c0
Fix style
2010-10-09 12:48:22 -07:00
Ryan Dahl
783f5019b0
Add flag to disable colors in REPL
2010-10-09 12:46:06 -07:00
Ryan Dahl
39b9043bef
Use readline.columns in sys.inspect when possible
...
Though, this should probably be an option to sys.inspect and be set by REPL.
2010-10-09 12:40:17 -07:00
Ryan Dahl
d164989e3f
Commas last in sys.inspect
...
Ugly? Yes. More readable by first time users? Yes.
2010-10-09 12:18:17 -07:00
Ryan Dahl
b5359e40be
Warnings for new C++ buffer API
2010-10-09 12:15:16 -07:00
Sean Coates
ae87007478
add $ to variable name character matching patterns in repl completer
2010-10-09 10:04:13 -07:00
Ryan Dahl
634c4bf0b0
Add missing v8 file...
2010-10-09 00:56:37 -07:00
Ryan Dahl
f7a9eea0d4
Add config.h for cygwin for libev and libeio
2010-10-09 00:56:16 -07:00
Ryan Dahl
0003c701bc
expose parsers freelist
2010-10-07 16:17:06 -07:00
Ryan Dahl
54e844cf08
add require.cache
2010-10-07 09:58:08 -07:00
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
2010-10-06 20:40:57 -07:00
TJ Holowaychuk
9481bc1009
Added -e, --eval
2010-10-06 19:09:22 -07:00
Ryan Dahl
5986a582d9
#define HAVE_FDATASYNC 0 for darwin; 10.5 is missing it
2010-10-05 15:25:33 -07:00
Ryan Dahl
7fca101338
Upgrade V8 to 2.4.8
2010-10-05 15:25:07 -07:00
Ryan Dahl
dbf0d6bb70
ClearWeak on ObjectWraps. I /think/ this is the correct semantics
2010-10-04 12:52:46 -07:00
isaacs
8ff7954165
Fix #325 . Add test and check for zero-length file contents in fs.readFileSync
2010-10-04 12:50:58 -07:00
Ryan Dahl
38f8665f3a
lib/http.js - nested loop stepping on variables of outer loop
...
Fixes #318 .
2010-10-04 10:50:37 -07:00
Ryan Dahl
48d7a1edc1
libev, libeio config.h files don't depend on arch
2010-10-02 15:07:54 -07:00
David Siegel
3faa3b56f3
libev libeio: added freebsd-x86 config headers
2010-10-02 06:44:55 -07:00
Ryan Dahl
29cc78f824
Simpler libev and libeio config
2010-10-02 06:44:55 -07:00
isaacs
e9b6b0b327
Report "weird" errors a little better.
...
There are a few kinds of errors that are very confusing.
1. Errors raised in nextTick
2. Errors emitted on the "error" event
3. RangeErrors that crash the program (or anything without a stack trace)
Long traces will make make these better, of course. In the meantime, this
adds a few handy signposts (in the form of better error reporting and
comments on the otherwise inscrutable code printed to the terminal) that can
help new users find the cause, or at least, ask for help more effectively.
2010-10-02 06:44:28 -07:00
Mark Nottingham
d59512f6f4
Add support for handling Expect: 100-continue
...
HTTP/1.1 requests, either with an event (check_continue) or automatically, if no event handler is present.
Add client-side expect/continue support, tests.
Expound upon client requirements for expect/continue.
2010-10-01 15:30:53 -07:00
Marco Rogers
4a7562d28f
fix encoding option on ReadStream, updated test
2010-10-01 15:16:25 -07:00
Ryan Dahl
c9627e0a0d
Upgrade V8 to 2.4.7
2010-10-01 14:19:11 -07:00
Ryan Dahl
5829716649
Fix REPL crash on tabbing 'this.'
...
Thanks to Tim Becker for pointing this out.
2010-10-01 11:31:22 -07:00
Ryan Dahl
5a4c40beea
Drop reference to timer callback on clearTimeout
...
Reported here:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/9e063d0938f99879
Would be good to test this somehow...
2010-10-01 11:16:51 -07:00
Evan Larkin
914ff78df6
fs.ReadStream: Passing null for file position on all reads except the first read of a range read.
2010-09-30 18:23:30 -07:00
Ryan Dahl
265cda97d7
Fix zero length buffer bug for http res.end()
...
Reported by Kadir Pekel <kadirpekel@gmail.com >
2010-09-30 17:13:01 -07:00
Mark Nottingham
1b24fc6678
Consume HTTP trailing headers
2010-09-30 16:30:40 -07:00
Evan Larkin
43ddc04bb0
No longer using the global variable "stat" in unwatchFile
2010-09-30 16:19:59 -07:00
Ryan Dahl
5cc1428d5f
Remove unused function
2010-09-30 12:20:33 -07:00
Ryan Dahl
1a2c1c8a96
Simplify: per-module cache thing
2010-09-30 12:18:58 -07:00
Ryan Dahl
ee9af66990
Add test for getting parse error from HTTP client
...
Made this test in response to this thread:
http://groups.google.com/group/nodejs/browse_thread/thread/f82835007a277de2/
But Node appears to be working correctly.
2010-09-30 11:48:19 -07:00
Ryan Dahl
c3bc48d451
Move the http client's initParser() into prototype
2010-09-30 11:41:50 -07:00
Ryan Dahl
f323f34353
writeable -> writable
2010-09-29 16:12:30 -07:00
Ben Noordhuis
55c65cc2d5
Safe constructor for ObjectWrapped classes
...
New() methods should be invoked as constructors, not regular functions.
Corner cases like Script::New() may cause a SIGSEGV when the GC is run.
More details: http://groups.google.com/group/nodejs/browse_thread/thread/a7e5db68d4cd6356
2010-09-29 16:02:45 -07:00
Ryan Dahl
9911629de0
Fix style in node_crypto.cc
2010-09-28 19:17:09 -07:00
Ryan Dahl
163485c8aa
Rename some SecureStream methods
2010-09-28 11:38:27 -07:00
Ryan Dahl
7bd94712a8
lazy load crypto binding
2010-09-28 11:27:13 -07:00
Ryan Dahl
d89f8dce28
fix style in net.js
2010-09-28 11:27:09 -07:00
Ryan Dahl
fe060916ec
Put preprocessor defines into CPPFLAGS not compile flags...
2010-09-28 03:17:44 -07:00
Ryan Dahl
3a64c22cc1
Disable a few more libev features
2010-09-28 03:11:33 -07:00
Ryan Dahl
069d973d74
Remove require('buffer') in built-in libraries.
2010-09-28 02:31:31 -07:00
Aaron Heckmann
7c5cc57ece
quicker loops
2010-09-28 01:14:58 -07:00
Ryan Dahl
f9d6b074cf
output time of function calls
2010-09-28 01:14:38 -07:00
Ryan Dahl
353e2565d5
Fix timing on I/O benchmark
2010-09-25 18:19:50 +02:00
Ryan Dahl
3fc9192d0d
Add function_call benchmark
2010-09-23 22:27:44 -07:00
Fedor Indutny
5535aa3d51
Fixed 'upgrade' event for httpclient
...
onend and ondata was cleaning on parser end
2010-09-23 10:29:20 -07:00
isaacs
4d0456f827
Don't use stat in fs.readFile[Sync]
...
Original patch c/o Evan Larkin <evan.larkin.iit@gmail.com >
2010-09-22 22:06:32 -07:00
Ryan Dahl
4df999f85f
Revert "Upgrade V8 to 2.4.5"
...
This reverts commit e227441248 .
Build fails on mac
2010-09-22 19:20:06 -07:00
Tj Holowaychuk
893ebe7230
Fixed fs.ReadStream() start: 0 bug
2010-09-22 10:22:43 -07:00
Ryan Dahl
e227441248
Upgrade V8 to 2.4.5
2010-09-22 10:21:15 -07:00
Mikeal Rogers
cc1d61cbb3
HTTP: close connection on connection:close header.
...
rnewson found a good bug in keep-alive. we were only using the request
headers we send to enable/disable keep-alive but when the server sends
Connection: close we need to close down the connection regardless.
I wrote up a patch the Robert verified makes all his test client code work
now and I also added a new unittest for it.
2010-09-22 10:17:07 -07:00
isaacs
dff1b5ad10
Don't try to run extension loaders unless they're actually functions
2010-09-22 10:13:25 -07:00
Ryan Dahl
9922e4e433
Don't choose jobs based on processor
...
Leads to lots of builds with out-of-memory.
2010-09-20 16:51:52 -07:00
Ryan Dahl
754fde7325
More explicit openssl configure warning
2010-09-20 12:52:07 -07:00
Ryan Dahl
1b1bee8099
Fix test/message/undefined_reference_in_new_context
2010-09-20 10:03:50 -07:00
Tim-Smart
0f16af7ee4
Remove registerExtension, add .extensions. Tests.
...
Updated extensions tests
2010-09-20 09:56:43 -07:00
Jorge Chamorro Bieling
fc334b3a97
sys.js: --needless Object.keys() --needless .map() in a single patch
2010-09-19 18:02:27 -07:00
Ryan Dahl
354150f4e1
Tag release versions in 'process.version'
2010-09-19 17:22:18 -07:00
isaacs
bb08f0c219
Remove require.async
...
This patch removes require.async from nodejs.
1. It complicated the code unnecessarily.
2. Everyone uses sync require anyway.
3. It's got a lot of weird edge cases when mixed with sync require.
4. It is many months behind the commonjs spec anyhow.
2010-09-19 16:52:39 -07:00
Paul Querna
2d348bb985
Fatal error out if OpenSSL was not explicitly disabled, we just couldn't autodetect it.
2010-09-19 15:32:10 -07:00
Ryan Dahl
27af64ef46
Forgot to include node_main.cc
2010-09-19 14:25:13 -07:00
Jorge Chamorro Bieling
8e246acd0e
sys.js: sys.inspect: show function names
2010-09-19 13:37:09 -07:00
Ryan Dahl
1e63cd69f8
Update TODO
2010-09-19 13:32:46 -07:00
Ryan Dahl
124fbedc2f
Add node::Start()
...
first step towards building a libnode.a
2010-09-19 13:13:59 -07:00
Ryan Dahl
db73c71280
Pass correct message in HTTP client upgrade
...
Simplify and correct test.
Fix by Fedor Indutny.
2010-09-19 11:55:18 -07:00
Ryan Dahl
4962702e4a
Revert requireNative changes: 4e6b9b0, d429033, 6abbfa0, bcad540
...
The REPL needs the full require(); add test for that behavior.
2010-09-19 11:22:15 -07:00
Ryan Dahl
776754c33f
Remove process._byteLength
2010-09-17 01:06:44 -07:00
Ryan Dahl
9628e28aec
Remove process.evalcx
2010-09-17 00:23:27 -07:00
Ryan Dahl
01b3418e2e
Move IOWatcher and Timer to process.binding
2010-09-17 00:15:54 -07:00
Ryan Dahl
5a801d63d1
Finally remove process.unloop
2010-09-17 00:03:17 -07:00
Ryan Dahl
f8ce848d9b
Remove process.global
2010-09-17 00:01:27 -07:00
Ryan Dahl
31f8fa222e
Add require('constants')
2010-09-16 23:22:58 -07:00
Ryan Dahl
6680c7fbf7
Add TODO item
2010-09-16 23:16:36 -07:00
Ryan Dahl
6eca948ca2
Move constants out of process object
2010-09-16 23:16:07 -07:00
Ryan Dahl
3def66ac3b
Add items to TODO
2010-09-16 22:22:38 -07:00
Ryan Dahl
431e43009c
Upgrade V8 to 2.4.4
2010-09-16 21:33:32 -07:00
Ryan Dahl
d2de8ba400
^c to get out of '...' in REPL
2010-09-16 21:07:22 -07:00
Ryan Dahl
42eb5a6898
Simplify REPL
2010-09-16 20:50:56 -07:00
Ryan Dahl
bbbcd1fee0
Safe constructors for fs.ReadStream and fs.WriteStream
2010-09-16 19:04:09 -07:00
Ryan Dahl
6da0593162
Remove old versions of fs.read and fs.write from docs
2010-09-16 18:51:50 -07:00
Paul Querna
5a00d9d50f
Use the Apple recommended way of detecting OSX Versions
...
to enable KQueue, rather than deciding based on the compiler version.
2010-09-16 17:32:30 -07:00
Paul Querna
c8f9728de7
Move dns.isIP to net.isIP
...
Add tests and docs.
2010-09-16 17:27:10 -07:00
Ryan Dahl
251d03197f
Remove deprecation warnings in net module
2010-09-16 15:02:12 -07:00
Ryan Dahl
a63fd0fe56
Remove deprecation warnings in http module
2010-09-16 14:49:12 -07:00
Ryan Dahl
f08985c193
Handle writeStream errors in sys.pump
2010-09-16 14:40:41 -07:00
Herbert Vojčík
3e0a8f3ad8
Common subexpression in emit.
2010-09-16 13:47:43 -07:00
Herbert Vojčík
4e6b9b0992
No need to do if (internalModuleCache...), it's in requireNative.
2010-09-16 13:46:27 -07:00
Herbert Vojčík
d429033fd7
Module system moved to the bottom, where only is it needed.
...
(this also splits the file into upper "setup" and lower "startup" sections)
2010-09-16 13:45:43 -07:00
Herbert Vojčík
6abbfa09ff
m.id unneccessary, id is enough.
2010-09-16 13:44:16 -07:00
Herbert Vojčík
bcad5403d6
Natives having their own self-contained minimalistic module system.
...
The main system is built upon this, and is optional, if only natives
are used in application (eg. node-core).
Natives not loaded into own context if NODE_MODULE_CONTEXTS=1.
This have its inner logic, if natives are seen just as lazy-loaded
parts of the core.
2010-09-15 17:30:34 -07:00
Ryan Dahl
f47ad10db7
Remove a few old deprecation warnings
2010-09-15 16:18:54 -07:00
Sam Stephenson
6560ab9073
Send multiple header lines in ServerResponse#writeHead when header values are arrays
2010-09-15 15:55:30 -07:00
Ryan Dahl
6bdc42cee7
shorten some lines in events.js
2010-09-15 15:47:28 -07:00
Ryan Dahl
ae8f8e7258
Optimize emit for two arguments
2010-09-15 15:20:04 -07:00
Ryan Dahl
feea1330cc
Make a list of known globals
...
And fix missing var!
It would be good to get this script running at the end of every test, so we
know that modules aren't leaking either - but it will require a lot
modification of the tests so that they themselves aren't leaking globals.
2010-09-14 23:03:29 -07:00
Ryan Dahl
77fc61d539
Default value for second arg of Buffer#slice
2010-09-14 15:39:27 -07:00
Mark Nottingham
4fe3007a1a
Support for outgoing HTTP trailing headers
2010-09-14 15:20:45 -07:00
Ryan Dahl
83ff473d30
Use child_process.exec rather than sys.exec
2010-09-14 10:29:56 -07:00
isaacs
686d9f9cc6
Bug in realpath with symlinks to absolute folder paths which have children.
...
Found by Cliffano Subagio
http://groups.google.com/group/nodejs/browse_thread/thread/f46f093938265ac0/387e14da08c7dd7b ?
2010-09-14 10:27:57 -07:00
Ryan Dahl
61448bfc4e
Upgrade libeio
2010-09-13 15:40:20 -07:00
Peter Griess
422d3c93bc
Get rid of PHP/Rails style parameter munging.
...
- Handle only the most basic of query string parsing and construction.
Leave the rest (e.g. Rails/PHP behaviors) to modules higher up the
stack, like Express.
2010-09-13 12:39:30 -07:00
Tony Metzidis
debf389490
Catch Exceptions thrown when openssl is disabled
2010-09-13 12:04:31 -07:00
Tony Metzidis
5c9b9c2e70
- fix AttributeError on "use_openssl" when doing ./configure --without-ssl - error was: AttributeError: Values instance has no attribute 'use_openssl'
2010-09-13 11:50:06 -07:00
Ryan Dahl
efdd73c8e4
Fix style in node_object_wrap.h
2010-09-13 11:40:04 -07:00
Ryan Dahl
aef0d8086b
Add lfs flags to node addon script
2010-09-12 21:58:18 -07:00
Ryan Dahl
2d09ef8541
Fix style in readline
2010-09-12 21:47:56 -07:00
Ryan Dahl
0ef8a86af2
Add SIGWINCH handler for readline
2010-09-12 21:23:53 -07:00
Ryan Dahl
678fa31136
add to todo
2010-09-11 20:40:46 -07:00
Paul Querna
9a701b0a70
Expose fingerproint from getPeerCertificate
...
Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()
2010-09-09 23:35:17 -07:00
Ryan Dahl
3a9570386a
Fix fs.realpathSync('/')
2010-09-09 18:49:28 -07:00
isaacs
85fb47c11c
Better temporary directory handling for tests.
...
Add a setUp and tearDown function to the test case class, and use it to
create and remove the test/tmp directory for each test.
TODO: amend other tests.
2010-09-09 16:43:18 -07:00
Ryan Dahl
7628905a9b
Don't use empty.js - breaks module test
2010-09-09 16:22:57 -07:00
Felix Geisendörfer
f870240dcf
Simple benchmark for node's startup time
2010-09-09 15:51:17 -07:00
Ryan Dahl
5d42cc3a44
Use SetPointerInInternalField
2010-09-09 15:47:37 -07:00
Ryan Dahl
98683d285c
Merge branch 'fast-buffer'
2010-09-09 11:08:16 -07:00
Ryan Dahl
b8bfbdab48
Rename SlowBuffer in binding
2010-09-09 11:03:51 -07:00
Ryan Dahl
5bc4efe820
Remove blobs, simplify SlowBuffer
...
Implement SlowBuffer.prototype.slice in js
2010-09-09 11:03:51 -07:00
Ryan Dahl
380d12832c
Remove dead code
2010-09-09 11:03:50 -07:00
Ryan Dahl
efc723787a
Fix big string bug
2010-09-09 11:03:50 -07:00
Ryan Dahl
71d67dbf48
Remove fancy SlowBuffer constructor
2010-09-09 11:03:50 -07:00
Ryan Dahl
ba2e4a2306
Simplify fast buffer constructor
2010-09-09 11:03:50 -07:00
Ryan Dahl
3e9f636b64
Improve long buffer test
2010-09-09 11:03:50 -07:00
Ryan Dahl
8078ed1f86
Expose fast-buffer bug in tests
2010-09-09 11:03:50 -07:00
Ryan Dahl
ff027d571b
Update fast buffer benchmarks
2010-09-09 11:03:50 -07:00
Ryan Dahl
17ba821e60
defineProperty is slow, don't use it for fastbuffer
2010-09-09 11:03:50 -07:00
Ryan Dahl
d3fcd1c75a
Expose SlowBuffer
2010-09-09 11:03:50 -07:00
Ryan Dahl
6135941eea
Fix ByteLength hangup
2010-09-09 11:03:50 -07:00
Ryan Dahl
8b4f1e05f9
Expose Buffer.poolSize
2010-09-09 11:03:50 -07:00
Ryan Dahl
5da4faf8c7
fast buffers for crypto
2010-09-09 11:03:49 -07:00
Ryan Dahl
5f935f6c14
Fast buffers for http-parser
2010-09-09 11:03:49 -07:00
Ryan Dahl
5506f99dfa
map charsWritten to fast buffer
2010-09-09 11:03:49 -07:00
Ryan Dahl
ececd92f62
Fix base64 write for buffers
2010-09-09 11:03:49 -07:00
Ryan Dahl
1f947f7b41
remove unnecessary casts
2010-09-09 11:03:49 -07:00
Ryan Dahl
7b772f3f68
More fast buffer work
2010-09-09 11:03:48 -07:00
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
2010-09-09 11:03:48 -07:00
Tim-Smart
6ea99721f1
string.length !== Buffer.byteLength(string)
2010-09-09 11:03:48 -07:00
Ryan Dahl
1cf538a60a
Work to get C++ fast buffers. incomplete
2010-09-09 11:03:48 -07:00
Ryan Dahl
2dda6be799
Fast Buffer safe constructor
2010-09-09 11:03:48 -07:00
Ryan Dahl
565d862f3c
Fix buffer binding
2010-09-09 11:03:48 -07:00
Ryan Dahl
b87669cbf4
Fix fastbuffer style
...
Fix style
2010-09-09 11:03:48 -07:00
Tim-Smart
2b07c9fcae
Some silly fixes to buffer.js
2010-09-09 11:03:47 -07:00
Tim-Smart
746d487da8
FastBuffer implementation. API needs migration
2010-09-09 11:03:47 -07:00
Felix Geisendörfer
ef54777fa5
Fix: uncaughtException was broken for main module
...
See: 635986e433
2010-09-09 10:47:30 -07:00
Ryan Dahl
17f3ffa633
Call Tick() after coming out of select()
...
Previously we would only call it before going into select(). This is needed
to fix test/simple/test-next-tick-ordering2.js.
2010-09-09 10:30:43 -07:00
isaacs
ba0c32e2e1
Fix issue #262 . Allow fs.realpath to traverse above the current working directory.
2010-09-08 17:35:58 -07:00
Ryan Dahl
9a6d2c35a1
V8 Cygwin patch
2010-09-08 17:16:18 -07:00
Ryan Dahl
8796ed2278
Upgrade V8 to 2.4.2
2010-09-08 17:14:42 -07:00
Tobie Langel
512016fd74
Test for ReadStream typo
2010-09-08 12:09:13 -07:00
Ryan Dahl
0e501f4ec5
Fix style; undefined reference bug
2010-09-08 12:03:33 -07:00
Tobie Langel
ccf4afa256
Do not emit WriteStream's drain event before ws.write has been called.
2010-09-08 11:58:54 -07:00
Tobie Langel
f5e4047064
Avoid closing a WriteStream before it has been opened.
2010-09-08 11:51:29 -07:00
Tobie Langel
75f922c863
Avoid missing ref error in WriteStream.prototype.destroy().
2010-09-08 11:50:56 -07:00
Herbert Vojčík
71651bf8b2
Make test-global work with NODE_MODULE_CONTEXTS.
2010-09-08 10:40:55 -07:00
Herbert Vojčík
6789ab16d8
Modifying test-global to accomodate v8 inter-context 'global' protection.
2010-09-08 10:37:26 -07:00
Herbert Vojčík
2a03d5802b
Removing test-global-between-modules.
...
Using "global" to push data to require()d modules
not supported under NODE_MODULE_CONTEXTS=1.
2010-09-08 10:36:45 -07:00
Herbert Vojčík
8718fa54f6
Removed comment-out code.
2010-09-08 10:34:47 -07:00
Ryan Dahl
24ac87f543
Increase ReadStream bufferSize to 64k
2010-09-08 10:14:04 -07:00
Trent Mick
1d961a6630
add ANSI coloring option to sys.inspect and, by default, to the repl
2010-09-08 09:47:13 -07:00
Trent Mick
5330fea954
Ctrl+W support for the REPL
...
FWIW, command-line style (delete back to whitespace) would be:
leading = leading.replace(/\S+\s*$/, '');
2010-09-08 09:45:57 -07:00
Felix Geisendörfer
cf4b5fc52a
Test case showing a bug in nextTick ordering
...
nextTick should fire before setTimeout in this test, but it doesn't.
2010-09-07 22:37:14 -07:00
Ryan Dahl
1d0fb850d9
test-http-parser should not use private API
2010-09-07 17:17:12 -07:00
Ryan Dahl
4fe5e86a7e
Don't refer to private API in test-repl
2010-09-07 17:16:24 -07:00
Ryan Dahl
1be722a271
Special deepEquals for buffer
2010-09-07 17:14:04 -07:00
Ryan Dahl
3c00ec4e48
typo: forceClose -> destroy for WriteStreams
2010-09-05 02:27:02 -07:00
Benjamin Thomas
cda1a38426
Fix bug in process._tickCallback where callbacks can get abandoned.
...
Change process._tickCallback so that if a callback throws an error but
there are other callbacks after it, we indicate that
process._tickCallback needs to be ran again.
Currently, if a callback in process._tickCallback throws an error, and
that error is caught by an uncaughtException handler and
process.nextTick is never called again, then any other callbacks already
added to the nextTickQueue won't be called again.
Updated the next-tick-errors test to catch this scenario.
2010-09-02 09:24:39 -07:00
isaacs
0e311717b5
Treat "//some_path" as pathname rather than hostname by default.
...
Note that "//" is still a special indicator for the hostname, and this does
not change the parsing of mailto: and other "slashless" url schemes. It
does however remove some oddness in url.parse(req.url) which is the most
common use-case for the url.parse function.
2010-09-02 09:24:21 -07:00
Ryan Dahl
7347fb3e2c
Make sure setInterval(cb, 0) loops infinitely
2010-08-31 16:45:17 -07:00
Ryan Dahl
5be6ab6cdb
Fix style
2010-08-30 16:35:58 -07:00
Ryan Dahl
a055153cda
Fix style in test/simple/test-dgram-unix.js
2010-08-30 14:17:27 -07:00
Ryan Dahl
f188b9d6d7
Remove timer from test/simple/test-dgram-unix.js
...
Test running already has a timeout mechanism.
2010-08-30 14:15:30 -07:00
Marco Rogers
af9aa93e0c
fix for fs.readFile to return string when encoding specified on zero length read
2010-08-30 14:08:18 -07:00
Marco Rogers
9c7c6e93e1
Fixed async fs writes with length 0, it should fire the callback
2010-08-30 13:58:50 -07:00
Bradley Meck
d5214b3627
Allow Strings for ports on net.Server.listen
2010-08-30 13:27:38 -07:00
Fedor Indutny
db23af05b0
Constants should be readOnly and DontDelete
2010-08-30 12:13:41 -07:00
Ryan Dahl
635986e433
Add failing uncaughtException test
...
FIXME
2010-08-30 12:02:22 -07:00
Johan Euphrosine
e49be4768b
add readline support for meta-d
2010-08-30 10:26:51 -07:00
Russell Haering
37b6e10684
Pass an error to the sys.pump callback if one occurs
...
- Add test case for pumping from unreadable stream.
- Document the sys.pump error handling behavior
2010-08-30 10:23:48 -07:00
Benjamin Thomas
57642e2349
Fix process.nextTick so thrown errors don't confuse it.
...
If the function for a process.nextTick throws an error, then the
splice() never removes that function from the nextTickQueue array. This
makes sure the functions that have been run in _tickCallback get removed
regardless of errors.
Also add a test for this.
2010-08-27 22:13:50 -07:00
Ryan Dahl
4fdebab005
Safe constructor: net.Server, net.Stream
2010-08-27 15:38:46 -07:00
Ryan Dahl
f86ad1693f
Safe Constructor: Buffer
2010-08-27 15:23:51 -07:00
Ryan Dahl
44a287987e
Safe constructors: http.Server and http.Client
2010-08-27 13:58:52 -07:00
Ryan Dahl
e8b3751743
Only check for execinfo lib in freebsd
...
OpenEmbedded doesn't like it when you look in /usr/lib
2010-08-27 06:20:20 -07:00
Johan Euphrosine
51224f12ca
add test for readline putty support
2010-08-23 10:25:55 -07:00
Brian
d9eb64928e
Fix home/end keys in repl for putty/xterm.
2010-08-23 09:18:36 -07:00
Russell Haering
6078c37be5
Modify fs.open to use accept a callback without a mode
2010-08-23 02:42:25 -07:00
Johan Euphrosine
748469c71c
add readline support for meta-f and meta-b
2010-08-23 01:47:41 -07:00
Johan Euphrosine
fd3e84499e
add home/end support in rxvt and readline tests
2010-08-23 01:46:14 -07:00
Felix Geisendörfer
c209e57e50
Document WriteStream 'open' event
2010-08-23 01:44:44 -07:00
isaacs
072750e662
Add testing items, and make npm lowercase
2010-08-22 20:25:06 -07:00
isaacs
e55c486801
Missing 'var' in sys.inspect (Found by Oleg Slobodskoi)
2010-08-22 13:45:39 -07:00
Aria Stewart
8ec21059dd
Fix doc.js so that it doesn't misnest menu items in the TOC
2010-08-22 13:10:18 -07:00
Johan Euphrosine
0e1e00e68b
fix home/end on GNU/Linux
2010-08-22 12:34:58 -07:00
Johan Euphrosine
bedca2e7a9
add tests for console.log arguments handling
2010-08-22 12:34:00 -07:00
Aria Stewart
a834d93d2c
s/HTTPS/SSL/ where appropriate
2010-08-22 12:31:58 -07:00
Ryan Dahl
2982e75a0b
set-cookies header is an array of values. always
2010-08-21 16:34:38 -07:00
Ryan Dahl
488aff085b
Improve appendix markdown
2010-08-21 01:24:14 -07:00
Ryan Dahl
33e919ae6f
Add appendix to docs
2010-08-21 00:30:18 -07:00