platform/upstream/nodejs.git
15 years agoMerge branch 'master' of git://github.com/ry/node
Urban Hafner [Tue, 16 Jun 2009 19:09:37 +0000 (21:09 +0200)]
Merge branch 'master' of git://github.com/ry/node

15 years agoFix test-http-client-race bug
Ryan [Tue, 16 Jun 2009 18:53:15 +0000 (20:53 +0200)]
Fix test-http-client-race bug

15 years agoAdd failing test for HTTP Client
Ryan [Tue, 16 Jun 2009 17:56:00 +0000 (19:56 +0200)]
Add failing test for HTTP Client

Reported by Hagen:
http://groups.google.com/group/nodejs/browse_thread/thread/335b565360437b36

15 years agoOnly run debug tests if the build debug was built
Ryan [Tue, 16 Jun 2009 17:32:31 +0000 (19:32 +0200)]
Only run debug tests if the build debug was built

15 years agoFix memleak: freeaddrinfo() after Server resolve address.
Ryan [Tue, 16 Jun 2009 15:47:59 +0000 (17:47 +0200)]
Fix memleak: freeaddrinfo() after Server resolve address.

15 years agoResolve should default to IPv4 address.
Ryan [Tue, 16 Jun 2009 15:43:40 +0000 (17:43 +0200)]
Resolve should default to IPv4 address.

15 years agoAdd "opening" readyState for the resolve period.
Ryan [Tue, 16 Jun 2009 13:50:52 +0000 (15:50 +0200)]
Add "opening" readyState for the resolve period.

15 years agoAdd electric fence option to configure process
Ryan [Tue, 16 Jun 2009 13:47:57 +0000 (15:47 +0200)]
Add electric fence option to configure process

15 years agoTest for remote module loading
Urban Hafner [Tue, 16 Jun 2009 06:20:00 +0000 (08:20 +0200)]
Test for remote module loading

15 years agoAdd global print() function.
Ryan [Mon, 15 Jun 2009 14:57:10 +0000 (16:57 +0200)]
Add global print() function.

15 years agoBugfix+Refactor: accessing HTTP connection remoteAddress
Ryan [Mon, 15 Jun 2009 13:24:55 +0000 (15:24 +0200)]
Bugfix+Refactor: accessing HTTP connection remoteAddress

15 years agoFiddle with remoteAddress
Ryan [Mon, 15 Jun 2009 12:35:02 +0000 (14:35 +0200)]
Fiddle with remoteAddress

15 years agotest default build too
Ryan [Sat, 13 Jun 2009 14:50:37 +0000 (16:50 +0200)]
test default build too

15 years agosmall superficial clean-ups
Ryan [Sat, 13 Jun 2009 14:47:09 +0000 (16:47 +0200)]
small superficial clean-ups

15 years agobump version
Ryan [Sat, 13 Jun 2009 12:13:42 +0000 (14:13 +0200)]
bump version

15 years agoAdd Request objects on the HTTP server can be interrupted. v0.0.4
Ryan [Fri, 12 Jun 2009 15:37:43 +0000 (17:37 +0200)]
Add Request objects on the HTTP server can be interrupted.

15 years agoRemove unused HTTPConnection destructor
Ryan [Fri, 12 Jun 2009 15:30:37 +0000 (17:30 +0200)]
Remove unused HTTPConnection destructor

15 years agoUpgrade http parser
Ryan [Fri, 12 Jun 2009 15:27:44 +0000 (17:27 +0200)]
Upgrade http parser

15 years agoonBodyComplete was not getting called in HTTP server
Ryan [Fri, 12 Jun 2009 13:24:57 +0000 (15:24 +0200)]
onBodyComplete was not getting called in HTTP server

15 years agofix typo
Ryan [Fri, 12 Jun 2009 13:23:36 +0000 (15:23 +0200)]
fix typo

15 years agobump version v0.0.3
Ryan [Thu, 11 Jun 2009 11:54:03 +0000 (13:54 +0200)]
bump version

15 years agoAdd 'localhost' to connect() to test for issue 3
Ryan [Thu, 11 Jun 2009 11:43:00 +0000 (13:43 +0200)]
Add 'localhost' to connect() to test for issue 3

