Marco Rogers
af9aa93e0c
fix for fs.readFile to return string when encoding specified on zero length read
14 years ago
Marco Rogers
9c7c6e93e1
Fixed async fs writes with length 0, it should fire the callback
14 years ago
Bradley Meck
d5214b3627
Allow Strings for ports on net.Server.listen
14 years ago
Johan Euphrosine
e49be4768b
add readline support for meta-d
14 years ago
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
14 years ago
Ryan Dahl
4fdebab005
Safe constructor: net.Server, net.Stream
14 years ago
Ryan Dahl
44a287987e
Safe constructors: http.Server and http.Client
14 years ago
Brian
d9eb64928e
Fix home/end keys in repl for putty/xterm.
14 years ago
Russell Haering
6078c37be5
Modify fs.open to use accept a callback without a mode
14 years ago
Johan Euphrosine
748469c71c
add readline support for meta-f and meta-b
14 years ago
Johan Euphrosine
fd3e84499e
add home/end support in rxvt and readline tests
14 years ago
isaacs
e55c486801
Missing 'var' in sys.inspect (Found by Oleg Slobodskoi)
14 years ago
Johan Euphrosine
0e1e00e68b
fix home/end on GNU/Linux
14 years ago
Ryan Dahl
2982e75a0b
set-cookies header is an array of values. always
14 years ago
Ryan Dahl
51ecba8da9
Add get/set methods to Buffer
14 years ago
Trent Mick
293809b8b6
drop obsolete TODO comment
14 years ago
Trent Mick
1aeaf8d289
repl tab completion: insert common prefix of multiple completions
14 years ago
Trent Mick
5c1ffa165f
repl completion: completion for arguments to "require"
14 years ago
Trent Mick
2134982ea4
repl completion: comment/TODO cleanup, no functional change
14 years ago
Herbert Vojčík
5dc2b93311
Fix sys.inspect for regex in different context.
14 years ago
Marco Rogers
6744e59e46
detect 0 length fs writes with tests
14 years ago
Ryan Dahl
4593c04959
Implement net.Server.maxConnections
Simplify EMFILE behavior.
14 years ago
Illarionov Oleg
cde80d9859
Fix OpenSSL 100% CPU usage on error
15 years ago
Rasmus Andersson
cf909e8725
added dns.getHostByAddr() -- resolve an external IP address to hostname(s)
14 years ago
Ryan Dahl
9acd76ed6e
Don't throw on HEAD requests
14 years ago
Trent Mick
72e4a49cac
repl completion: multi-column display of completions
14 years ago
Trent Mick
1c9a85b9a6
First pass at tab-completion in the REPL
14 years ago
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
14 years ago
Ryan Dahl
3d551e5538
Close fd on readFile(emptyfile)
14 years ago
Ryan Dahl
1c5d5e0b72
uppercase request methods
14 years ago
Bert Belder
7d4e8a9a71
If no options are given to child_process.spawn, env should default to process.env
Regression.
14 years ago
Ryan Dahl
7068912fbb
Export Interface from readline.js
14 years ago
Bert Belder
aaa1f451e6
Expose cwd option to child_process.exec()
14 years ago
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
14 years ago
Ryan Dahl
d408de87fc
Remove module.js - put code into src/node.js
14 years ago
cloudhead
fe3e419687
querystring.parse: handle undefined value properly
14 years ago
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
14 years ago
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.
14 years ago
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
This reverts commit d9fbb8a580
.
14 years ago
Ben Noordhuis
4b19bd2896
Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.
14 years ago
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
Add one duplicate test from V8, just to make sure it works.
14 years ago
Mikeal Rogers
3214116be6
Implement keep-alive for http.Client
Send the 'Connection: keep-alive' header in your request to enable.
14 years ago
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.
14 years ago
Danny Coates
dc8c079d90
remove node::CheckBreak in favor of using the v8 debugger js object
14 years ago
Ryan Dahl
b5b83b210b
Fix --debug-brk; hacky solution
14 years ago
Matt Ranney
f7c5334195
Check for socket on Unix domain connect.
Change scope to context in REPL docs.
14 years ago
Chandra Sekar S
66deea10c7
Support for HOME and END in REPL.
14 years ago
Dmitry Baranovskiy
8ab3c3e7c3
Added ability to pass offset to buffer write and toString methods as a string, i.e. '2' and encoding as anything
14 years ago
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
There might be an off-by-one on the returned value.
14 years ago
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
14 years ago