0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
Commit Graph

596 Commits

Author SHA1 Message Date
Ryan
4787a41b84 Fix Process::MaybeShutdown's return type 2009-06-28 19:55:35 +02:00
Ryan
c9cb41cf80 Wrong number of arguments being passed to emit in AfterOpen 2009-06-28 19:34:54 +02:00
Ryan
65324866bc Implement Promises for file i/o 2009-06-28 19:08:27 +02:00
Ryan
7cd09874c6 Add Promise class 2009-06-28 19:08:27 +02:00
Ryan
ed926da691 Remove onEvent compatibility 2009-06-28 19:08:26 +02:00
Ryan
80bf451e6e Use EventEmitter for node.Process 2009-06-28 19:08:26 +02:00
Ryan
70fe920fb5 Use events for all HTTP messages.
This is a rather large refactor! Mostly for the better side. I've had to
remove some functionality like req.interrupt(). A lot of other work is left
messy or incomplete.
2009-06-28 19:08:26 +02:00
Ryan
20c0e1fdfb events for http.Server 2009-06-28 19:08:26 +02:00
Ryan
ed3d6a63d5 Further expand EventEmitter to TCP and HTTP
The constructor for TCP servers can no longer take a connection handler for
purely technical reasons. (The constructor for EventEmitter is implemented
in C++ but addListener is in javascript, and I don't want to make too many
C++ -> Javascript references.) Thus I introduce new constructor methods to
ease the creation of the servers:

  node.tcp.createServer()
  node.http.createServer()

These work almost the same as the old constructors.

In general we're working towards a future where no constructors are
publicly exposed or take arguments.

The HTTP events like "on_uri" are not yet using the event interface.
onMessage still is a constructor - but this will change soon.
2009-06-28 19:08:26 +02:00
Ryan
b4af3b9fb5 Timers on Events 2009-06-28 19:08:25 +02:00
Ryan
2ecd7ffe54 in the middle putting in event code. broken. 2009-06-28 19:08:25 +02:00
Ryan
bd952ac61e Add some notes about extent of HTTP API 2009-06-27 19:06:29 +02:00
Ryan
b77e603e04 add irc channel to website 2009-06-27 18:43:46 +02:00
Ryan
9615c93d2d Add make test-all 2009-06-27 00:49:47 +02:00
Ryan
be963d68af add more detail to req.uri documentation 2009-06-27 00:43:03 +02:00
Ryan
5ab93502d0 Fix issue in 5b7fb10 2009-06-27 00:13:37 +02:00
Ryan
5b7fb1003c Add failing test. Process spawning loop.
I think this is the issue Felix Geisendoerfer is reporting:
http://groups.google.com/group/nodejs/browse_thread/thread/efbae1ec1e67786c
2009-06-27 00:11:20 +02:00
Ryan
fbe0be19eb bump version 2009-06-24 16:43:37 +02:00
Ryan
bdad5e7333 test-process-kill: start process after onLoad 2009-06-24 13:58:17 +02:00
Ryan
7363ccd273 bugfix: Properly exit a process.
This requires that onExit() is not called immediately upon receiving a
SIGCHLD. There could still be data in the pipez. So, instead just set a
flag and invoke the pipe watchers.

Sometimes one will not receive an EOF from pipes because the process was
killed by a SIGTERM, or something. If SIGCHLD has been recved but we are
getting EAGAIN, the pipez need to be closed too.
2009-06-24 13:44:12 +02:00
Ryan
0e67b34c27 Fix thread pool unref issue.
Tests were silently failing since f56309d...

Since the eio_watcher is now not counted in the list of active watchers, we
need to explicitly tell the ev_loop not to exit when entering the thread
pool.
2009-06-23 11:27:18 +02:00
Ryan
b9f3ae23cf Fix some typos in the docs 2009-06-23 10:26:17 +02:00
Ryan
0ff62b2ea0 Move oi_buf creation to node.cc 2009-06-22 19:48:02 +02:00
Ryan
f56309deee Remove eio_warmup. Use ev_ref instead. 2009-06-22 19:32:42 +02:00
Ryan
cc67d8efc7 Fix bug waf problem with HAVE_CLOCK_SYSCALL 2009-06-22 18:28:48 +02:00
Ryan
7703a4cacb Add scons to LICENSE 2009-06-22 14:15:10 +02:00
Ryan
3fed1a0954 Use v8's test runner 2009-06-22 14:08:42 +02:00
Ryan
dce072a67e lint 2009-06-22 13:12:47 +02:00
Ryan
115c4942db Create tools directory
Users will need to "make distclean" to recompile from scratch since I've
moved a lot of the core build tools around.
2009-06-22 13:08:32 +02:00
Ryan
00d9b886c1 Remove unnecessary Detach 2009-06-21 23:28:12 +02:00
Ryan
f17b76afa4 Fix up docs. 2009-06-21 23:27:36 +02:00
Urban Hafner
ea290e727d Finished remote module loading 2009-06-21 16:59:11 +02:00
Urban Hafner
ad15067ea0 Tests and implementation of node.cat() 2009-06-21 16:40:08 +02:00
Urban Hafner
c192a1b5df Update to use the new parseUri() 2009-06-21 16:28:58 +02:00
Urban Hafner
6550e8cfa0 Remove empty parts of the parsed URI. 2009-06-21 16:28:23 +02:00
Urban Hafner
3a44efea69 Merge branch 'master' of git://github.com/ry/node 2009-06-21 16:10:20 +02:00
Ryan
da03a02a98 Add documentation for node.Process 2009-06-21 14:37:25 +02:00
Ryan
c5b5815ae7 fix error in test-process-simple 2009-06-21 14:07:52 +02:00
Ryan
145072e736 Add test-process-kill.js 2009-06-21 14:06:03 +02:00
Ryan
e71b089cd7 Add test-process-simple.js 2009-06-21 14:02:01 +02:00
Ryan
0f76d3e6d8 define signal constants 2009-06-21 13:50:13 +02:00
Ryan
e39923a3d7 Add process.kill(sig = SIGTERM) 2009-06-21 13:41:03 +02:00
Ryan
2fd4958698 Add pid accessor 2009-06-21 13:29:15 +02:00
Ryan
a78ea510a2 Add onExit callback 2009-06-21 13:18:00 +02:00
Ryan
03c5772ce4 Get stdin/stdout working. Add process->Close(). 2009-06-21 13:10:00 +02:00
Ryan
83cb156b6f skelton of node.Process 2009-06-20 16:55:40 +02:00
Ryan
25d14bd001 Bug: Add HTTPConnection->size() and HTTPServer->size()
Need this for proper garbage collection.
2009-06-20 15:17:54 +02:00
Urban Hafner
fc63f840b0 Merge branch 'master' of git://github.com/ry/node 2009-06-19 09:03:24 +02:00
Ryan
ec5f3dbae1 bump version 2009-06-18 23:22:31 +02:00
Ryan
7ec90dbfd0 Clean up debug code in net.cc 2009-06-18 15:35:02 +02:00