platform/upstream/nodejs.git
13 years agoDump after ev_loop
Ryan Dahl [Wed, 17 Nov 2010 19:40:43 +0000 (11:40 -0800)]
Dump after ev_loop

13 years agoEmit drain and stop IOWatcher even on empty buffer
Ryan Dahl [Wed, 17 Nov 2010 18:58:45 +0000 (10:58 -0800)]
Emit drain and stop IOWatcher even on empty buffer

13 years agoAdd callback to socket.write(), fix test-sendfds
Ryan Dahl [Sat, 13 Nov 2010 00:24:53 +0000 (16:24 -0800)]
Add callback to socket.write(), fix test-sendfds

13 years agomake sure unix sockets are tagged correctly
Ryan Dahl [Fri, 12 Nov 2010 22:05:26 +0000 (14:05 -0800)]
make sure unix sockets are tagged correctly

13 years agoDon't append buckets of zero length
Ryan Dahl [Fri, 12 Nov 2010 19:47:31 +0000 (11:47 -0800)]
Don't append buckets of zero length

13 years agoAdd IOWatcher.flush()
Ryan Dahl [Fri, 12 Nov 2010 19:31:39 +0000 (11:31 -0800)]
Add IOWatcher.flush()

To be called if sockets get too much data. This is to force a flush before
the tick ends.

13 years agoMaintain queueSize for each socket
Ryan Dahl [Fri, 12 Nov 2010 19:24:30 +0000 (11:24 -0800)]
Maintain queueSize for each socket

13 years agoAlso do ondrain callback for socket (needed by http)
Ryan Dahl [Fri, 12 Nov 2010 17:54:48 +0000 (09:54 -0800)]
Also do ondrain callback for socket (needed by http)

13 years agoReset _eof on socket reuse
Ryan Dahl [Fri, 12 Nov 2010 17:18:44 +0000 (09:18 -0800)]
Reset _eof on socket reuse

13 years agoDon't send null data segments
Ryan Dahl [Fri, 12 Nov 2010 01:31:38 +0000 (17:31 -0800)]
Don't send null data segments

13 years agoSupport encoding
Ryan Dahl [Thu, 11 Nov 2010 22:26:41 +0000 (14:26 -0800)]
Support encoding

13 years agoDumper net.js integration
Ryan Dahl [Fri, 5 Nov 2010 20:03:32 +0000 (13:03 -0700)]
Dumper net.js integration

13 years agoIOWatcher::Dump(), writev
Ryan Dahl [Tue, 2 Nov 2010 22:51:16 +0000 (15:51 -0700)]
IOWatcher::Dump(), writev

13 years agoRip out the old TLS implementation
Ryan Dahl [Thu, 28 Oct 2010 20:02:51 +0000 (13:02 -0700)]
Rip out the old TLS implementation

13 years agoAdd tests for querystring.unescapeBuffer
Ryan Dahl [Fri, 19 Nov 2010 00:22:11 +0000 (16:22 -0800)]
Add tests for querystring.unescapeBuffer

13 years agoFix line wrapping in docs. Add tics for constants in docs text.
Oleg Efimov [Thu, 18 Nov 2010 12:00:24 +0000 (15:00 +0300)]
Fix line wrapping in docs. Add tics for constants in docs text.

13 years agoMake SlowBuffer pass Buffer.isBuffer test.
Stéphan Kochen [Thu, 18 Nov 2010 18:30:47 +0000 (19:30 +0100)]
Make SlowBuffer pass Buffer.isBuffer test.

13 years agoAdd querystring.unescapeBuffer
Ryan Dahl [Thu, 18 Nov 2010 23:18:06 +0000 (15:18 -0800)]
Add querystring.unescapeBuffer

13 years agoquery-string unescape moved to js land
Ryan Dahl [Thu, 18 Nov 2010 23:12:21 +0000 (15:12 -0800)]
query-string unescape moved to js land

13 years agofix race in test-http-big-proxy-responses.js
Ryan Dahl [Thu, 18 Nov 2010 21:50:46 +0000 (13:50 -0800)]
fix race in test-http-big-proxy-responses.js

