- Dec 21, 2012
-
-
isaacs authored
-
- Dec 20, 2012
-
-
Ben Noordhuis authored
Apply the same optimization to res.end(buf) that is applied to res.end(str). Speeds up `node benchmark/http_simple_auto -k -c 1 -n 25000 buffer/1` (non-chunked response body) by about 750x. That's not a typo. Chunked responses: $ cat tmp/http-chunked-client.js // Run `node benchmark/http_simple` in another terminal. var http = require('http'), url = require('url'); var options = url.parse('http://127.0.0.1:8000/buffer/1/1'); options.agent = new http.Agent({ maxSockets: 1 }); for (var i = 0; i < 25000; ++i) http.get(options); Before: $ time out/Release/node tmp/http-chunked-client.js real 16m40.411s user 0m9.184s sys 0m0.604s After: $ time out/Release/node tmp/http-chunked-client.js real 0m5.386s user 0m2.768s sys 0m0.728s That's still a 185x speed-up. Fixes #4415. -
Ben Noordhuis authored
Use res.end() for the final chunk so we can benchmark the 'hot path' shortcut in lib/http.js that packs the headers and the body into a single packet.
-
- Dec 19, 2012
-
-
isaacs authored
-
- Dec 18, 2012
-
-
Nicolas Chambrier authored
-
- Dec 17, 2012
-
-
Ben Noordhuis authored
Man pages go into $PREFIX/man on OpenBSD, not $PREFIX/share/man.
-
Brian White authored
Make parser errors bubble up to the ClientRequest instead of the underlying net.Socket object. This is a back-port of commit c78678b0 from the master branch. Fixes #3776.
-
- Dec 14, 2012
-
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
* npm: Upgrade to 1.1.69 * fs: fix WriteStream/ReadStream fd leaks (Ben Noordhuis) * crypto: fix leak in GetPeerCertificate (Fedor Indutny) * buffer: Don't double-negate numeric buffer arg (Trevor Norris) * net: More accurate IP address validation and IPv6 dotted notation. (Joshua Erickson)
-
- Dec 13, 2012
-
-
isaacs authored
-
- Dec 12, 2012
-
-
Ben Noordhuis authored
Close the file descriptor when a write operation fails. Fixes #4387.
-
Ben Noordhuis authored
Close the file descriptor when a read operation fails. Fixes #4387.
-
Ben Noordhuis authored
Verifies that the callback gets invoked <n> times during the lifetime of the test script. This is a back-port of commit d0e6c3f5 from the master branch.
-
- Dec 11, 2012
-
-
isaacs authored
-
- Dec 07, 2012
-
-
Ben Noordhuis authored
Fixes #4384.
-
- Dec 04, 2012
-
-
Fedor Indutny authored
-
- Dec 02, 2012
-
-
Ben Noordhuis authored
This is a back-port of upstream gyp commit r1482.
-
Ben Noordhuis authored
Man pages go into $PREFIX/man on FreeBSD, not $PREFIX/share/man.
-
- Dec 01, 2012
-
-
Lewuathe authored
-
Trevor Norris authored
Fix #4331 Using double negate forces values into 32bit space. Because of this Math.ceil needs to be used. Since NaN comparisons are always false, use that to our advantage to return 0 if it is. Also added two tests to verify the changes.
-
- Nov 30, 2012
-
-
Kyle Robinson Young authored
-
- Nov 29, 2012
-
-
Joshua Erickson authored
* Added isIP method to make use of inet_pton to cares_wrap.cc * Modified net.isIP() to make use of new C++ isIP method. * Added new tests to test-net-isip.js. This is a back-port of commit fb6377eb from the master branch.
-
- Nov 28, 2012
-
-
Ryunosuke SATO authored
-
- Nov 27, 2012
-
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
* npm: Upgrade to 1.1.66 (isaacs) * linux: use /proc/cpuinfo for CPU frequency (Ben Noordhuis) * windows: map WSAESHUTDOWN to UV_EPIPE (Ben Noordhuis) * windows: map ERROR_GEN_FAILURE to UV_EIO (Bert Belder) * unix: do not set environ unless one is provided (Charlie McConnell) * domains: don't crash if domain is set to null (Bert Belder) * windows: fix the x64 debug build (Bert Belder) * net, tls: fix connect() resource leak (Ben Noordhuis)
-
- Nov 26, 2012
-
-
Ben Noordhuis authored
The 'secureConnect' event listener was attached with .on(), which blocked it from getting garbage collected. Use .once() instead. Fixes #4308.
-
- Nov 24, 2012
-
-
Ben Noordhuis authored
The 'connect' event listener was attached with .on(), which blocked it from getting garbage collected. Use .once() instead. Fixes #4308.
-
isaacs authored
This causes too many people to ask me why it's broken.
-
isaacs authored
-
- Nov 23, 2012
-
-
Trevor Norris authored
That Buffers can be used with Typed Array Views and DataViews. Included are a couple simple examples. Closes #4257.
-
- Nov 21, 2012
-
-
Ben Noordhuis authored
-
- Nov 09, 2012
-
-
Bert Belder authored
Closes #4256
-
Bert Belder authored
-
- Oct 30, 2012
-
-
Francois Marier authored
-
Francois Marier authored
The documentation for http.request and https.request states that `hostname` is preferred over `host` so the code examples should use that option name.
-
- Oct 26, 2012
-
-
isaacs authored
-