aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2011-11-02Add missing copyright headersRyan Dahl
2011-11-01doc: fix linksMaciej Małecki
Changes: * 'http://github.com' => 'https://github.com' * 'https://github.com/ry/node' => 'https://github.com/joyent/node' * 'https://github.com/ry/http-parser' => 'https://github.com/joyent/http-parser' * old issue links * wiki link
2011-11-01windows: enable pending accepts knobIgor Zinkovsky
2011-11-01os: rename getNetworkInterfaces() to networkInterfaces()Ben Noordhuis
2011-10-31tls, https: add passphrase optionkoichik
Fixes #1925.
2011-10-31fix for --harmony_block_scopingkoichik
Fixes #1969.
2011-10-30events: separate maxListeners and _eventsSiddharth Mahendraker
Fixes #1479. Fixes #1923.
2011-10-26cluster: Add some docs, improve cluster.isWorker()Tj Holowaychuk
Fixes #1949.
2011-10-26node cluster is now a module instead of CLI interfaceRyan Dahl
This is to make room for master process plugins instead of adding CLI options as proposed in #1879.
2011-10-27More bulletproof `util.inspect()` function.Nathan Rajlich
Use the *real* versions of the Date and RegExp functions, from the prototype. This defends against code like: var d = new Date() d.toUTCString = null util.inspect(d) // TypeError: toUTCString is not a function Fixes #1944.
2011-10-27Don't use `instanceof` in lib/util.js "is" checks.Nathan Rajlich
While using `instanceof`, these functions could easily be faked with something like: Object.create(Date.prototype) So let's just not use it at all. A little slower, but these functions are only used in the REPL / for debugging so it's OK. Fixes #1941. Fixes #1942.
2011-10-27Export the type checking functions from `util.js`.Nathan Rajlich
As per discussion at: http://groups.google.com/group/nodejs-dev/browse_thread/thread/b08970166e4670cf
2011-10-27tls: add address(), remoteAddress/remotePortkoichik
Fixes #758. Fixes #1055.
2011-10-27tls: does not emit 'end' from EncryptedStreamkoichik
de09168 and 4cdf9d4 breaks `test/pummel/test-https-large-response.js`. It is never finished. Fixes #1936.
2011-10-24Directly export the Stream constructor.Nathan Rajlich
Also setting up a circular reference back to the stream as `Stream.Stream`, for backwards-compatibility. Fixes #1933
2011-10-24Remove resume and pause eventsRyan Dahl
Too complex; unnecessary.
2011-10-24Close #1929 zlib Respond to 'resume' events properlyisaacs
2011-10-24net: `Server.listen`, `Server.close` and `Socket.connect` return `this`Maciej Małecki
Just a syntactic sugar for doing, for example: var server = net.createServer(function (c) { c.end('goodbye, cruel world!\r\n'); server.close().on('close', function () { console.log('really, goodbye!'); }); }).listen(1337); Fixes #1922.
2011-10-22Lintseebees
2011-10-22remove auth from hostseebees
Fixes #1626
2011-10-22http.request(url.parse(x))seebees
http2.js protocols object to store defaults for http and https, and use as a switch for supported protocols. options.hostname > options.host > 'localhost' if I have an options.auth element and I do not have an Authorization header, I do basic auth. http.request collapses to new ClientRequest since the defaults are handled by the protocol object test-http-url.parse* Fixes #1390 Conflicts: lib/http2.js
2011-10-22url.resolveObject(url.parse(x), y) == url.parse(url.resolve(x, y));seebees
added a .path property = .pathname + .search for use with http.request And tests to verify everything. With the tests, I changed over to deepEqual, and I would note the comment on the test ['.//g', 'f:/a', 'f://g'], which I think is a fundamental problem This supersedes pull 1596
2011-10-22Print out `undefined` on the REPL when returned.Nathan Rajlich
util.inspect() has a special case for "undefined", so it's nice to be able to distinguish visually that undefined is the result of an expression.
2011-10-21net: bring back .setNoDelay() and .setKeepAlive()Ben Noordhuis
2011-10-21Merge remote branch 'origin/v0.4'Ryan Dahl
Conflicts: ChangeLog Makefile deps/libev/wscript doc/index.html doc/template.html lib/net.js src/node_version.h src/platform_cygwin.cc test/pummel/test-net-write-callbacks.js test/simple/test-buffer.js
2011-10-21getaddrinfo returns ENOTFOUND for invalid domain namesRyan Dahl
change test-http-dns-error to reflect this.
2011-10-21Emit 'end' from crypto streams on closeRyan Dahl
Fixes test/simple/test-tls-peer-certificate.js on Windows Patch from bnoordhuis. See also 75a0cf970fb48440a93a62796ab1f128fcbe7d76
2011-10-21Add useGlobal flag for standard node replisaacs
2011-10-21Revert "Don't use a separate context for the repl."isaacs
This reverts commit b70fed48a7fb0ac884e6574253a89db6158b2f60.
2011-10-20http: improve http parser bindingsBen Noordhuis
Speeds up HTTP benchmarks by 10% on average.
2011-10-20dns.lookup uses cares_wrap::GetAddrInfoRyan Dahl
2011-10-20repl: print out `undefined`Nathan Rajlich
util.inspect() has a special case for "undefined", so it's nice to be able to distinguish visually that undefined is the result of an expression.
2011-10-20debugger: fix backtrace err handlingFedor Indutny
2011-10-18Don't use a separate context for the repl.isaacs
Fix #1484 Fix #1834 Fix #1482 Fix #771 It's been a while now, and we've seen how this separate context thing works. It constantly confuses people, and no one actually uses '.clear' anyway, so the benefit of that feature does not justify the constant WTFery. This makes repl.context actually be a getter that returns the global object, and prints a deprecation warning. The '.clear' command is gone, and will report that it's an invalid repl keyword. Tests updated to allow the require, module, and exports globals, which are still available in the repl just like they were before, by making them global.
2011-10-18Remove superfluous nextTick during server bindingRyan Dahl
This breaks fork().send({}, server._handle) after server.listen() because server._handle is not set.
2011-10-18Fixes #1860. Remove process.writeErrorRyan Dahl
Breaks a few tests in "make test-message"
2011-10-17http: tiny fix in http.jsYoshihiro Kikuchi
Fixes #1885.
2011-10-16net: fix error handling in listen()koichik
Fixes #1894.
2011-10-15tls: The TLS API is inconsistent with the TCP APIkoichik
Add 'secureConnect' event to tls.CleartextStream. Fixes #1467.
2011-10-15net: fix connect queue bugsBen Noordhuis
This commit fixes two bugs in the handling of write requests when the connect() call is still in progress. 1. The deferred write request's size was counted twice towards `.bytesWritten`. 2. The callback was not called. After connecting, `Socket.write()` was called with three arguments (data, encoding, cb) but it ignored the third argument. Coincidentally fixes test/simple/test-net-connect-buffer.js.
2011-10-15net: properly account multi-byte chars in .bytesWrittenBen Noordhuis
2011-10-15tls: requestCert unusable with Firefox and Chromekoichik
Fixes #1516.
2011-10-15child_process.fork: don't modify argskoichik
Fixes #1888.
2011-10-13Fix #1882 zlib Update 'availOutBefore' value, and testisaacs
2011-10-13net: register net.Server callback only onceSimen Brekken
Only register once for listening when passing a callback to Server.listen(), this prevents servers recycled using close() from invoking the callback when Server.listen() is called later.
2011-10-12Fix test-http-conn-reset.js on OSXRyan Dahl
2011-10-12Fix test/pummel/test-watch-file.jsRyan Dahl
2011-10-12Fix test/pummel/test-exec.jsRyan Dahl
2011-10-12Improve IPC performance.Daniel Ennis
Reading of JSON data off the buffer, 10-15% performance increase. Fixes #1864.
2011-10-12Revert some changes made in 12486a6Ryan Dahl
Some of the perf improvements from many-writes-fix branch were accidentally undone in that commit. This puts them back in.