15 years agoadd note about python versions
Ryan [Thu, 11 Jun 2009 11:40:25 +0000 (13:40 +0200)]
add note about python versions

15 years agocomment out gnutls check in wscript until it's used
Ryan [Thu, 11 Jun 2009 11:40:14 +0000 (13:40 +0200)]
comment out gnutls check in wscript until it's used

15 years agoFix comment/test for Mac getaddinfo() bug.
Ryan [Thu, 11 Jun 2009 09:42:43 +0000 (11:42 +0200)]
Fix comment/test for Mac getaddinfo() bug.

Note: the test case was broken because on Macintosh the client connects
synchronously. This is undesirable but ok for now.

15 years agoadd todo list
Ryan [Thu, 11 Jun 2009 00:34:04 +0000 (02:34 +0200)]
add todo list

15 years agoremove unnecessary pthread header
Ryan [Wed, 10 Jun 2009 17:05:54 +0000 (19:05 +0200)]
remove unnecessary pthread header

15 years agoupgrade http_parser
Ryan [Wed, 10 Jun 2009 16:35:05 +0000 (18:35 +0200)]
upgrade http_parser

15 years agofix for issue 3; but now experiencing segfault on linux
Ryan [Wed, 10 Jun 2009 16:29:59 +0000 (18:29 +0200)]
fix for issue 3; but now experiencing segfault on linux

15 years agoupgrade liboi
Ryan [Wed, 10 Jun 2009 13:24:28 +0000 (15:24 +0200)]
upgrade liboi

15 years agoFree pointer with delete, since created with new
Ryan [Wed, 10 Jun 2009 13:24:14 +0000 (15:24 +0200)]
Free pointer with delete, since created with new

15 years agoExtra header to work with freebsd
Ryan [Tue, 9 Jun 2009 15:47:42 +0000 (17:47 +0200)]
Extra header to work with freebsd

15 years agoAdd waf to LICENSE
Ryan [Tue, 9 Jun 2009 13:20:10 +0000 (15:20 +0200)]
Add waf to LICENSE

15 years agoUpgrade http_parser - protects against buffer overflows now
Ryan [Tue, 9 Jun 2009 13:18:12 +0000 (15:18 +0200)]
Upgrade http_parser - protects against buffer overflows now

15 years agoAdd HTTP proxy test. Fix bug in http.Server.
Ryan [Tue, 9 Jun 2009 12:10:53 +0000 (14:10 +0200)]
Add HTTP proxy test. Fix bug in http.Server.

was not properly inheriting http.Server from http.LowLevelServer.

15 years agoAdd mongrel and parseUri references to LICENSE file
Ryan [Tue, 9 Jun 2009 11:59:13 +0000 (13:59 +0200)]
Add mongrel and parseUri references to LICENSE file

15 years agoAdd http server / http client test.
Ryan [Tue, 9 Jun 2009 08:28:59 +0000 (10:28 +0200)]
Add http server / http client test.

15 years agoAllow for absolute paths to specify root module
Ryan [Tue, 9 Jun 2009 08:06:04 +0000 (10:06 +0200)]
Allow for absolute paths to specify root module

15 years agoDon't use AI_NUMERICSERV. Doesn't work on mac.
Ryan [Mon, 8 Jun 2009 21:56:09 +0000 (23:56 +0200)]
Don't use AI_NUMERICSERV. Doesn't work on mac.

15 years agoModify the tests to use onExit hook.
Ryan [Mon, 8 Jun 2009 17:10:23 +0000 (19:10 +0200)]
Modify the tests to use onExit hook.

No need to rely on stdout output now.
onExit callbacks should print stack trace from onExit failure

15 years agoUpgrade to v8 1.2.7
Ryan [Mon, 8 Jun 2009 16:34:06 +0000 (18:34 +0200)]
Upgrade to v8 1.2.7

15 years agoImplement onExit() hook for modules.
Ryan [Mon, 8 Jun 2009 14:17:33 +0000 (16:17 +0200)]
Implement onExit() hook for modules.