13 years agoMake sure raw mode is disabled when exiting a terminal-based REPL.
Brian White [Thu, 18 Nov 2010 02:41:36 +0000 (21:41 -0500)]
Make sure raw mode is disabled when exiting a terminal-based REPL.

13 years agoRemove leading comma examples
Ryan Dahl [Thu, 18 Nov 2010 02:25:14 +0000 (18:25 -0800)]
Remove leading comma examples

13 years agoRemove jQuery from project
Micheil Smith [Thu, 18 Nov 2010 01:51:07 +0000 (12:51 +1100)]
Remove jQuery from project

13 years agoAdd doc TODOs
Ryan Dahl [Thu, 18 Nov 2010 01:50:00 +0000 (17:50 -0800)]
Add doc TODOs

13 years agoGenerate Table of Contents at compile time.
Micheil Smith [Thu, 18 Nov 2010 01:26:37 +0000 (12:26 +1100)]
Generate Table of Contents at compile time.

13 years agoBetter description of lstat(). Wrapped all lines.
Dan Søndergaard [Wed, 17 Nov 2010 16:04:21 +0000 (17:04 +0100)]
Better description of lstat(). Wrapped all lines.

13 years agofix utils.inspect's detection of circular structures
Tim Cooijmans [Wed, 17 Nov 2010 20:26:08 +0000 (21:26 +0100)]
fix utils.inspect's detection of circular structures

13 years agoFix links
Ryan Dahl [Wed, 17 Nov 2010 22:51:06 +0000 (14:51 -0800)]
Fix links

13 years agoSimplify next tick logic by looping around ev_loop
Ryan Dahl [Wed, 17 Nov 2010 19:31:16 +0000 (11:31 -0800)]
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.

13 years agoFix doc links
Ryan Dahl [Wed, 17 Nov 2010 17:39:26 +0000 (09:39 -0800)]
Fix doc links

13 years agoNow working on v0.3.2-pre
Ryan Dahl [Wed, 17 Nov 2010 17:31:51 +0000 (09:31 -0800)]
Now working on v0.3.2-pre

13 years agoBump version to v0.3.1 v0.3.1
Ryan Dahl [Wed, 17 Nov 2010 02:46:15 +0000 (18:46 -0800)]
Bump version to v0.3.1

13 years agoRevert "Upgrade V8 to 2.5.6"
Ryan Dahl [Wed, 17 Nov 2010 03:13:52 +0000 (19:13 -0800)]
Revert "Upgrade V8 to 2.5.6"

This reverts commit 564a48643bd3edc6da845e458277a54c8068d0e2.

Breaks cygwin

13 years agoAdd ref to buffer during fs.write and fs.read
Ryan Dahl [Wed, 17 Nov 2010 00:26:55 +0000 (16:26 -0800)]
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

13 years agoTest for server.listen() more carefully, fix bug
Ryan Dahl [Tue, 16 Nov 2010 23:33:21 +0000 (15:33 -0800)]
Test for server.listen() more carefully, fix bug

13 years agoscp should copy the right dir
Ryan Dahl [Tue, 16 Nov 2010 06:25:09 +0000 (22:25 -0800)]
scp should copy the right dir

13 years agoUpdate TODO
Ryan Dahl [Tue, 16 Nov 2010 06:18:52 +0000 (22:18 -0800)]
Update TODO

13 years agoFix doc links on index.html
Ryan Dahl [Tue, 16 Nov 2010 04:34:15 +0000 (20:34 -0800)]
Fix doc links on index.html

13 years agoDocs for server.address()
Ryan Dahl [Tue, 16 Nov 2010 04:26:46 +0000 (20:26 -0800)]
Docs for server.address()

13 years agomake doc improvements
Ryan Dahl [Tue, 16 Nov 2010 04:23:12 +0000 (20:23 -0800)]
make doc improvements

13 years agoTest and fix for self-assigned port from net.Server
Ryan Dahl [Tue, 16 Nov 2010 04:22:54 +0000 (20:22 -0800)]
Test and fix for self-assigned port from net.Server

