Ryan
6acac912dd
Initial support for shebang.
...
There are some issues with loading modules from shebang-executed scripts
that will still need to be addressed, but this works for simple single
script situations.
2009-08-03 18:42:56 +02:00
Ryan
11df252cb9
Add simple command line switches
2009-08-03 18:21:34 +02:00
Ryan
1bf9be6b37
Add node.version
2009-08-03 17:51:35 +02:00
Ryan
e10fbab00f
bump version
2009-08-01 14:56:45 +02:00
Ryan
207bd3c764
Add header to src/dns.cc to compile on FreeBSD.
2009-08-01 12:58:39 +02:00
Ryan
c745383b31
Add examples of reading a file to documentation.
2009-07-31 20:01:49 +02:00
Ryan
4f46c47773
node.fs.File was not passing args to promise callbacks.
...
Reported by Jacob Rus.
2009-07-31 19:48:19 +02:00
Ryan
9d3ed1bb92
Bugfix: negative integers in raw encoding stream.
...
Add test. Reported by Tim Caswell.
2009-07-31 19:16:08 +02:00
Ryan
e25afc35bd
Hack to fix module line numbers in stack traces.
...
This code is going to be refactored with the introduction of the "process"
object. This is just temporary.
2009-07-31 18:49:30 +02:00
Ryan
b27f8ba06d
Default to chunked for client requests without C-Length.
...
Also add test. Reported by Felix Geisendörfer.
2009-07-31 18:34:27 +02:00
Ryan
2ebd692151
Upgrade V8 to 1.3.1
2009-07-31 14:36:48 +02:00
Ryan
5373c6869a
node.tcp.Server's backlog option is now an argument to listen()
2009-07-31 11:59:36 +02:00
Ryan
4db8bb9375
Simplify the DNS usage example.
2009-07-30 15:54:38 +02:00
Ryan
41d89f611f
Add DNS API.
...
Missing functional tests. I'm not sure how to do tests because I don't want
to rely on the fact that users have an internet connection.
2009-07-28 12:36:41 +02:00
Ryan
77d407df28
bump version
2009-07-27 15:48:16 +02:00
Ryan
d41197e02c
Disable test-tcp-many-clients.js. It's broken on macintosh - don't want to fix right now.
2009-07-27 15:30:07 +02:00
Ryan
0fb0af3a6c
Rename evnet to evcom.
2009-07-25 17:52:26 +02:00
Ryan
842eaf446d
Move EventEmitter.prototype.emit() completely into C++.
...
This shows a healthy speed up.
2009-07-24 22:23:50 +02:00
Ryan
4aac515202
Remove unused 'using namespace std' lines.
2009-07-24 22:22:08 +02:00
Ryan
b3e828991b
Remove unused symbols from http.cc.
2009-07-24 20:42:54 +02:00
Ryan
854538d094
Missing HandleScope in GetMethod(). Thanks Brian.
2009-07-24 20:20:01 +02:00
Ryan
d2222efc5e
Add note to README about wiki page
2009-07-24 15:14:59 +02:00
Ryan
50c0d16208
Fix memory leak. It was only a missing HandleScope in Emit()!
...
This change also tries to optimize Emit by looping through the listeners in
C++. The javascript version of this function is still there and being used,
but only by javascript code. Not an ideal solution - there should only be
one implementation - however for now it seems to help.
This doesn't solve all of the memory leaks that we're experiencing, there
seems to be another subtle problem.
2009-07-24 15:11:18 +02:00
Ryan
78aaf8df67
Remove unused static object.
2009-07-24 01:15:21 +02:00
Ryan
646829262f
Fix evnet_buf size calculation for V8::AdjustAmountOfExternalAllocatedMemory().
2009-07-23 18:36:28 +02:00
Ryan
dd1750f573
Clean up little errors in events.js
2009-07-23 18:35:43 +02:00
Ryan
0462b5d1ec
ObjectWrap: MakeWeak again after each Weak callback.
2009-07-23 18:35:03 +02:00
Ryan
b1588e78d9
Fix utf8 scripts, add test. Thanks Urban.
2009-07-20 21:22:19 +02:00
Ryan
e8a5d3d311
remove the callback from node.cat, node.fs.cat
2009-07-20 21:09:37 +02:00
Ryan
b07dc31e1b
root_module should be a local variable
2009-07-20 18:30:15 +02:00
Ryan
2a695a9721
Array.prototype.encodeUtf8 renamed to node.encodeUtf8(array)
2009-07-20 18:19:13 +02:00
Ryan
88e9a5f122
Upgrade V8 to 1.2.14
2009-07-20 13:18:42 +02:00
Ryan
f4dfbe37a3
Upgrade libev to 3.7
2009-07-20 13:01:40 +02:00
Ryan
e7bbda0b7f
Attach connections on Macintosh too.
2009-07-20 12:52:03 +02:00
Ryan
eb10553634
Move node.inherit, node.path, node.cat to new file: util.js
2009-07-16 17:19:36 +02:00
Ryan
22e85cbc0b
Fix 'make test-debug'
2009-07-16 16:54:55 +02:00
Ryan
edbae656d6
Add IsNearDeath assertion to ObjectWrap destructor
2009-07-16 15:43:03 +02:00
Ryan
56c785ceae
small clean ups to http.js
2009-07-16 11:23:37 +02:00
Ryan
8b819d8546
Upgrade evnet.
2009-07-15 17:52:38 +02:00
Ryan
0292dea847
Better error output for socket errors. Temporary.
2009-07-15 17:52:11 +02:00
Ryan
1b6bbc619d
Bugfix: Server-side clients not attached between creation and on_connect.
...
Solution is to manually add Attach() to OnConnection.
For client side it seems there is no Detach() being called after NS
resolution? Otherwise I would have removed it. That was another bug.
Note: We don't want to modify evnet's behavior to have on_connect called
directly when the socket is accepted. evnet needs to support SSL, and
on_connect is supposed to signal that the SSL connection is established. The
point here is that being "connected" and being "attached" to the event loop
are two different things. SSL stuff may be transmitted when a socket is not
"connected" but it must always be attached.
2009-07-15 17:36:30 +02:00
Ryan
fc02221393
Remove unused variable from ~Connection
2009-07-15 17:36:30 +02:00
Ryan
5e2a6f8c46
Upgrade evnet to fix close() bug. Add test for bug.
...
evnet wasn't properly closing sockets if they didn't have data to write.
2009-07-15 07:54:08 +02:00
Ryan
ef09b2c65d
large http.js refactor
2009-07-14 18:31:50 +02:00
Ryan
216e6204f0
http: Add IncomingMessage as abstract base class of ServerReq ClientRes
2009-07-14 12:03:47 +02:00
Ryan
116069fab3
upgrade http_parser
2009-07-14 00:00:07 +02:00
Ryan
2819e3bcb8
Replace some printf() in src/net with asserts
2009-07-13 16:38:55 +02:00
Ryan
f99fbc61e1
Add 'close' event to tcp.Server
2009-07-13 16:38:55 +02:00
Ryan
05d6319fa0
Add benchmark scripts.
...
To use the benchmarks:
node benchmarks/run.js
or:
make benchmark
The numbers reported are the elapsed milliseconds the script took to
complete. Currently only benching HTTP code and timers.
2009-07-13 16:38:55 +02:00
Ryan
bf6a457f64
Use assert() for Unwrap checks instead of JS error.
2009-07-13 16:38:55 +02:00