onExit() is similar to the onLoad() callback. onExit() is called on each
module just before the process exits. This can be used to check state in
unit tests, but not to perform I/O. The process will forcibly exit as soon
as all of the onExit callbacks are made.

15 years agoModule system refactor
Ryan [Mon, 8 Jun 2009 13:30:10 +0000 (15:30 +0200)]
Module system refactor

There is one major API change in the refactor: filename extensions are now
required when requiring or including modules.

Added extra test to test-module-loading.js.

15 years agoDo not assume transfer-encoding: chunked as default on requests.
Ryan [Sat, 6 Jun 2009 21:57:15 +0000 (23:57 +0200)]
Do not assume transfer-encoding: chunked as default on requests.

If users do not send transfer-encoding or content-length headers, then I
will not add any additional. Content-Length: 0 is assumed if there aren't
other headers and chunked encoding is rare.

15 years agoAdd connection.remoteAddress for server-side node.tcp.Connections.
Ryan [Fri, 5 Jun 2009 18:15:54 +0000 (20:15 +0200)]
Add connection.remoteAddress for server-side node.tcp.Connections.

15 years agoDocumentation for connection.connect()
Ryan [Fri, 5 Jun 2009 13:18:05 +0000 (15:18 +0200)]
Documentation for connection.connect()

15 years agoDon't use AI_PASSIVE in getaddrinfo() for client connections.
Ryan [Fri, 5 Jun 2009 13:10:46 +0000 (15:10 +0200)]
Don't use AI_PASSIVE in getaddrinfo() for client connections.

15 years agoMerge branch 'ujh/master'
Ryan [Fri, 5 Jun 2009 12:32:53 +0000 (14:32 +0200)]
Merge branch 'ujh/master'

Conflicts:

website/index.html

15 years agoMention node_chat
Urban Hafner [Fri, 5 Jun 2009 10:28:56 +0000 (13:28 +0300)]
Mention node_chat

15 years agoAdd link to chat room demo
Ryan [Fri, 5 Jun 2009 10:27:09 +0000 (12:27 +0200)]
Add link to chat room demo

15 years agoXHTML compliant HTML and a few spelling fixes
Urban Hafner [Fri, 5 Jun 2009 10:23:51 +0000 (13:23 +0300)]
XHTML compliant HTML and a few spelling fixes

15 years agoMentioning the google group in the README and documentation.
Urban Hafner [Fri, 5 Jun 2009 08:38:41 +0000 (11:38 +0300)]
Mentioning the google group in the README and documentation.

15 years agoFix HTTP client output bug.
Ryan [Thu, 4 Jun 2009 13:41:40 +0000 (15:41 +0200)]
Fix HTTP client output bug.

15 years agoIf http.Client has an error, do not continue to reconnect.
Ryan [Thu, 4 Jun 2009 10:36:08 +0000 (12:36 +0200)]
If http.Client has an error, do not continue to reconnect.

15 years agoAdd "had_error" argument to the "onDisconnect" in node.tcp.Client
Ryan [Thu, 4 Jun 2009 10:31:45 +0000 (12:31 +0200)]
Add "had_error" argument to the "onDisconnect" in node.tcp.Client

This is a boolean value which allows one to detect if the socket was closed
due to errors. There is not yet a way to look up the actual error code.

15 years agostatus_code -> statusCode in test_client.js
Ryan [Thu, 4 Jun 2009 08:49:01 +0000 (10:49 +0200)]
status_code -> statusCode in test_client.js

15 years agoWebsite: correct typos.
Ryan [Wed, 3 Jun 2009 09:43:54 +0000 (11:43 +0200)]
Website: correct typos.

15 years agoRename req.uri.queryKey to req.uri.params. More familar to rails users.
Ryan [Mon, 1 Jun 2009 18:59:33 +0000 (20:59 +0200)]
Rename req.uri.queryKey to req.uri.params. More familar to rails users.

15 years agoFix bug: catting non-existent files
Ryan [Mon, 1 Jun 2009 10:56:28 +0000 (12:56 +0200)]
Fix bug: catting non-existent files

15 years agobump version to v0.0.2 v0.0.2
Ryan [Sun, 31 May 2009 12:25:07 +0000 (14:25 +0200)]
bump version to v0.0.2