13 years agoBetter doc indexes, fix some links
Micheil Smith [Sun, 14 Nov 2010 23:50:14 +0000 (10:50 +1100)]
Better doc indexes, fix some links

13 years agoBuild API page into build/doc; simplify doctool.
Micheil Smith [Sun, 14 Nov 2010 23:50:14 +0000 (10:50 +1100)]
Build API page into build/doc; simplify doctool.

13 years agosolaris -> sunos
Ryan Dahl [Tue, 16 Nov 2010 03:23:47 +0000 (03:23 +0000)]
solaris -> sunos

13 years agoFix docs for vm module
Ryan Dahl [Tue, 16 Nov 2010 03:21:56 +0000 (19:21 -0800)]
Fix docs for vm module

13 years agoPrint warning when using platform_none.cc
Ryan Dahl [Tue, 16 Nov 2010 03:19:01 +0000 (03:19 +0000)]
Print warning when using platform_none.cc

13 years agoFix OS::GetExecutablePath for platform_none
Ryan Dahl [Tue, 16 Nov 2010 03:06:18 +0000 (03:06 +0000)]
Fix OS::GetExecutablePath for platform_none

13 years agoRename require('javascript') to require('vm')
Ryan Dahl [Tue, 16 Nov 2010 02:37:27 +0000 (18:37 -0800)]
Rename require('javascript') to require('vm')

13 years agoAdd .node_moudles to lookup path again
Ryan Dahl [Mon, 15 Nov 2010 19:20:35 +0000 (11:20 -0800)]
Add .node_moudles to lookup path again

13 years agoRevert node_module lookup commits
Ryan Dahl [Mon, 15 Nov 2010 18:22:24 +0000 (10:22 -0800)]
Revert node_module lookup commits
Revert "Add ~/.node_modules as well as ~/.node_libraries"

This reverts commits
5e14c8bec0b4e1c19d8567cf8b843b215e8796ac.
b0adaff67e492ab9ac583059f5e2dba54de0973b.
492fc0d7524c0a5b546fb1a16f1b49bb4db73da8.

13 years agoFix docs for 'javascript' module
Ryan Dahl [Mon, 15 Nov 2010 08:51:01 +0000 (00:51 -0800)]
Fix docs for 'javascript' module

13 years agoMake the javascript module API nodey.
isaacs [Mon, 15 Nov 2010 08:40:38 +0000 (00:40 -0800)]
Make the javascript module API nodey.

Add a createScript function, and put stuff on exports instead of hiding
it in exports.Script.

13 years agoRemove RonnJS not used anymore
Ryan Dahl [Mon, 15 Nov 2010 08:43:53 +0000 (00:43 -0800)]
Remove RonnJS not used anymore

13 years agoRemove old TODO
Ryan Dahl [Mon, 15 Nov 2010 07:44:26 +0000 (23:44 -0800)]
Remove old TODO

13 years agoAdd small crappy manpage (please improve)
Ryan Dahl [Mon, 15 Nov 2010 07:12:43 +0000 (23:12 -0800)]
Add small crappy manpage (please improve)

13 years agoImplement new path.join behavior
isaacs [Tue, 26 Oct 2010 21:41:06 +0000 (14:41 -0700)]
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.

13 years agoFix configure on x86
Ryan Dahl [Mon, 15 Nov 2010 06:46:26 +0000 (22:46 -0800)]
Fix configure on x86

13 years agoReworked and cleaned up documentation for Events
Micheil Smith [Sun, 14 Nov 2010 12:51:57 +0000 (23:51 +1100)]
Reworked and cleaned up documentation for Events

13 years agoAdded documentation for which module to require to use the methods defined in that...
Micheil Smith [Sun, 14 Nov 2010 12:51:32 +0000 (23:51 +1100)]
Added documentation for which module to require to use the methods defined in that documentation

13 years agoA few changes to the style, specifically for h3 + h3
Micheil Smith [Sun, 14 Nov 2010 12:50:48 +0000 (23:50 +1100)]
A few changes to the style, specifically for h3 + h3

