Bert Belder [Fri, 21 Jan 2011 02:54:30 +0000 (03:54 +0100)]
Windows: better net support
Bert Belder [Mon, 24 Jan 2011 16:26:22 +0000 (17:26 +0100)]
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.
Ryan Dahl [Sun, 23 Jan 2011 23:32:07 +0000 (15:32 -0800)]
windows compat: undefined_reference_in_new_context test
Ali Farhadi [Sun, 23 Jan 2011 21:43:59 +0000 (01:13 +0330)]
Fixing bug in http request's end method.
Felix Geisendörfer [Sun, 23 Jan 2011 22:40:56 +0000 (23:40 +0100)]
Move commonjs module system into lib/module.js
This de-couples NativeModule from the module system and completes the
main objective of this refactoring.
Mikeal Rogers [Sun, 23 Jan 2011 00:09:50 +0000 (16:09 -0800)]
Expose agent in http and https client.
Ryan Dahl [Sat, 22 Jan 2011 02:26:05 +0000 (18:26 -0800)]
Now working on v0.3.7
Ryan Dahl [Sat, 22 Jan 2011 01:57:04 +0000 (17:57 -0800)]
Bump version to v0.3.6
Ryan Dahl [Sat, 22 Jan 2011 02:16:56 +0000 (18:16 -0800)]
Add https docs to toc
Ryan Dahl [Sat, 22 Jan 2011 01:48:14 +0000 (17:48 -0800)]
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.
Ryan Dahl [Sat, 22 Jan 2011 01:39:45 +0000 (17:39 -0800)]
Fix test-http-allow-req-after-204-res
Agent queue waits for connecting sockets.
Ryan Dahl [Fri, 21 Jan 2011 23:55:48 +0000 (15:55 -0800)]
Add test-https-agent
Ryan Dahl [Fri, 21 Jan 2011 22:53:31 +0000 (14:53 -0800)]
http: agent should cycle on close
isaacs [Fri, 21 Jan 2011 18:08:48 +0000 (10:08 -0800)]
Fix for meta keys in a weird iTerm state.
isaacs [Fri, 21 Jan 2011 00:52:30 +0000 (16:52 -0800)]
Windows line endings. s/\r//g
Bert Belder [Thu, 20 Jan 2011 23:47:55 +0000 (00:47 +0100)]
Fix meta+character keys on mac
Ryan Dahl [Fri, 21 Jan 2011 21:47:27 +0000 (13:47 -0800)]
Expose http.getAgent
Ryan Dahl [Fri, 21 Jan 2011 21:21:01 +0000 (13:21 -0800)]
Add https.get()
Ryan Dahl [Fri, 21 Jan 2011 21:12:35 +0000 (13:12 -0800)]
Initial pass at https client
Ryan Dahl [Fri, 21 Jan 2011 03:07:15 +0000 (19:07 -0800)]
waf: display oprofile and gdbjit options for all platforms
was breaking mac
Ryan Dahl [Fri, 21 Jan 2011 02:38:13 +0000 (18:38 -0800)]
Merge branch 'http_agent'
Ryan Dahl [Fri, 21 Jan 2011 02:23:50 +0000 (18:23 -0800)]
Fix test-http-upload-timeout
Cannot just close the connection or client will error.
Ryan Dahl [Fri, 21 Jan 2011 02:19:30 +0000 (18:19 -0800)]
test-http-client-reconnect-bug: hang up should be error.
Ryan Dahl [Fri, 21 Jan 2011 01:55:13 +0000 (17:55 -0800)]
...
Ryan Dahl [Fri, 21 Jan 2011 01:54:59 +0000 (17:54 -0800)]
Docs for new http API
Ryan Dahl [Fri, 21 Jan 2011 01:07:44 +0000 (17:07 -0800)]
hacky work around socket hangups on http requests
Ryan Dahl [Fri, 21 Jan 2011 00:25:24 +0000 (16:25 -0800)]
Backport client 'upgrade' events
Ryan Dahl [Thu, 20 Jan 2011 23:55:02 +0000 (15:55 -0800)]
all errors go to req object
Ryan Dahl [Thu, 20 Jan 2011 19:21:42 +0000 (11:21 -0800)]
http.Client shims
Ryan Dahl [Thu, 20 Jan 2011 18:29:54 +0000 (10:29 -0800)]
Add parser to agent
Ryan Dahl [Thu, 20 Jan 2011 10:41:16 +0000 (02:41 -0800)]
first pass at http refactor for TLS
Ryan Dahl [Fri, 21 Jan 2011 02:04:09 +0000 (18:04 -0800)]
Disable gdbjit by default
Bert Belder [Thu, 20 Jan 2011 00:41:16 +0000 (01:41 +0100)]
Fix memory corruption bug on Windows
Bert Belder [Thu, 20 Jan 2011 00:40:55 +0000 (01:40 +0100)]
Fix ev_async misuse in node_child_process_win32.cc
kmillikin@chromium.org [Wed, 19 Jan 2011 15:26:54 +0000 (15:26 +0000)]
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
Ryan Dahl [Wed, 19 Jan 2011 19:46:14 +0000 (11:46 -0800)]
Transfer data gathering responsibility to readline
Fixes non-raw REPL/Debugger on Posix.
Ryan Dahl [Wed, 19 Jan 2011 19:33:42 +0000 (11:33 -0800)]
Fix tab on posix tty
Ryan Dahl [Wed, 19 Jan 2011 19:18:12 +0000 (11:18 -0800)]
wscript: style
Ryan Dahl [Wed, 19 Jan 2011 19:08:49 +0000 (11:08 -0800)]
Compile gdbjit in by default on linux
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884
See http://code.google.com/p/v8/issues/detail?id=884
Ryan Dahl [Wed, 19 Jan 2011 19:06:13 +0000 (11:06 -0800)]
Upgrade V8 to 3.0.9
Bert Belder [Wed, 19 Jan 2011 04:55:02 +0000 (05:55 +0100)]
Windows: fix window size getter bug
Bert Belder [Wed, 19 Jan 2011 03:14:42 +0000 (04:14 +0100)]
Update TODO.win32
Bert Belder [Fri, 14 Jan 2011 02:44:05 +0000 (03:44 +0100)]
Readline: use symbolic key names instead of ascii control codes
Bert Belder [Wed, 12 Jan 2011 03:13:41 +0000 (04:13 +0100)]
Readline: use tty methods instead of control sequences
Bert Belder [Mon, 17 Jan 2011 22:28:54 +0000 (23:28 +0100)]
Use tty.ReadStream and tty.WriteStream for stdio when appropriate
Bert Belder [Wed, 19 Jan 2011 03:08:07 +0000 (04:08 +0100)]
Implement tty.ReadStream and tty.WriteStream
Bert Belder [Mon, 17 Jan 2011 22:27:14 +0000 (23:27 +0100)]
New stdio functions to aid new readline interface
Bert Belder [Tue, 11 Jan 2011 01:11:57 +0000 (02:11 +0100)]
Windows: watcher for tty events
Ryan Dahl [Tue, 18 Jan 2011 18:44:50 +0000 (10:44 -0800)]
wscript chooses win32 source files, not cpp
Ryan Dahl [Wed, 19 Jan 2011 06:27:12 +0000 (22:27 -0800)]
Use common.PORT not 8000
Ryan Dahl [Wed, 19 Jan 2011 06:25:38 +0000 (22:25 -0800)]
move test-exec to pummel - too slow
Alexis Sellier [Wed, 19 Jan 2011 03:39:20 +0000 (22:39 -0500)]
make 'readyState' available to CryptoStream
Ryan Dahl [Wed, 19 Jan 2011 02:03:55 +0000 (18:03 -0800)]
Add setEncoding to CryptoStream
Ryan Dahl [Wed, 19 Jan 2011 01:56:52 +0000 (17:56 -0800)]
Add setNoDelay to cryptostream
Ryan Dahl [Wed, 19 Jan 2011 00:22:43 +0000 (16:22 -0800)]
listen/bind errors should close net.Server
Ryan Dahl [Tue, 18 Jan 2011 22:26:32 +0000 (14:26 -0800)]
factor linklist code into own file
Bert Belder [Mon, 17 Jan 2011 22:30:13 +0000 (23:30 +0100)]
Remove completed TODO.win32 items
Bert Belder [Mon, 17 Jan 2011 21:59:25 +0000 (22:59 +0100)]
Make child_process.kill always work on windows
Bert Belder [Mon, 17 Jan 2011 22:01:20 +0000 (23:01 +0100)]
Fix several child process bugs on windows
Bert Belder [Mon, 17 Jan 2011 21:49:23 +0000 (22:49 +0100)]
Fix detection of socket errors
Bert Belder [Mon, 17 Jan 2011 21:47:59 +0000 (22:47 +0100)]
Improve error reporting on windows
Bert Belder [Mon, 17 Jan 2011 23:27:08 +0000 (00:27 +0100)]
Define winsock error numbers
Bert Belder [Mon, 17 Jan 2011 21:53:12 +0000 (22:53 +0100)]
Misc. cleanups
casts, unused vars, function ordering, /* within comment, etc.
Bert Belder [Mon, 17 Jan 2011 23:22:36 +0000 (00:22 +0100)]
Clean up the way windows headers are included
Plus make inclusion order a little more consistent in general
Bert Belder [Mon, 17 Jan 2011 22:38:34 +0000 (23:38 +0100)]
Windows: get rid of most NO_IMPL related macros
Bert Belder [Tue, 11 Jan 2011 00:42:12 +0000 (01:42 +0100)]
Windows: implement missing stdio methods
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884
See http://code.google.com/p/v8/issues/detail?id=884
Ryan Dahl [Mon, 17 Jan 2011 21:35:01 +0000 (13:35 -0800)]
docs: style
Ryan Dahl [Mon, 17 Jan 2011 21:34:22 +0000 (13:34 -0800)]
docs: Add note about global scope
Bert Belder [Mon, 17 Jan 2011 20:12:56 +0000 (21:12 +0100)]
Fix v8 build on windows
reported to v8 in http://codereview.chromium.org/
6056006/
Ryan Dahl [Mon, 17 Jan 2011 19:32:56 +0000 (11:32 -0800)]
Upgrade V8 to 3.0.8
Ryan Dahl [Sun, 16 Jan 2011 23:28:01 +0000 (15:28 -0800)]
Now working on v0.3.6
Ryan Dahl [Sun, 16 Jan 2011 23:12:28 +0000 (15:12 -0800)]
Bump version to v0.3.5
Felix Geisendörfer [Sun, 16 Jan 2011 11:33:11 +0000 (12:33 +0100)]
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
Felix Geisendörfer [Fri, 14 Jan 2011 19:14:47 +0000 (20:14 +0100)]
Isolate native module system again
See: https://github.com/ry/node/commit/
2e5dfafcb06f769889bd4d08a07d1c53346e7be7#commitcomment-239719
Ryan Dahl [Sun, 16 Jan 2011 22:34:39 +0000 (14:34 -0800)]
Add built-in module loading to test-require-cache-without-stat
Ryan Dahl [Sun, 16 Jan 2011 09:21:38 +0000 (01:21 -0800)]
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
Ryan Dahl [Sun, 16 Jan 2011 08:33:16 +0000 (00:33 -0800)]
style
Ryan Dahl [Fri, 14 Jan 2011 04:32:14 +0000 (20:32 -0800)]
Revert "Implement os.isWindows"
This reverts commit
9e31e0837ec3c5a88ed477bec3980dd4608046be.
Use process.platform == 'win32'
Ryan Dahl [Fri, 14 Jan 2011 00:30:27 +0000 (16:30 -0800)]
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.
Ryan Dahl [Fri, 14 Jan 2011 00:04:33 +0000 (16:04 -0800)]
debugger: don't hang on ^d and ^c
Ryan Dahl [Thu, 13 Jan 2011 23:28:16 +0000 (15:28 -0800)]
debugger: error out without script
TODO:
debug> run script.js
Ryan Dahl [Thu, 13 Jan 2011 23:18:13 +0000 (15:18 -0800)]
debugger: add uncaughtException handler to kill child
Ryan Dahl [Thu, 13 Jan 2011 21:59:32 +0000 (13:59 -0800)]
debugger: Correctly eval arrays and numbers
Ryan Dahl [Thu, 13 Jan 2011 21:24:28 +0000 (13:24 -0800)]
debugger: full scope evals
Ryan Dahl [Thu, 13 Jan 2011 20:48:20 +0000 (12:48 -0800)]
debugger: Better backtraces
Ryan Dahl [Thu, 13 Jan 2011 19:57:28 +0000 (11:57 -0800)]
debugger: primative object inspection
Ryan Dahl [Thu, 13 Jan 2011 19:13:57 +0000 (11:13 -0800)]
debugger: take help message from commands
Ryan Dahl [Thu, 13 Jan 2011 10:22:09 +0000 (02:22 -0800)]
A few more list clean ups
Ryan Dahl [Thu, 13 Jan 2011 10:09:03 +0000 (02:09 -0800)]
Expose link-list from timers.js; add tests
Ryan Dahl [Thu, 13 Jan 2011 00:43:05 +0000 (16:43 -0800)]
debugger: Don't break on handle === 0
Felix Geisendörfer [Wed, 12 Jan 2011 22:42:21 +0000 (23:42 +0100)]
Fix NODE_PATH, was broken after cleanup
Felix Geisendörfer [Wed, 12 Jan 2011 22:31:04 +0000 (23:31 +0100)]
Always init module paths
The previous cleanup patch broke module loading in the the REPL by
not initializing require.paths.
Felix Geisendörfer [Wed, 12 Jan 2011 21:05:45 +0000 (22:05 +0100)]
Cleanup node module system code
Ryan Dahl [Wed, 12 Jan 2011 21:29:43 +0000 (13:29 -0800)]
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.
Ryan Dahl [Wed, 12 Jan 2011 20:59:58 +0000 (12:59 -0800)]
net: Timeouts should work before DNS resolution
Ryan Dahl [Wed, 12 Jan 2011 18:57:01 +0000 (10:57 -0800)]
Add test for connection timeouts
Also make socket.end() destroy connection if still trying to connect.
Previously was ignoring.
Ryan Dahl [Wed, 12 Jan 2011 18:33:10 +0000 (10:33 -0800)]
debugger: Only display basename of scripts
Ryan Dahl [Wed, 12 Jan 2011 18:32:48 +0000 (10:32 -0800)]
tab completion for commands in debugger