15 years agowork on About on webpage
Ryan [Sun, 31 May 2009 12:24:10 +0000 (14:24 +0200)]
work on About on webpage

15 years agoAdd audience to website
Ryan [Sat, 30 May 2009 17:36:41 +0000 (19:36 +0200)]
Add audience to website

15 years agoFix up description on web page
Ryan [Sat, 30 May 2009 16:14:26 +0000 (18:14 +0200)]
Fix up description on web page

15 years agochanges to website
Ryan [Fri, 29 May 2009 16:59:18 +0000 (18:59 +0200)]
changes to website

15 years agoRemove complex string appending in http's send() method.
Ryan [Fri, 29 May 2009 15:05:03 +0000 (17:05 +0200)]
Remove complex string appending in http's send() method.

That seems to churn the garbage collector like mad.
Before: http://s3.amazonaws.com/four.livejournal/20090529/timeseries6.png
After:  http://s3.amazonaws.com/four.livejournal/20090529/timeseries11.png
Got a nice tight side profile for this benchmark now:
http://s3.amazonaws.com/four.livejournal/20090529/hist10.png

15 years agoRemove unnecessary AdjustAmountOfExternalAllocatedMemory from node.http.
Ryan [Fri, 29 May 2009 11:58:52 +0000 (13:58 +0200)]
Remove unnecessary AdjustAmountOfExternalAllocatedMemory from node.http.

15 years agoFix ::exit() compile issues.
Ryan [Thu, 28 May 2009 12:47:16 +0000 (14:47 +0200)]
Fix ::exit() compile issues.

Thanks Matthias!

15 years agoadd long description to website
Ryan [Thu, 28 May 2009 11:45:18 +0000 (13:45 +0200)]
add long description to website

15 years agoRemove old .gitmodules file
Ryan [Thu, 28 May 2009 10:30:22 +0000 (12:30 +0200)]
Remove old .gitmodules file

15 years agoClean up that download link.
Ryan [Wed, 27 May 2009 16:41:04 +0000 (18:41 +0200)]
Clean up that download link.

15 years agoUpdate website with first release link.
Ryan [Wed, 27 May 2009 16:38:22 +0000 (18:38 +0200)]
Update website with first release link.

15 years agoChange to build on FreeBSD v0.0.1
Ryan [Wed, 27 May 2009 14:29:55 +0000 (16:29 +0200)]
Change to build on FreeBSD

The v8/SConstruct change has been give to the v8 people.
http://codereview.chromium.org/113897

15 years agoJust twiddling with the webpage
Ryan [Wed, 27 May 2009 13:42:16 +0000 (15:42 +0200)]
Just twiddling with the webpage

15 years agoReorganize the website into two pages.
Ryan [Wed, 27 May 2009 12:53:36 +0000 (14:53 +0200)]
Reorganize the website into two pages.

15 years agoadd license, readme
Ryan [Tue, 26 May 2009 23:59:31 +0000 (01:59 +0200)]
add license, readme

15 years agoAdd includes for freebsd compatibility
Ryan [Tue, 26 May 2009 23:35:54 +0000 (01:35 +0200)]
Add includes for freebsd compatibility

15 years agoRemove file access flags that arn't present in macintosh.
Ryan [Tue, 26 May 2009 18:35:42 +0000 (20:35 +0200)]
Remove file access flags that arn't present in macintosh.

15 years agoAdd errno constants. Move all constants to `node.constants` namespace.
Ryan [Tue, 26 May 2009 17:48:49 +0000 (19:48 +0200)]
Add errno constants. Move all constants to `node.constants` namespace.

15 years agoRename fatal_exception to FatalException
Ryan [Tue, 26 May 2009 16:18:17 +0000 (18:18 +0200)]
Rename fatal_exception to FatalException

15 years agoHave connection.setEncoding use node::ParseEncoding
Ryan [Tue, 26 May 2009 16:14:32 +0000 (18:14 +0200)]
Have connection.setEncoding use node::ParseEncoding

15 years agoClean up doc intro and syntax highlighting.
Ryan [Tue, 26 May 2009 16:06:53 +0000 (18:06 +0200)]
Clean up doc intro and syntax highlighting.

