Ryan Dahl
bac16bd8ac
Remove node.pc
15 years ago
Ryan Dahl
e2b7902469
Don't use parseUri for HTTP server
The big parseUri RE was showing up often in profiles - this is simpler and
yields better performance by taking advantage of the C http parser.
15 years ago
Ryan Dahl
6f17ca51c3
Install wafadmin into $PREFIX/lib/node/wafadmin
This is in preparation for a special node_waf script for building external
modules.
Also change system library path to $PREFIX/lib/node/libraries
15 years ago
Ryan Dahl
602f9dbf3f
SetClassName on internal classes.
15 years ago
Ryan Dahl
b66c5c9808
Replace DEFINE_SIMPLE_CALLBACK macros with explicit functions
15 years ago
Ryan Dahl
a8c0211e73
Bugfix: require() and include() should work in callbacks.
Removing requireAsync and includeAsync from global scope for now as a
temporary fix. Reported by Yuffster.
15 years ago
Ryan Dahl
cda659a8c8
Camel-case all http events
15 years ago
Ryan Dahl
b7526eb324
Add warning when coroutine stack size grows too large.
For the moment too large is 10.
15 years ago
Ryan Dahl
835554c92b
Error message on bad module load.
15 years ago
Ryan Dahl
23c7f472d0
API: Move node.exit() to process.exit().
15 years ago
Ryan Dahl
459d644a5a
Don't delete timer object on clearTimeout.
I've heard delete is inefficient in v8. Better to let the garbage collector
take care of it naturally.
15 years ago
Ryan Dahl
095470854b
Move tcp library to /tcp.js
15 years ago
Ryan Dahl
f6657c3c9d
Move http library to /http.js
15 years ago
Ryan Dahl
7abad8b7b3
API: Move node.puts(), node.exec() and others to /utils.js
15 years ago
Ryan Dahl
4f69871c17
Add node.inspect() and deprecate p().
15 years ago
Ryan Dahl
45ea62a0f6
Changes to compile on Andrew Miller's very old machine
15 years ago
Ryan Dahl
55a2e8271e
Decrease default TCP backlog to 128
...after seeing http://lionet.livejournal.com/42016.html
15 years ago
Ryan Dahl
8a5194b7cf
cpplint.js file.{cc,h}
15 years ago
Ryan Dahl
c53aeb5a02
Call "connection" event after connection object is fully formed.
This became an apparent problem when adding setNoDelay because the command
was ignored if issued during the "connection" event.
15 years ago
Ryan Dahl
e0ec0036ca
Add connection.setNoDelay() to disable Nagle algorithm.
15 years ago
Ryan Dahl
76f4962636
Bugfix: EIOPromise::Create was allocating two EIOPromise objects
This is because it would call the javascript initializer which executed
Promise::New, and then it would rewrap the handle. Instead I make an
explicit inheritance from EIOPromise to Promise.
This seems to fix a memory leak which was reported by Ray Morgan:
http://groups.google.com/group/nodejs/browse_thread/thread/e38949b1989da1d7
15 years ago
Ryan Dahl
663deb3828
delete[] instead of delete for arrays.
15 years ago
Ryan Dahl
07792afe0a
Remove "raw" encoding. Rename "raws" to "binary".
Deprecation warnings have been added to help the conversion to this new API.
15 years ago
Ryan Dahl
7ddf1f569a
Improve error message for requiring system modules.
15 years ago
Ryan Dahl
949f24305b
Add node.error(); p() outputs to stderr.
15 years ago
Ryan Dahl
3311122ccb
Throw ret value from wait() only if it's there.
15 years ago
Ryan Dahl
389c80aece
return error from cat_promise in node.fs.cat
15 years ago
Ryan Dahl
c8b143bf30
Absolute path names for require() refer to node.libraryPaths
15 years ago
Ryan Dahl
605b7e9763
Add node.installPrefix
15 years ago
Ryan Dahl
b54fad9b3f
Bugfix: node.fs.write() was stack allocating buffer.
Since the buffer is passed to the thread pool it needs to be heap allocated.
Thanks to Jon Crosby and Tim Caswell for debugging this.
15 years ago
Ryan Dahl
9db2e5f375
Default to utf8 encoding for node.fs.cat()
15 years ago
Ryan Dahl
083d150bc4
Add node.exec()
15 years ago
Ryan Dahl
5fdf9bbaa9
Remove unused variable in http.cc
15 years ago
Ryan Dahl
4f98e2deb3
Fix buffering logic for HTTP outgoing messages.
Was sending two packets instead of one for some short messages, and even 3,
for short chunked-encoded messages. Also use the more general Encode()
function for receiving HTTP bodies.
Gives ~6% improvement on "hello world" web server benchmarks.
15 years ago
Ryan Dahl
f389f923b8
Remove erroneously placed EV_DEFAULT_UC_
15 years ago
Ryan Dahl
0d1ec5fdbe
API: node.fs.read() takes a normal encoding parameter.
Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings.
node.fs.read() now supports "raws" encoding.
15 years ago
Ryan Dahl
d1a13bdd35
Fix default encoding for outgoing HTTP messages
Was causing send() to throw argument errors because arrays of ints would get
paired with the "raws" encoding. The bug was introduced in 8eb1294
.
15 years ago
Ryan Dahl
ef300d19cb
Bugfix: ReportException shouldn't forget the top frame.
15 years ago
Ryan Dahl
8eb1294f87
Bugfix: sendBody wasn't setting encoding
15 years ago
Ryan
227638bac1
Lint
15 years ago
Ryan
dbe116ddfe
API: Change arguments of emit(), emitSuccess(), emitError()
Instead of
myemitter.emit("event", [arg1, arg2, arg3]);
the API is now
myemitter.emit("event", arg1, arg2, arg3);
This change saves the creation of an extra array object for each event.
The implementation is also slightly more simple.
15 years ago
Ryan
1910c113cc
Add '--' to seperate v8 args from program args
15 years ago
Ryan
d6c9d31cb5
cpplint.py node.cc and node.h
15 years ago
Ryan
241950c1df
Add isDirectory(), isFile(), isSocket(), ... methods to stats object.
Thanks to Felix Geisendörfer for the initial patch.
15 years ago
Ryan
3e4fc9f966
Add 'extern char **environ' so that the new ENV code compiles.
Problem appeared in dc39e82024
.
15 years ago
Ryan
dc39e82024
Add access to user environment via ENV
15 years ago
Ryan
68dda0a7d8
Man page generation.
15 years ago
Ryan
8e5d4f9a69
Remove debug agent. It shouldn't have been commited!
Appeared accidentally in 6dd850aa
.
15 years ago
Ryan
2337630746
Move arg parsing to beginning of main()
For faster "./node -v"
15 years ago
Ryan
d7e220cee1
Add a few fflush(stderr) calls to track down missing stacktraces.
15 years ago