13 years agoVarious changes to Net Documentation, ammended style for API.
Micheil Smith [Sun, 14 Nov 2010 10:12:04 +0000 (21:12 +1100)]
Various changes to Net Documentation, ammended style for API.

13 years agowriteFile fixes
isaacs [Sun, 14 Nov 2010 04:12:47 +0000 (20:12 -0800)]
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.

13 years agoUse require('javascript') instead of process.binding('evals')
Ryan Dahl [Sat, 13 Nov 2010 23:18:10 +0000 (15:18 -0800)]
Use require('javascript') instead of process.binding('evals')

13 years agoRemove process.compile from docs
Ryan Dahl [Sat, 13 Nov 2010 23:08:09 +0000 (15:08 -0800)]
Remove process.compile from docs

13 years agoUpdate gitignore for new docs
Ryan Dahl [Sat, 13 Nov 2010 23:02:18 +0000 (15:02 -0800)]
Update gitignore for new docs

13 years agofix 'make doc'
Ryan Dahl [Sat, 13 Nov 2010 22:57:35 +0000 (14:57 -0800)]
fix 'make doc'

13 years agoFix V8 build on Cygwin
Bert Belder [Thu, 11 Nov 2010 22:08:26 +0000 (23:08 +0100)]
Fix V8 build on Cygwin

13 years agoAdd --profile flag to configure script, enables gprof profiling.
Ben Noordhuis [Sat, 13 Nov 2010 11:58:24 +0000 (12:58 +0100)]
Add --profile flag to configure script, enables gprof profiling.

13 years agoAdded support for cross compilation and also fixed DEST_CPU to represent the canonica...
Rasmus Andersson [Sun, 24 Oct 2010 14:15:05 +0000 (16:15 +0200)]
Added support for cross compilation and also fixed DEST_CPU to represent the canonical symbols dictated by v8

13 years agoFix segfault on test-crypto
Ryan Dahl [Sat, 13 Nov 2010 22:26:40 +0000 (14:26 -0800)]
Fix segfault on test-crypto

Plus random cleanups. This code needs help.

13 years agoSimplify REPL displayPrompt
Ryan Dahl [Fri, 12 Nov 2010 22:37:05 +0000 (14:37 -0800)]
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.

13 years agoUpgrade V8 to 2.5.6
Ryan Dahl [Fri, 12 Nov 2010 06:42:06 +0000 (22:42 -0800)]
Upgrade V8 to 2.5.6

13 years agoAdd writeFilter when in the readline
Ryan Dahl [Fri, 12 Nov 2010 06:36:39 +0000 (22:36 -0800)]
Add writeFilter when in the readline

Switch \n with \r\n for all strings printed out.
Necessary for writev patch.

13 years agoMove ev_loop out of javascript
Ryan Dahl [Fri, 12 Nov 2010 00:33:21 +0000 (16:33 -0800)]
Move ev_loop out of javascript

13 years agojoyent-ize website
Ryan Dahl [Tue, 9 Nov 2010 23:43:52 +0000 (15:43 -0800)]
joyent-ize website

13 years agoRemove -e from echo in test. Non-portable
Ryan Dahl [Thu, 11 Nov 2010 06:32:26 +0000 (22:32 -0800)]
Remove -e from echo in test. Non-portable

13 years agoUpgrade http-parser again
Ryan Dahl [Thu, 11 Nov 2010 06:12:47 +0000 (22:12 -0800)]
Upgrade http-parser again

13 years agoUpgrade http-parser
Ryan Dahl [Tue, 9 Nov 2010 21:49:03 +0000 (13:49 -0800)]
Upgrade http-parser

13 years agoRemove util.print from docs
Ryan Dahl [Mon, 8 Nov 2010 01:22:36 +0000 (17:22 -0800)]
Remove util.print from docs

Use process.stdout.write()

13 years agoSet FD_CLOEXEC flag on stdio FDs before spawning.
Guillaume Tuton [Sun, 7 Nov 2010 14:34:20 +0000 (15:34 +0100)]
Set FD_CLOEXEC flag on stdio FDs before spawning.

With regression test.