15 years agoClean up outgoing encoding API. Generally: send(chunk, encoding).
Ryan [Tue, 26 May 2009 15:46:56 +0000 (17:46 +0200)]
Clean up outgoing encoding API. Generally: send(chunk, encoding).

15 years agoAdd preliminary tcp documentation
Ryan [Tue, 26 May 2009 13:20:25 +0000 (15:20 +0200)]
Add preliminary tcp documentation

15 years agoMore docs. Add rmdir and unlink.
Ryan [Tue, 26 May 2009 10:11:31 +0000 (12:11 +0200)]
More docs. Add rmdir and unlink.

15 years agoFile I/O documentation. Remove necessity of class="sh_javascript".
Ryan [Tue, 26 May 2009 09:39:40 +0000 (11:39 +0200)]
File I/O documentation. Remove necessity of class="sh_javascript".

15 years agoAdd node.fs prefix to some constants. oops.
Ryan [Tue, 26 May 2009 01:37:18 +0000 (03:37 +0200)]
Add node.fs prefix to some constants. oops.

15 years agoLarge refactor of file code.
Ryan [Tue, 26 May 2009 01:30:51 +0000 (03:30 +0200)]
Large refactor of file code.

All the c++ code is now reduced to simple wrappers. The node.fs.File object
is defined entirely in javascript now. As is the actionQueue methods.

This makes the boundaries much cleaner. There is still some thought that
needs to go into how exactly the API should behave but this simplification
is a first step.

15 years agoMore docs
Ryan [Mon, 25 May 2009 17:52:05 +0000 (19:52 +0200)]
More docs

15 years agoAdd docs. Rename exit() to node.exit().
Ryan [Mon, 25 May 2009 11:38:36 +0000 (13:38 +0200)]
Add docs. Rename exit() to node.exit().

15 years agoRemove error codes from file on_completion callbacks. Use file.onError.
Ryan [Mon, 25 May 2009 11:17:35 +0000 (13:17 +0200)]
Remove error codes from file on_completion callbacks. Use file.onError.

The error codes still remain for the two general file system operations:
rename and stat.

Additionally I've removed the actionQueue for file system operations. They
are sent directly into the thread pool.

15 years agoNamespace File stuff in node.fs
Ryan [Thu, 21 May 2009 10:49:41 +0000 (12:49 +0200)]
Namespace File stuff in node.fs

15 years agoBeginnings of file i/o docs. Finish up timers.
Ryan [Thu, 21 May 2009 10:33:57 +0000 (12:33 +0200)]
Beginnings of file i/o docs. Finish up timers.

15 years agoBegin documentation for file i/o
Ryan [Wed, 20 May 2009 14:58:08 +0000 (16:58 +0200)]
Begin documentation for file i/o

15 years agoCamel case status_code and http_version.
Ryan [Wed, 20 May 2009 14:05:31 +0000 (16:05 +0200)]
Camel case status_code and http_version.

15 years agoMore node.http.Client docs
Ryan [Wed, 20 May 2009 14:02:53 +0000 (16:02 +0200)]
More node.http.Client docs

15 years agoBegin node.http.Client docs
Ryan [Wed, 20 May 2009 11:42:26 +0000 (13:42 +0200)]
Begin node.http.Client docs

15 years agoAdd setBodyEncoding to http client responses.
Ryan [Wed, 20 May 2009 11:00:20 +0000 (13:00 +0200)]
Add setBodyEncoding to http client responses.

15 years agoHTTP Server: Close 1.0 connections properly.
Ryan [Wed, 20 May 2009 08:28:10 +0000 (10:28 +0200)]
HTTP Server: Close 1.0 connections properly.

15 years agoAdd http.ServerRequest.setBodyEncoding. Needs test still.
Ryan [Wed, 20 May 2009 08:17:07 +0000 (10:17 +0200)]
Add http.ServerRequest.setBodyEncoding. Needs test still.

15 years agoChange encoding setter/getter to setEncoding function.
Ryan [Wed, 20 May 2009 08:02:02 +0000 (10:02 +0200)]
Change encoding setter/getter to setEncoding function.