440 Commits

Author SHA1 Message Date
Ryan Dahl
38e425d9bf Add V8 heap info to process.memoryUsage() 2009-11-28 16:31:29 +01:00
choonkeat
44d5f212fe Stat::Callback has 2 arguments for callback: current stat info and previous stat info
http://groups.google.com/group/nodejs/msg/f8e51a8e0c74bd85
2009-11-28 15:13:12 +01:00
Ryan Dahl
dc093ef833 Add process.loop() process.unloop()!!!
Move the event loop calls into javascript.
Makes life so much easier.
2009-11-23 00:59:39 +01:00
Friedemann Altrock
0433d828cf add process.umask() 2009-11-22 19:52:52 +01:00
Friedemann Altrock
2d54d664ff Promises should not be able to be canceled more than once. 2009-11-22 19:18:24 +01:00
Rhys Jones
b6dda61249 Initial TLS support 2009-11-22 04:03:53 +01:00
Ryan Dahl
1cacb50f2b Fix memory leak on fs.write()
Reported by onne@onnlucky.com.
2009-11-22 00:47:36 +01:00
Ryan Dahl
39a12b2a22 Remove debug message 2009-11-21 17:16:05 +01:00
Ryan Dahl
7719ce33db New http-parser
No longer based on Ragel, but hand-written.

Had to add HTTPConnection.resetParser() because the parser is stricter and
will error out when you try to give it a message after the previous had
"Connection: close". The HTTP client was doing that. Thus we reset the
parser manually after each new connection.
2009-11-21 16:27:02 +01:00
Ryan Dahl
686bec4f35 Only detach timers when active. 2009-11-19 19:08:47 +01:00
Ryan Dahl
8195e0f723 Fix default value for persistent in watchFile() 2009-11-17 23:07:31 +01:00
Ryan Dahl
6de2173d7c Add options to process.watchFile() 2009-11-17 22:35:47 +01:00
Ryan Dahl
8d2f9e83a4 Add process.watchFile() process.unwatchFile()
This is an interface to libev's ev_stat watcher.
2009-11-17 14:07:48 +01:00
Felix Geisendörfer
2b252acea4 Implement process "uncaughtException" event
This event can be used to overwrite the default exception mechanism which
reports the exception and kills the node process.

See google group post:
http://groups.google.com/group/nodejs/browse_thread/thread/9721dc3a2638446f
2009-11-14 23:46:37 +01:00
fwg
bd6c08a984 Add EventEmitter.removeListener 2009-11-13 17:12:41 +01:00
Johan Sørensen
04f9c9fb09 Supply the strerror as a second arg to the tcp.Connection close event 2009-11-13 15:17:23 +01:00
Ryan Dahl
06d493e7e3 Remove debug message 2009-11-12 12:47:02 +01:00
Felix Geisendörfer
bb8f0725da Bugfix, Promise.timeout() blocked the event loop
Promise.timeout() was blocking the event loop from shutting down while it
was waiting for an internal timer to fire. This timer is now cleared when
it is no longer needed, causing the event loop to shut down as fast as
possible.
2009-11-12 12:45:06 +01:00
Felix Geisendörfer
7371fcb312 Temporary function to determine str byte length
Will need a better place later on
2009-11-11 18:42:46 +01:00
Felix Geisendörfer
1026ffea40 Proper deprecation message for process.inherits 2009-11-11 17:38:45 +01:00
Ryan Dahl
2ca788e6e2 Add 'drain' event to tcp.Connection 2009-11-10 17:43:37 +01:00
Ryan Dahl
cff1df1f9b Fix ev_unref error in signal handler 2009-11-07 17:18:23 +01:00
Ryan Dahl
42dd629c16 deprecation error for process.inherits() 2009-11-07 16:27:18 +01:00
Ryan Dahl
1020efb6f7 Create require.main, remove process.cat() 2009-11-07 14:57:49 +01:00
Ryan Dahl
43121c15be API: rename process.inherits to sys.inherits 2009-11-07 14:45:39 +01:00
Ryan Dahl
d737a060c8 Combine all compiled javascript files into src/node.js 2009-11-07 14:37:22 +01:00
Ryan Dahl
51c1526b6a Revert "Upgrade http parser, change node as needed."
Something is broken in how keep-alive is working. Reverting until I can fix
it.

This reverts commit b893859c34.
2009-11-06 12:44:20 +01:00
Ryan Dahl
c6bd0e56cb Fix regexp in file extension checking 2009-11-04 12:39:08 +01:00
Ryan Dahl
711774c1f0 Remove unreachable lines 2009-11-04 02:18:31 +01:00
Brandon Beacher
47fcf785ac Added process.chdir() 2009-11-03 19:22:37 +01:00
Ryan Dahl
b3b3cfe007 Move memoryUsage() into C on Linux 2009-11-03 13:00:42 +01:00
Ryan Dahl
3a70129a9c Add sys.memoryUsage() 2009-11-03 01:30:01 +01:00
Ryan Dahl
f481183140 Add process.platform 2009-11-03 00:21:00 +01:00
Felix Geisendörfer
43d651daef The return of relative module loading 2009-11-02 21:26:55 +01:00
Felix Geisendörfer
7069bee982 The return of absolute Module loading 2009-11-02 21:20:44 +01:00
Felix Geisendörfer
8fd472b9a1 The return of remote module loading 2009-11-01 15:39:49 +01:00
Ryan Dahl
9bd2717e74 require.paths aliased as process.path 2009-11-01 09:30:01 +01:00
Ryan Dahl
f230e45183 Update deprecation errors. 2009-10-31 20:03:40 +01:00
Ryan Dahl
9a7321ebb0 Don't call process.exit() on missing module.
Just raise exception naturally.
2009-10-31 19:53:09 +01:00
Ryan Dahl
f683867b98 module.name renamed to module.id for commonjs compat 2009-10-31 19:47:41 +01:00
Ryan Dahl
7a2e784ad7 Module refactor - almost CommonJS compatible now
API change summary:

  * require("/sys.js") becomes require("sys")

  * require("circle.js") becomes require("./circle")

  * process.path.join() becomes require("path").join()
2009-10-31 19:10:30 +01:00
Ryan Dahl
ad0a4cefb8 Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
2009-10-29 23:36:41 +01:00
Felix Geisendörfer
659954d842 The return of Promise.cancel() with some additional tests & docs 2009-10-29 11:24:08 +01:00
Ryan Dahl
3d8b14e6f7 node.fs.* moved into "/posix.js"
use require("/posix.js") to access them.
2009-10-28 22:45:46 +01:00
Ryan Dahl
ae7c9909be fix error from v8 upgrade 2009-10-28 21:35:49 +01:00
Ryan Dahl
efe34f5023 Only allow a promise to fire once, remove promise.cancel()
promise.cancel() is due to return at some point.
2009-10-28 15:37:03 +01:00
Ryan Dahl
a5df0f6a65 Prefix all source files with node_ 2009-10-27 11:46:58 +01:00
Ryan Dahl
2bac299aed Remove unused macro 2009-10-27 11:08:50 +01:00
Ryan Dahl
04e53cab90 Rename node.libraryPaths to require.paths
to be more inline with CommonJS.
2009-10-25 22:51:57 +01:00
Ryan Dahl
cfe5876350 Add v8 patch to fix mac x64 build.
http://codereview.chromium.org/284012
2009-10-16 18:00:06 +02:00