Ryan Dahl
df46c8e698
Rip out the old TLS implementation
2010-11-18 16:46:37 -08:00
Stéphan Kochen
57eb5cb9a0
Make SlowBuffer pass Buffer.isBuffer test.
2010-11-18 15:36:09 -08:00
Ryan Dahl
6ff12c425e
Add querystring.unescapeBuffer
2010-11-18 15:18:06 -08:00
Ryan Dahl
57d8172906
query-string unescape moved to js land
2010-11-18 15:12:31 -08:00
Brian White
5908bdab9a
Make sure raw mode is disabled when exiting a terminal-based REPL.
2010-11-17 18:45:34 -08:00
Tim Cooijmans
d4b726a1a6
fix utils.inspect's detection of circular structures
2010-11-17 16:06:17 -08:00
Ryan Dahl
cf05257fb7
Test for server.listen() more carefully, fix bug
2010-11-16 15:33:21 -08:00
Ryan Dahl
4144024e6b
Test and fix for self-assigned port from net.Server
2010-11-15 20:22:54 -08:00
Ryan Dahl
8b1082825c
Rename require('javascript') to require('vm')
2010-11-15 18:37:27 -08:00
isaacs
d39d3cec65
Make the javascript module API nodey.
...
Add a createScript function, and put stuff on exports instead of hiding
it in exports.Script.
2010-11-15 00:44:08 -08:00
isaacs
9996b459e1
Implement new path.join behavior
...
1. Express desired path.join behavior in tests.
2. Update fs.realpath to reflect new path.join behavior
3. Update url.resolve() to use new path.join behavior.
2010-11-14 22:49:26 -08:00
isaacs
589e27948b
writeFile fixes
...
writeFileSync could exhibit pathological behavior when a buffer could
not be written to the file in a single write() call.
Also, writeFile was not quite as optimized as it could be.
2010-11-14 01:43:30 -08:00
Ryan Dahl
d787a444c5
Use require('javascript') instead of process.binding('evals')
2010-11-13 15:19:15 -08:00
Ryan Dahl
8e09b1e2e1
Simplify REPL displayPrompt
...
Now that we insert \r into the stream and aren't switching back and forth
between termios modes, not need to worry about when to display the prompt.
2010-11-12 14:39:42 -08:00
Ryan Dahl
d4af8a6b6a
Add writeFilter when in the readline
...
Switch \n with \r\n for all strings printed out.
Necessary for writev patch.
2010-11-11 22:37:17 -08:00
Ryan Dahl
6ce007e89a
Remove warning in 'sys' - too aggressive
2010-11-02 21:20:28 -07:00
Ryan Dahl
515f006b6e
Add legacy methods to Buffer
2010-11-02 10:09:59 -07:00
Ryan Dahl
f1391f33cd
Add missing require('fs')
2010-11-01 14:56:21 -07:00
Chandra Sekar S
2b08bacd56
Removed range read optimization as it doesn't work with libeio.
2010-11-01 08:28:57 -07:00
Ryan Dahl
5e11b8a937
De-indent dns.lookup
2010-10-30 13:31:51 -07:00
Ryan Dahl
9c2969253b
Make sure watcher.set() isn't being called when active
2010-10-30 12:52:53 -07:00
Ryan Dahl
7a48fd8455
Handle null values in clearTimeout
2010-10-29 00:00:43 -07:00
Ryan Dahl
1eb547fec1
Lazy load modules in net.js
2010-10-28 13:15:53 -07:00
Ryan Dahl
5171da5a6c
Remove a little redundancy
2010-10-28 13:11:42 -07:00
Ryan Dahl
65dced730f
Handle one more onReadable call from crypto
...
MUST get rid of this calledByIOWatcher stuff. Hopefully will be able to when
securepair stuff lands.
2010-10-28 12:34:48 -07:00
Ryan Dahl
73cfda12bb
Abstract out a Server.prototype.pause method
2010-10-28 11:42:22 -07:00
Ryan Dahl
ad61d77fa3
Abstract out net.Server.prototype._rejectPending
...
Does the same timeout action for maxConnections as it does for EMFILE.
2010-10-28 11:33:35 -07:00
Jonas Pfenniger
74d0a077ec
Module-level EMFILE handling
...
All net servers now share the same dummy socket. The ulimit warning is
throttled for all servers.
2010-10-28 11:12:59 -07:00
isaacs
987cbbc191
Handle cyclic links smarter in fs.realpath
...
Rather than aborting in the face of *any* repeated link in a given path,
instead only abort if such a cycle actually makes a given path unresolvable.
Test for this by doing a normal stat. Still use the seenLinks object to
cache link contents so as to cut own a little bit on readlink calls.
Also add a pathological test that fails without the change to fs.js.
2010-10-27 17:02:42 -07:00
Ryan Dahl
67652ddf27
Refactor callbacks in net.Stream for fewer closures
2010-10-27 16:43:16 -07:00
Ryan Dahl
38dde9684f
Add extra anti-DoS tech to net.Server
2010-10-27 12:09:16 -07:00
Ryan Dahl
ac54272218
Gracefully handle EMFILE
...
Implementing a tip from Marc Lehmann:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#The_special_problem_of_accept_ing_wh
Keep an extra FD around for every server. When you hit EMFILE, destroy that
FD, accept a connection, close it; in this way you can clear the connection
queue and let people know that you're overload.
No more timeout needed.
2010-10-27 02:12:25 -07:00
Tim-Smart
79ecc8e9b7
Style changes.
2010-10-26 18:47:46 -07:00
Ryan Dahl
bc47353bbe
Use the timer list for setTimeout
2010-10-26 14:53:18 -07:00
Ryan Dahl
79944006e2
Move setTimeout and friends into timers module
2010-10-26 14:53:17 -07:00
Ryan Dahl
5cc29b80f2
Move idle timers into its own module
2010-10-26 14:53:17 -07:00
Ryan Dahl
72aee8216c
Fix permissions on http.js
2010-10-26 11:31:01 -07:00
Ryan Dahl
2470d2ee92
allowHalfOpen disabled by default
...
Users too often would forget to add
socket.on('end', function () {
socket.end();
});
Which is a mistake. Therefore we default to this behavior and
only optionally let people handle the 'end' case themselves.
2010-10-26 01:10:18 -07:00
Ryan Dahl
583c07bf8b
fix style
2010-10-25 17:30:08 -07:00
Paul Querna
97977640bd
Set the readable variables on the read/write streams
...
and add more debug() calls to make it easier to see the flow
2010-10-25 17:28:21 -07:00
Paul Querna
1128c0bf67
Add SecurePair for handling of a ssl/tls stream.
2010-10-25 17:26:58 -07:00
Micheil Smith
8da020d39e
Update node_net.cc to make us of node_constants.cc
...
also affects dgram which uses a constant from node_net.cc
2010-10-25 12:14:47 -07:00
Ryan Dahl
0ac2ef924f
Do not spin on aceept() with EMFILE
...
When a server hit EMFILE it would continue to try to accept new connections
from the queue. This patch introduces a timeout of one second where it will
stop trying to accept new files. After the second is over it tries again.
This is a rather serious bug that has been effecting many highly concurrent
programs. It was introduced in 4593c0, version v0.2.0.
TODO: A test for this situation. Currently I test it like this
termA% cd projects/node
termA% ulimit -n 256
termA% ./node benchmark/idle_server.js
termB% cd projects/node
termB% ./node benchmark/idle_clients.js
And watch how the server process behaves.
2010-10-23 12:28:20 -07:00
Ryan Dahl
9bf2975f78
Make sure Error object on exec() gets killed member
...
Also default to SIGTERM for destruction when exceeding timeout or buffer on
exec()
2010-10-23 11:37:40 -07:00
Ryan Dahl
d9a5edb2b0
Fix test-net-eaddrinuse
2010-10-23 11:22:24 -07:00
Jorge Chamorro Bieling
99e19aa398
Remove unneeded function wrappers
2010-10-21 17:11:59 -07:00
Ryan Dahl
6570cd99e5
Fix execFile timeouts, improve tests
...
It seems that a parent will not get a SIGCHLD if the child is killed by the
parent? It's unclear, so make 'exit' callback manually.
2010-10-20 19:20:52 -07:00
Ryan Dahl
5a98fa4809
ChildProcesses cannot be killed if pid is missing
2010-10-20 17:55:25 -07:00
isaacs
bfc6b51d95
The cwdRequire hack is no longer necessary with the require.resolve refactor.
2010-10-20 15:22:02 -07:00
Aaron Heckmann
bd8e4f656e
Prevents child_process.exec timeouts from throwing when the child was previously killed.
2010-10-20 12:46:51 -07:00
isaacs
226eff5104
Add require.resolve.
...
Also, hack the repl so that it works as expected there, too.
2010-10-20 12:12:07 -07:00
Johan Euphrosine
5d400cfd3a
net listen should emit eaddrinuse error
2010-10-18 17:00:13 -07:00
Mark Nottingham
b14eeb3c1e
Fix expect/continue keepalive
2010-10-18 15:38:46 -07:00
Sami Samhuri
56df0cbf93
new api for defining repl commands
2010-10-18 13:46:54 -07:00
Ryan Dahl
cf1db4f304
base64 decode should handle whitespace
2010-10-18 11:34:35 -07:00
Peteris Krumins
a6ee3bac85
Add EventEmitter.prototype.once
2010-10-16 20:43:09 -07:00
Joshua Peek
73b29d79b9
Don't flush net writeQueue on end() if its still connecting
2010-10-13 02:37:53 -07:00
Ryan Dahl
6691aca229
Allow people to set backlog. Need a better API.
2010-10-13 01:47:29 -07:00
Ryan Dahl
901d5fd0d2
Don't require events in fs.js
2010-10-11 16:40:28 -07:00
Ryan Dahl
32aadd9400
fs.ReadStream and fs.WriteStream derive from stream.Stream
2010-10-11 16:39:40 -07:00
Ryan Dahl
8139bb24c1
Add destroy methods to HTTP messages
...
needs tests (particularly for pipeline situations)
2010-10-11 16:36:14 -07:00
Micheil Smith
d2c47b4f87
Removed deprecated methods from lib/path.js
2010-10-11 16:21:21 -07:00
Micheil Smith
a3604cf233
Removed deprecated methods from lib/net.js
2010-10-11 16:20:08 -07:00
Micheil Smith
0e1a581916
Removed deprecated methods from lib/http.js
2010-10-11 16:20:08 -07:00
Micheil Smith
7bfefb5250
Removed deprecated methods from lib/fs.js
2010-10-11 16:20:08 -07:00
Micheil Smith
83db91be41
Removed deprecated alias to lib/fs.js
2010-10-11 16:20:04 -07:00
Micheil Smith
c1aa8ea944
Removed deprecated events.Promise
2010-10-11 16:16:18 -07:00
Ryan Dahl
7e24a05cba
Fix test-http-buffer-sanity
2010-10-11 16:00:36 -07:00
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
2010-10-11 15:21:36 -07:00
Ryan Dahl
2944e03a03
Closer to a working pipe
2010-10-11 01:22:38 -07:00
Ryan Dahl
1d3142a882
TCP clients should buffer writes before connection
2010-10-10 23:09:14 -07:00
Ryan Dahl
81ac0d5088
pipe-test fixes
2010-10-10 22:10:47 -07:00
Ryan Dahl
cdd1d675a7
Remove old tcp module
2010-10-10 20:57:33 -07:00
Ryan Dahl
8ab691726d
clean up options.end code - wasn't working
2010-10-10 20:16:21 -07:00
Micheil Smith
1af52d28ca
Changing http.js to use the same stream.Stream creation as net.js
2010-10-10 19:43:21 -07:00
Ryan Dahl
bc695475b9
Add Stream base class with stream.pipe
2010-10-10 17:27:03 -07:00
Ryan Dahl
f23eb282c0
Fix style
2010-10-09 12:48:22 -07:00
Ryan Dahl
783f5019b0
Add flag to disable colors in REPL
2010-10-09 12:46:06 -07:00
Ryan Dahl
39b9043bef
Use readline.columns in sys.inspect when possible
...
Though, this should probably be an option to sys.inspect and be set by REPL.
2010-10-09 12:40:17 -07:00
Ryan Dahl
d164989e3f
Commas last in sys.inspect
...
Ugly? Yes. More readable by first time users? Yes.
2010-10-09 12:18:17 -07:00
Sean Coates
ae87007478
add $ to variable name character matching patterns in repl completer
2010-10-09 10:04:13 -07:00
Ryan Dahl
0003c701bc
expose parsers freelist
2010-10-07 16:17:06 -07:00
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
2010-10-06 20:40:57 -07:00
isaacs
8ff7954165
Fix #325 . Add test and check for zero-length file contents in fs.readFileSync
2010-10-04 12:50:58 -07:00
Ryan Dahl
38f8665f3a
lib/http.js - nested loop stepping on variables of outer loop
...
Fixes #318 .
2010-10-04 10:50:37 -07:00
isaacs
e9b6b0b327
Report "weird" errors a little better.
...
There are a few kinds of errors that are very confusing.
1. Errors raised in nextTick
2. Errors emitted on the "error" event
3. RangeErrors that crash the program (or anything without a stack trace)
Long traces will make make these better, of course. In the meantime, this
adds a few handy signposts (in the form of better error reporting and
comments on the otherwise inscrutable code printed to the terminal) that can
help new users find the cause, or at least, ask for help more effectively.
2010-10-02 06:44:28 -07:00
Mark Nottingham
d59512f6f4
Add support for handling Expect: 100-continue
...
HTTP/1.1 requests, either with an event (check_continue) or automatically, if no event handler is present.
Add client-side expect/continue support, tests.
Expound upon client requirements for expect/continue.
2010-10-01 15:30:53 -07:00
Marco Rogers
4a7562d28f
fix encoding option on ReadStream, updated test
2010-10-01 15:16:25 -07:00
Ryan Dahl
5829716649
Fix REPL crash on tabbing 'this.'
...
Thanks to Tim Becker for pointing this out.
2010-10-01 11:31:22 -07:00
Evan Larkin
914ff78df6
fs.ReadStream: Passing null for file position on all reads except the first read of a range read.
2010-09-30 18:23:30 -07:00
Ryan Dahl
265cda97d7
Fix zero length buffer bug for http res.end()
...
Reported by Kadir Pekel <kadirpekel@gmail.com>
2010-09-30 17:13:01 -07:00
Mark Nottingham
1b24fc6678
Consume HTTP trailing headers
2010-09-30 16:30:40 -07:00
Evan Larkin
43ddc04bb0
No longer using the global variable "stat" in unwatchFile
2010-09-30 16:19:59 -07:00
Ryan Dahl
c3bc48d451
Move the http client's initParser() into prototype
2010-09-30 11:41:50 -07:00
Ryan Dahl
f323f34353
writeable -> writable
2010-09-29 16:12:30 -07:00
Ryan Dahl
9911629de0
Fix style in node_crypto.cc
2010-09-28 19:17:09 -07:00
Ryan Dahl
163485c8aa
Rename some SecureStream methods
2010-09-28 11:38:27 -07:00
Ryan Dahl
7bd94712a8
lazy load crypto binding
2010-09-28 11:27:13 -07:00
Ryan Dahl
d89f8dce28
fix style in net.js
2010-09-28 11:27:09 -07:00
Ryan Dahl
069d973d74
Remove require('buffer') in built-in libraries.
2010-09-28 02:31:31 -07:00
Aaron Heckmann
7c5cc57ece
quicker loops
2010-09-28 01:14:58 -07:00
Fedor Indutny
5535aa3d51
Fixed 'upgrade' event for httpclient
...
onend and ondata was cleaning on parser end
2010-09-23 10:29:20 -07:00
isaacs
4d0456f827
Don't use stat in fs.readFile[Sync]
...
Original patch c/o Evan Larkin <evan.larkin.iit@gmail.com>
2010-09-22 22:06:32 -07:00
Tj Holowaychuk
893ebe7230
Fixed fs.ReadStream() start: 0 bug
2010-09-22 10:22:43 -07:00
Mikeal Rogers
cc1d61cbb3
HTTP: close connection on connection:close header.
...
rnewson found a good bug in keep-alive. we were only using the request
headers we send to enable/disable keep-alive but when the server sends
Connection: close we need to close down the connection regardless.
I wrote up a patch the Robert verified makes all his test client code work
now and I also added a new unittest for it.
2010-09-22 10:17:07 -07:00
Jorge Chamorro Bieling
fc334b3a97
sys.js: --needless Object.keys() --needless .map() in a single patch
2010-09-19 18:02:27 -07:00
Jorge Chamorro Bieling
8e246acd0e
sys.js: sys.inspect: show function names
2010-09-19 13:37:09 -07:00
Ryan Dahl
db73c71280
Pass correct message in HTTP client upgrade
...
Simplify and correct test.
Fix by Fedor Indutny.
2010-09-19 11:55:18 -07:00
Ryan Dahl
01b3418e2e
Move IOWatcher and Timer to process.binding
2010-09-17 00:15:54 -07:00
Ryan Dahl
31f8fa222e
Add require('constants')
2010-09-16 23:22:58 -07:00
Ryan Dahl
6eca948ca2
Move constants out of process object
2010-09-16 23:16:07 -07:00
Ryan Dahl
d2de8ba400
^c to get out of '...' in REPL
2010-09-16 21:07:22 -07:00
Ryan Dahl
42eb5a6898
Simplify REPL
2010-09-16 20:50:56 -07:00
Ryan Dahl
bbbcd1fee0
Safe constructors for fs.ReadStream and fs.WriteStream
2010-09-16 19:04:09 -07:00
Paul Querna
c8f9728de7
Move dns.isIP to net.isIP
...
Add tests and docs.
2010-09-16 17:27:10 -07:00
Ryan Dahl
251d03197f
Remove deprecation warnings in net module
2010-09-16 15:02:12 -07:00
Ryan Dahl
a63fd0fe56
Remove deprecation warnings in http module
2010-09-16 14:49:12 -07:00
Ryan Dahl
f08985c193
Handle writeStream errors in sys.pump
2010-09-16 14:40:41 -07:00
Herbert Vojčík
3e0a8f3ad8
Common subexpression in emit.
2010-09-16 13:47:43 -07:00
Sam Stephenson
6560ab9073
Send multiple header lines in ServerResponse#writeHead when header values are arrays
2010-09-15 15:55:30 -07:00
Ryan Dahl
6bdc42cee7
shorten some lines in events.js
2010-09-15 15:47:28 -07:00
Ryan Dahl
ae8f8e7258
Optimize emit for two arguments
2010-09-15 15:20:04 -07:00
Ryan Dahl
77fc61d539
Default value for second arg of Buffer#slice
2010-09-14 15:39:27 -07:00
Mark Nottingham
4fe3007a1a
Support for outgoing HTTP trailing headers
2010-09-14 15:20:45 -07:00
isaacs
686d9f9cc6
Bug in realpath with symlinks to absolute folder paths which have children.
...
Found by Cliffano Subagio
http://groups.google.com/group/nodejs/browse_thread/thread/f46f093938265ac0/387e14da08c7dd7b ?
2010-09-14 10:27:57 -07:00
Peter Griess
422d3c93bc
Get rid of PHP/Rails style parameter munging.
...
- Handle only the most basic of query string parsing and construction.
Leave the rest (e.g. Rails/PHP behaviors) to modules higher up the
stack, like Express.
2010-09-13 12:39:30 -07:00
Ryan Dahl
2d09ef8541
Fix style in readline
2010-09-12 21:47:56 -07:00
Ryan Dahl
0ef8a86af2
Add SIGWINCH handler for readline
2010-09-12 21:23:53 -07:00
Ryan Dahl
3a9570386a
Fix fs.realpathSync('/')
2010-09-09 18:49:28 -07:00
Ryan Dahl
b8bfbdab48
Rename SlowBuffer in binding
2010-09-09 11:03:51 -07:00
Ryan Dahl
5bc4efe820
Remove blobs, simplify SlowBuffer
...
Implement SlowBuffer.prototype.slice in js
2010-09-09 11:03:51 -07:00
Ryan Dahl
ba2e4a2306
Simplify fast buffer constructor
2010-09-09 11:03:50 -07:00
Ryan Dahl
3e9f636b64
Improve long buffer test
2010-09-09 11:03:50 -07:00
Ryan Dahl
17ba821e60
defineProperty is slow, don't use it for fastbuffer
2010-09-09 11:03:50 -07:00
Ryan Dahl
d3fcd1c75a
Expose SlowBuffer
2010-09-09 11:03:50 -07:00
Ryan Dahl
8b4f1e05f9
Expose Buffer.poolSize
2010-09-09 11:03:50 -07:00
Ryan Dahl
5506f99dfa
map charsWritten to fast buffer
2010-09-09 11:03:49 -07:00
Ryan Dahl
7b772f3f68
More fast buffer work
2010-09-09 11:03:48 -07:00
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
2010-09-09 11:03:48 -07:00
Tim-Smart
6ea99721f1
string.length !== Buffer.byteLength(string)
2010-09-09 11:03:48 -07:00
Ryan Dahl
2dda6be799
Fast Buffer safe constructor
2010-09-09 11:03:48 -07:00
Ryan Dahl
b87669cbf4
Fix fastbuffer style
...
Fix style
2010-09-09 11:03:48 -07:00
Tim-Smart
2b07c9fcae
Some silly fixes to buffer.js
2010-09-09 11:03:47 -07:00
Tim-Smart
746d487da8
FastBuffer implementation. API needs migration
2010-09-09 11:03:47 -07:00
isaacs
ba0c32e2e1
Fix issue #262 . Allow fs.realpath to traverse above the current working directory.
2010-09-08 17:35:58 -07:00
Ryan Dahl
0e501f4ec5
Fix style; undefined reference bug
2010-09-08 12:03:33 -07:00
Tobie Langel
ccf4afa256
Do not emit WriteStream's drain event before ws.write has been called.
2010-09-08 11:58:54 -07:00
Tobie Langel
f5e4047064
Avoid closing a WriteStream before it has been opened.
2010-09-08 11:51:29 -07:00
Tobie Langel
75f922c863
Avoid missing ref error in WriteStream.prototype.destroy().
2010-09-08 11:50:56 -07:00
Ryan Dahl
24ac87f543
Increase ReadStream bufferSize to 64k
2010-09-08 10:14:04 -07:00
Trent Mick
1d961a6630
add ANSI coloring option to sys.inspect and, by default, to the repl
2010-09-08 09:47:13 -07:00
Trent Mick
5330fea954
Ctrl+W support for the REPL
...
FWIW, command-line style (delete back to whitespace) would be:
leading = leading.replace(/\S+\s*$/, '');
2010-09-08 09:45:57 -07:00
Ryan Dahl
1be722a271
Special deepEquals for buffer
2010-09-07 17:14:04 -07:00
Ryan Dahl
3c00ec4e48
typo: forceClose -> destroy for WriteStreams
2010-09-05 02:27:02 -07:00
isaacs
0e311717b5
Treat "//some_path" as pathname rather than hostname by default.
...
Note that "//" is still a special indicator for the hostname, and this does
not change the parsing of mailto: and other "slashless" url schemes. It
does however remove some oddness in url.parse(req.url) which is the most
common use-case for the url.parse function.
2010-09-02 09:24:21 -07:00
Marco Rogers
af9aa93e0c
fix for fs.readFile to return string when encoding specified on zero length read
2010-08-30 14:08:18 -07:00
Marco Rogers
9c7c6e93e1
Fixed async fs writes with length 0, it should fire the callback
2010-08-30 13:58:50 -07:00
Bradley Meck
d5214b3627
Allow Strings for ports on net.Server.listen
2010-08-30 13:27:38 -07:00
Johan Euphrosine
e49be4768b
add readline support for meta-d
2010-08-30 10:26:51 -07:00
Russell Haering
37b6e10684
Pass an error to the sys.pump callback if one occurs
...
- Add test case for pumping from unreadable stream.
- Document the sys.pump error handling behavior
2010-08-30 10:23:48 -07:00
Ryan Dahl
4fdebab005
Safe constructor: net.Server, net.Stream
2010-08-27 15:38:46 -07:00
Ryan Dahl
44a287987e
Safe constructors: http.Server and http.Client
2010-08-27 13:58:52 -07:00
Brian
d9eb64928e
Fix home/end keys in repl for putty/xterm.
2010-08-23 09:18:36 -07:00
Russell Haering
6078c37be5
Modify fs.open to use accept a callback without a mode
2010-08-23 02:42:25 -07:00
Johan Euphrosine
748469c71c
add readline support for meta-f and meta-b
2010-08-23 01:47:41 -07:00
Johan Euphrosine
fd3e84499e
add home/end support in rxvt and readline tests
2010-08-23 01:46:14 -07:00
isaacs
e55c486801
Missing 'var' in sys.inspect (Found by Oleg Slobodskoi)
2010-08-22 13:45:39 -07:00
Johan Euphrosine
0e1e00e68b
fix home/end on GNU/Linux
2010-08-22 12:34:58 -07:00
Ryan Dahl
2982e75a0b
set-cookies header is an array of values. always
2010-08-21 16:34:38 -07:00
Ryan Dahl
51ecba8da9
Add get/set methods to Buffer
2010-08-19 23:29:06 -07:00
Trent Mick
293809b8b6
drop obsolete TODO comment
2010-08-18 23:02:54 -07:00
Trent Mick
1aeaf8d289
repl tab completion: insert common prefix of multiple completions
2010-08-18 23:02:30 -07:00
Trent Mick
5c1ffa165f
repl completion: completion for arguments to "require"
2010-08-18 22:59:49 -07:00
Trent Mick
2134982ea4
repl completion: comment/TODO cleanup, no functional change
2010-08-18 22:59:35 -07:00
Herbert Vojčík
5dc2b93311
Fix sys.inspect for regex in different context.
2010-08-18 11:47:43 -07:00
Marco Rogers
6744e59e46
detect 0 length fs writes with tests
2010-08-16 23:57:01 -07:00
Ryan Dahl
4593c04959
Implement net.Server.maxConnections
...
Simplify EMFILE behavior.
2010-08-15 14:01:55 -07:00
Illarionov Oleg
cde80d9859
Fix OpenSSL 100% CPU usage on error
2010-08-15 13:23:09 -07:00
Rasmus Andersson
cf909e8725
added dns.getHostByAddr() -- resolve an external IP address to hostname(s)
2010-08-12 16:25:45 -07:00
Ryan Dahl
9acd76ed6e
Don't throw on HEAD requests
2010-08-12 10:06:52 -07:00
Trent Mick
72e4a49cac
repl completion: multi-column display of completions
2010-08-12 00:07:26 -07:00
Trent Mick
1c9a85b9a6
First pass at tab-completion in the REPL
2010-08-11 13:42:45 -07:00
Rasmus Andersson
fd3cd755d1
[dgram] only look up hostname for the requested address family
...
- [lib/dns.js] dns.lookup takes a new optional argument "family" which
should be the integer 4, 6, dns.AF_INET or dns.AF_INET6. Passing a
non-false "family" argument makes c-ares explicitly look up addresses for
the specified family.
- [test/simple/test-c-ares.js] test explicit address family lookups
2010-08-10 17:53:32 -07:00
Ryan Dahl
3d551e5538
Close fd on readFile(emptyfile)
2010-08-10 14:47:40 -07:00
Ryan Dahl
1c5d5e0b72
uppercase request methods
2010-08-09 21:23:52 -07:00
Bert Belder
7d4e8a9a71
If no options are given to child_process.spawn, env should default to process.env
...
Regression.
2010-08-09 15:37:14 -07:00
Ryan Dahl
7068912fbb
Export Interface from readline.js
2010-08-08 11:52:31 -07:00
Bert Belder
aaa1f451e6
Expose cwd option to child_process.exec()
2010-08-06 13:38:41 -07:00
Bert Belder
94914135df
New api for child_process.spawn; ability to set cwd for spawn()ed process
...
Tests for child_process.spawn() use new API
Test for deprecated child_process.spawn() API
2010-08-06 13:37:30 -07:00
Ryan Dahl
d408de87fc
Remove module.js - put code into src/node.js
2010-08-06 12:34:02 -07:00
cloudhead
fe3e419687
querystring.parse: handle undefined value properly
2010-08-05 10:46:28 -07:00
Nick Stenning
0a3eff8021
Standardise module load order for native and registered file extensions.
...
This patch standardises the load order for modules. Highest priority is trying to load exactly the file the user specified, followed by native extensions, followed by registered extra extensions, etc.
In full, if we require('foo') having registered '.coffee' as an alternative extension, we try and load the following files in order:
foo
foo.js
foo.node
foo.coffee
foo/index.js
foo/index.node
foo/index.coffee
2010-08-04 16:03:08 -07:00
Nick Stenning
78520ba482
Don't attempt to load a directory.
...
This patch replaces the path.exists check for module loading with a call to
fs.statSync (or fs.stat for require.async) which ensures that it's not trying
to load a directory.
2010-08-04 15:55:47 -07:00
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
...
This reverts commit d9fbb8a580
.
2010-08-04 10:38:19 -07:00
Ben Noordhuis
4b19bd2896
Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.
2010-08-02 11:25:53 -07:00
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
...
Add one duplicate test from V8, just to make sure it works.
2010-08-02 00:46:09 -07:00
Mikeal Rogers
3214116be6
Implement keep-alive for http.Client
...
Send the 'Connection: keep-alive' header in your request to enable.
2010-08-01 22:34:17 -07:00
isaacs
65037eeb32
Don't let path.normalize get above the root.
...
Any path.join or path.normalize that starts with a / will not go "above" that after normalization. This is important because /../foo is almost *always* some sort of error, and doesn't match the corollary in sh: `cd $p; pwd`
At the worse, this can be a vector for exploits, since a static file server might do path.join(docroot, path.normalize("/"+req)) to get the file. If the normalized request path could be something like "/../../../etc/passwd" then bad things could happen.
2010-08-01 20:20:17 -07:00
Danny Coates
dc8c079d90
remove node::CheckBreak in favor of using the v8 debugger js object
2010-08-01 20:04:31 -07:00
Ryan Dahl
b5b83b210b
Fix --debug-brk; hacky solution
2010-07-27 20:36:58 -07:00