13 years agoRemove unnecessary ref/unref in iowatcher cb
Ryan Dahl [Sat, 6 Nov 2010 00:38:02 +0000 (17:38 -0700)]
Remove unnecessary ref/unref in iowatcher cb

13 years agoMake writes to process.env update the real environment. Tests included.
Ben Noordhuis [Fri, 15 Oct 2010 13:48:34 +0000 (15:48 +0200)]
Make writes to process.env update the real environment. Tests included.

13 years agoInstall node-waf
Ryan Dahl [Wed, 3 Nov 2010 16:02:19 +0000 (09:02 -0700)]
Install node-waf

13 years agoRemove warning in 'sys' - too aggressive
Ryan Dahl [Wed, 3 Nov 2010 04:20:28 +0000 (21:20 -0700)]
Remove warning in 'sys' - too aggressive

13 years agoAdd legacy methods to Buffer
Ryan Dahl [Tue, 2 Nov 2010 17:09:59 +0000 (10:09 -0700)]
Add legacy methods to Buffer

13 years agoAdd test for http-buffer problem
Ryan Dahl [Tue, 2 Nov 2010 01:23:13 +0000 (18:23 -0700)]
Add test for http-buffer problem

Already fixed in 7e24a05cba2373c0ab1f0629366b664a593f357f

13 years agoBack to WAF
Ryan Dahl [Mon, 1 Nov 2010 23:03:32 +0000 (16:03 -0700)]
Back to WAF

Too much instability right now. Hopefully we can revisit autoconf soon.

13 years agoRemove old buffer api
Ryan Dahl [Mon, 1 Nov 2010 21:59:30 +0000 (14:59 -0700)]
Remove old buffer api

13 years agoAdd missing require('fs')
Ryan Dahl [Mon, 1 Nov 2010 21:56:21 +0000 (14:56 -0700)]
Add missing require('fs')

13 years agoUpgrade V8 to 2.5.3
Ryan Dahl [Mon, 1 Nov 2010 21:10:35 +0000 (14:10 -0700)]
Upgrade V8 to 2.5.3

13 years agoAdd execinfo to freebsd LINKFLAGS
Ryan Dahl [Mon, 1 Nov 2010 18:40:11 +0000 (11:40 -0700)]
Add execinfo to freebsd LINKFLAGS

13 years agoFix 'undefined symbol' errors when loading native modules.
Ben Noordhuis [Mon, 1 Nov 2010 19:34:11 +0000 (20:34 +0100)]
Fix 'undefined symbol' errors when loading native modules.

13 years agoAdd node headers installation
Oleg Efimov [Fri, 29 Oct 2010 14:10:37 +0000 (18:10 +0400)]
Add node headers installation

13 years agoAdd DESTDIR support to Makefile
Oleg Efimov [Fri, 29 Oct 2010 13:07:27 +0000 (17:07 +0400)]
Add DESTDIR support to Makefile

13 years agoRemoved range read optimization as it doesn't work with libeio.
Chandra Sekar S [Sat, 30 Oct 2010 10:06:59 +0000 (15:36 +0530)]
Removed range read optimization as it doesn't work with libeio.

13 years agoClean up 'make clean'
Ryan Dahl [Mon, 1 Nov 2010 02:31:22 +0000 (19:31 -0700)]
Clean up 'make clean'

13 years agoImproper use of CFLAGS
Ryan Dahl [Sun, 31 Oct 2010 00:03:12 +0000 (17:03 -0700)]
Improper use of CFLAGS

13 years agoAdd configure --enable-debug to make it build both
Ryan Dahl [Sat, 30 Oct 2010 23:10:55 +0000 (16:10 -0700)]
Add configure --enable-debug to make it build both

13 years agoDe-indent dns.lookup
Ryan Dahl [Sat, 30 Oct 2010 20:31:51 +0000 (13:31 -0700)]
De-indent dns.lookup

13 years agoMake sure watcher.set() isn't being called when active
Ryan Dahl [Sat, 30 Oct 2010 19:52:53 +0000 (12:52 -0700)]
Make sure watcher.set() isn't being called when active